PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: raz on 24 October, 2003, 18:21:26

Title: is there a script whcih hides bots
Post by: raz on 24 October, 2003, 18:21:26
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
Title:
Post by: BrokenBrick on 24 October, 2003, 18:44:52
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
Title:
Post by: raz on 24 October, 2003, 18:53:25
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
Title:
Post by: servaks on 24 October, 2003, 19:40:20
u cant..
if you want to send in PM, you have to reg a bot...
no script can unreg bots ;)

/shipis
Title:
Post by: [ES]latinmusic on 24 October, 2003, 20:26:10
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.
Title:
Post by: tezlo on 24 October, 2003, 20:32:59
ptokaz has nothing to do with it.. its a client issue
Title:
Post by: raz on 24 October, 2003, 23:08:51
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.
Title:
Post by: kepp on 27 October, 2003, 13:45:52
You can unreg bots with a script Yes.
But it's imposible to hide it just from Regged user!
Title:
Post by: pHaTTy on 27 October, 2003, 13:55:05
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
Title:
Post by: raz on 27 October, 2003, 13:57:28
when u get time phatty can u do it cuz it helps out alot.safe. take ur time.not too long though. :D
Title:
Post by: pHaTTy on 27 October, 2003, 13:59:17
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,,
Title:
Post by: raz on 27 October, 2003, 14:00:58
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
Title:
Post by: tezlo on 27 October, 2003, 14:15:10
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
Title:
Post by: raz on 27 October, 2003, 14:16:27
thanks tezlo needed dat.  it helps bring the hub security up so no1 can mess wid it.  :D
Title:
Post by: MrBuitenhuizenJunior on 30 October, 2003, 02:54:47
Thnx!

This script works great, now I've got less keys in my hubs that's better  :P

See ya,

[NL]MrBuitenhuizen
Title:
Post by: raz on 30 October, 2003, 14:43:03
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
Title:
Post by: pHaTTy on 30 October, 2003, 15:13:44
huh well thats silly!!! ops are supposed to see them so they can check them
Title:
Post by: raz on 30 October, 2003, 15:17:37
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
Title:
Post by: pHaTTy on 30 October, 2003, 15:20:33
hmmm you mean so only the ops see the bot and not the users
Title:
Post by: raz on 30 October, 2003, 15:22:18
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?
Title:
Post by: pHaTTy on 30 October, 2003, 15:47:00
lol linux not sorted brrrrrrrrrrr agen :P

heheh thx for asking tho
Title:
Post by: gamefan on 01 November, 2003, 22:11:08
That is so easy to to


put this seudo code in datarrival, and Opconnected
if user.BOperator then

user.SendData(bot name descript etc
Title:
Post by: raz on 02 November, 2003, 16:10:26
i am not good at scripts so can u do it. :D
Title:
Post by: gamefan on 06 November, 2003, 22:45:59
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...
Title:
Post by: raz on 07 November, 2003, 16:29:43
sorry i don't get wat u mean. can u post the code wid dat in it on here.thanks :D