PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: WILDCAT on 02 December, 2004, 09:43:31

Title: Removing Bot names from userlist
Post by: WILDCAT on 02 December, 2004, 09:43:31
I'm looking for a script that can allow me to control all my bots by removing their names from the userlist, but still making them fully functional. I guess you can say they will be running in the background without having their bot names in the userlist. I also want to be able to add their names back on wether it's by refreshing the scripts or doing it manually by commands. I don't want to lose their functionality at all when  they are removed from the userlist I would like them to be just as effective.

thx

WILDCAT
Title:
Post by: bastya_elvtars on 02 December, 2004, 09:46:45
QuoteOriginally posted by WILDCAT
I'm looking for a script that can allow me to control all my bots by removing their names from the userlist, but still making them fully functional. I guess you can say they will be running in the background without having their bot names in the userlist. I also want to be able to add their names back on wether it's by refreshing the scripts or doing it manually by commands. I don't want to lose their functionality at all when  they are removed from the userlist I would like them to be just as effective.

thx

WILDCAT

Made for my hub in order to kill inactive bots:

-- bot hiding bot by bastya_elvtars
-- use !hidebot to hide a bot

--unhidinga a bot is unnecessary, just restart scripts, it does the job!



function DataArrival(user,data)
if strsub(data, 1, 1) == "<" and user.bOperator then
data=strsub(data,1,strlen(data)-1)
local _,_,cmd = strfind(data,"%b<>%s+(%S+)")
if cmd=="!hidebot" then
local _,_,bot=strfind(data,"%b<>%s+%S+%s+(%S+)")
if bot then
frmHub:UnregBot(bot)
else
user:SendData("no such bot")
end
return 1 end
end
end
Title:
Post by: WILDCAT on 02 December, 2004, 10:01:20
thx bastya_elvtars for your quick response. I'll try this out. I found one BotManager 1.01b  but I'm gonna try your first cause from reading the script it seems like it'll do the trick.

thx again,

WILDCAT
Title:
Post by: Herodes on 02 December, 2004, 15:53:45
You can always see this thread (http://board.univ-angers.fr/thread.php?threadid=2653&boardid=11)