Author Topic: conversion script  (Read 1449 times)

0 Members and 1 Guest are viewing this topic.

Offline popescuionut

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-4
conversion script
« on: 18 October, 2011, 20:02:55 »
Hello! You can convert this old script for the latest version of ptokax (0.4.1.1 or 0.4.1.2) please? :'( :'( :'(



Code: [Select]
--[[
 Maybe allready is o bot like this but I maid it because I wanted a script
     to display custom profile names Master = Admin and User = Guest
And if anyone else need it , here it is :)
      InfoBot.v1   - inspired from American Idiot's Auto-Block 1.0         
             16/07/2006  by CrAzZy_CaSpEr
                 Sends custom Userinfo prer profile





      With this output:<--==VerliHub==-->
                       - [::]Your info:
                       - [::] Nick: User
                       - [::] Class : User Profile
                       - [::] IP: User Ip
                       - [::] Country Code: RO
                       <---VerliHub--->? Pentru a deveni vip pune nick-ul : !!!!![-Dirty's_Vip-]-nick , si scrie in mainchat +regme parola_ta   ( EX: +regme 2007 ) ?
      You can add other info's to display for which profile you want, i put the [b]Country Code: RO[/b] in the info because is a private hub, only for Romania
]]--                   
-- Botname pulled from the hub
Bot = frmHub:GetHubBotName() -- or "BotName-Here"
-- Message to send
function NewUserConnected(user)
       if (user.iProfile == -1) then
user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class: Guest (0) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n ")
       elseif (user.iProfile == 2) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class: VIP (2) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  2 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: No \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: CrAzZy_CaSpEr \r\n- [::] Alternate IP:"..user.sIP.." \r\n")
       elseif (user.iProfile == 3) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  Registred (1) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  1 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: No \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: CrAzZy_CaSpEr \r\n- [::] Alternate IP: "..user.sIP.."\r\n")
        elseif (user.iProfile == 6) then
                 user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  Operator (3) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  3 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: Yes \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: [-QuaLiTa-]-CrAzZy_CaSpEr \r\n- [::] Alternate IP:"..user.sIP.." \r\n")
        elseif (user.iProfile == 7) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  Admin (5) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  5 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: Yes \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: [-QuaLiTa-]-CrAzZy_CaSpEr \r\n- [::] Alternate IP:"..user.sIP.." \r\n")
        elseif (user.iProfile == 5) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class: Master (10) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  10 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: Yes \r\n- [::] Hidden kicks: Yes \r\n- [::] Hidden keys: Yes \r\n- [::] Hidden share: Yes \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: [-QuaLiTa-]-CrAzZy \r\n- [::] Alternate IP: "..user.sIP.."\r\n")
   end     
end

function OpConnected(user)
        if (user.iProfile == 1) then
                 user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  Operator (3) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  3 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: No \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: CrAzZy_CaSpEr \r\n- [::] Alternate IP: "..user.sIP.."\r\n")
        elseif (user.iProfile == 4) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  Admin (5) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  5 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: No \r\n- [::] Hidden kicks: No \r\n- [::] Hidden keys: No \r\n- [::] Hidden share: No \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: CrAzZy_CaSpEr \r\n- [::] Alternate IP:"..user.sIP.." \r\n")
        elseif (user.iProfile == 0) then
                user:SendData(Bot," \r\n- [::] Your Info:\r\n- [::] Nick: "..user.sName.." \r\n- [::] Class: Master (10) \r\n- [::] IP: "..user.sIP.." \r\n- [::] Country Code: RO \r\n \r\n- [::] Reg Information: \r\n- [::] Nick: "..user.sName.." \r\n- [::] Class:  10 \r\n- [::] Password set:Yes \r\n- [::] Last login: Wed Feb 13 01:56:05 2008 \r\n- [::] Last IP: "..user.sIP.." \r\n- [::] Last error: Wed Jan 23 14:52:02 2008 \r\n- [::] Error IP: 89.41.8.252 \r\n- [::] Login count: -- \r\n- [::] Login errors: 0 \r\n- [::] Protected: Yes \r\n- [::] Hidden kicks: Yes \r\n- [::] Hidden keys: Yes \r\n- [::] Hidden share: Yes \r\n- [::] Registered since: Fri Jan 11 09:55:56 2008 \r\n- [::] Registered by: VerliHub \r\n- [::] Alternate IP: "..user.sIP.."\r\n")
        end
end
« Last Edit: 18 October, 2011, 22:27:02 by Psycho_Chihuahua »

PtokaX forum

conversion script
« on: 18 October, 2011, 20:02:55 »