Advanced Info bot
 

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

Advanced Info bot

Started by kunal, 01 July, 2005, 12:23:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kunal

I want an info bot in which the ops will have to add the info of all users by sending a pm to the bot in the following format !addinfo nick#password#real name#education#address#occupation#email id and they can find the info of any user by the cmd !findinfo nick.
can anyone help me


Dessamator

here are some hints, first of all u need a chatarrival, and u need to learn how to use pattern matching, check the threads mutor showed us, they might help !
Ignorance is Bliss.

kunal

cant understand anything of it:(.pls can u make the script for me

kunal

pls someone make the script for me
need it urgently ;(

kunal

hey ty but when i run the script all the other right click cmds go away and only the script cmds are left

jiten

QuoteOriginally posted by kunal
hey ty but when i run the script all the other right click cmds go away and only the script cmds are left
Remove this red line:
function Commands(user)
	[COLOR=red]user:SendData("$UserCommand 255 7")[/COLOR] 	--clear the menu first
	user:SendData("$UserCommand 1 1 "..Menu.."\\"..SubMenu.."\\Add User $<%[mynick]> "..Prefix..Cmd1..", %[line:Nickname], %[line:Password], %[line:Real Name], %[line:Education], %[line:Address], %[line:Occupation], %[line:Email],||")
	user:SendData("$UserCommand 1 2 "..Menu.."\\"..SubMenu.."\\Add User $<%[mynick]> "..Prefix..Cmd1..", %[nick], %[line:Password], %[line:Real Name], %[line:Education], %[line:Address], %[line:Occupation], %[line:Email],||")
	user:SendData("$UserCommand 1 1 "..Menu.."\\"..SubMenu.."\\Find User $<%[mynick]> "..Prefix..Cmd2..", %[line:Nickname]||")
	user:SendData("$UserCommand 1 2 "..Menu.."\\"..SubMenu.."\\Find User $<%[mynick]> "..Prefix..Cmd2..", %[nick]||")
	user:SendData("$UserCommand 1 1 "..Menu.."\\"..SubMenu.."\\Delete User $<%[mynick]> "..Prefix..Cmd3..", %[line:Nickname]||")
	user:SendData("$UserCommand 1 2 "..Menu.."\\"..SubMenu.."\\Delete User $<%[mynick]> "..Prefix..Cmd3..", %[nick]||")
end

SMF spam blocked by CleanTalk