PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: kunal on 01 July, 2005, 12:23:22

Title: Advanced Info bot
Post by: kunal on 01 July, 2005, 12:23:22
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
Title:
Post by: kunal on 02 July, 2005, 11:30:15
hmmm.I m a beginner.u help me with it
Title:
Post by: Dessamator on 02 July, 2005, 13:40:17
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 !
Title:
Post by: kunal on 02 July, 2005, 20:45:13
cant understand anything of it:(.pls can u make the script for me
Title:
Post by: kunal on 03 July, 2005, 09:12:58
pls someone make the script for me
need it urgently ;(
Title:
Post by: kunal on 04 July, 2005, 12:21:32
hey ty but when i run the script all the other right click cmds go away and only the script cmds are left
Title:
Post by: jiten on 04 July, 2005, 12:26:23
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