is dere a script which hides the bots form the users or reg users not form vips or higher.if some 1 has it can dey post it or if some1 can make it. it will be good. thanks. :P
If you wish to hide bots, you should take out that little thing at the beginning of the script that goes like, "reguser $botname" or something like that. In small simple scripts its usually near the beginning, in larger scripts there can be a lot more stuff before it. Only one of my scripts appears in the hub, and that is so people can send PM's t him.
function Main()
frmHub:RegBot(botname)
end
That is the code you are looking for
i knew about dat already. but i got a script whichs sends information about latest albums in pm. so if i unreg it i won't be able 2 send it in pm. so dats y i need a script. :D
u cant..
if you want to send in PM, you have to reg a bot...
no script can unreg bots ;)
/shipis
QuoteOriginally posted by servaks
u cant..
if you want to send in PM, you have to reg a bot...
no script can unreg bots ;)
/shipis
For me this is a problem into ptokax, ptokax could be able to open a pm window even is the bot is not register, the bot exist, sendPM exist, so is logical this works. You may need to open a pm window for several reasons and without registering a bot!. I hope Ptacek read this post and do something about for next release.
ptokaz has nothing to do with it.. its a client issue
i won't mind have bots how aren't regestered. some bots u don't need 2 reg dem, but u have 2 as u want dem 2 send information in pms. if some1 can do it, it will be great.
You can unreg bots with a script Yes.
But it's imposible to hide it just from Regged user!
no thats where yo arer wrong cause ive already wrote a script that does it ;)
my bot does it.......Gekko......i did wrote a stand alone on other forum, but not got time todo agen atm
when u get time phatty can u do it cuz it helps out alot.safe. take ur time.not too long though. :D
ye sorry ive been very bizzy lately, i have still to write my own modem drivers for linux, then i have big meeting with the guys on wednesday, so i will probably be back properly on wednesday afternoon i hope ;)
sorry again,, l8rr,,
no need 2 say sorry, like i said take ur time, linux is more important 4 u at the moment take ur time on it. den u can do. i want it by the weekend anyway. so its ok. :D
there.. 2mins of work
function check(user, name)
if GetItemByName(name) then user:SendData("*** No can do.")
else return 1
end
end
function DataArrival(user, data)
if user.bOperator and strsub(data, 1, 1) == "<" then
local s, e, cmd, name = strfind(data, "^%b<> %!(%a+) (%S+)%|$")
if s then cmd = strlower(cmd)
if cmd == "reg" then if check(user, name) then frmHub:RegBot(name) end
elseif cmd == "unreg" then if check(user, name) then frmHub:UnregBot(name) end
else return end return 1
end
end
end
edit.. !reg !unreg
thanks tezlo needed dat. it helps bring the hub security up so no1 can mess wid it. :D
Thnx!
This script works great, now I've got less keys in my hubs that's better :P
See ya,
[NL]MrBuitenhuizen
tezlo theres 1 thing wrong if i use dat script ops can see the bots either i want it so ops can see the bots but not the vips or below :D
huh well thats silly!!! ops are supposed to see them so they can check them
sorry phatty i mean can't see the bot if u use tezlos script as it unregs the bot no 1 can see it. :D
hmmm you mean so only the ops see the bot and not the users
yeah. for example if its opchat only ops can see it and if its vipchat vips and higher can see it. :D how was linux?
lol linux not sorted brrrrrrrrrrr agen :P
heheh thx for asking tho
That is so easy to to
put this seudo code in datarrival, and Opconnected
if user.BOperator then
user.SendData(bot name descript etc
i am not good at scripts so can u do it. :D
i am forgetting ptokax bot sessentily
*check for userlevel wanted
*user.sendData($MyInfo $All name descript share email)
put those in dataarrival, user connected and op connected this will make anyone that makes the profile cut think the bots regged when it actualy may not be...
sorry i don't get wat u mean. can u post the code wid dat in it on here.thanks :D