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
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
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
You can always see this thread (http://board.univ-angers.fr/thread.php?threadid=2653&boardid=11)