conversion script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

conversion script

Started by popescuionut, 18 October, 2011, 20:02:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

popescuionut

Hello! You can convert this old script for the latest version of ptokax (0.4.1.1 or 0.4.1.2) please? :'( :'( :'(



--[[
 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 Mutor'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

SMF spam blocked by CleanTalk