Hi, i am a total n00b at this. Just got my hub up today.
I was wondering if there is or if some one could make a script there you could simplie ad a own command.
Ex if i want +kicks (user) hard as in the ass to be a command then i just ad it in the file....
so when a user writes +kicks (user) in main following will be shown in main
(user) kicks (user) hard in the ass
If possible i dont want the +kicks (user) line to be seen in main...
I hope anyone gets what i want. sorry for any spelling misstakes. I am swedish and not so good at english
Hi,
You want a command to every user use ???
You want the command to kick and don't send any messange in main, to where would you like to send the message ??
Best regards, nErBoS
hi
Yes commads that everybody in the hub kan use.
And i want to show it in the main...
+slap (Username) <-- The user writes that.
But in the main everybody see
(Username) slaps (username) hard!
Or something like that...
Kind of the !me command.
I hope you understand =)
Hi,
Hope it helps...
--Requested by madman
--Made by nErBoS
Bot = "Fight-Bot"
function DataArrival(user, data)
if (strsub(data,1,1)=="<") or (strsub(data,1,5+strlen(Bot))=="$To: "..Bot) then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if (cmd=="+slap") then
s,e,cmd,usr = strfind(data, "%b<>%s+(%S+)%s+(%S+)%s*")
SendToAll(Bot, "User "..user.sName.." slaps "..usr.." hard.")
return 1
end
end
end
Best regards, nErBoS
Thanks.
I have tried it and it works great!
And i even figured out how to add an own command.
Thanks alot nErBoS
It is just what i wanted :)