Quote-- Script For Bot Description
gb = 1024 * 1024 * 1024
bot_name = "[SLO-NET][BOT]Clone-Alert"
bot_email = "clone@email.si"
bot_speed = "LAN(T1)"
bot_TAG = "<++ V:2.0,M:A,H:5/2/9,S:3>"
bot_descr = "? Clone Alert BoT - Drop all users who want to connect with second client ?"
bot_share_size = 0 * 1024 * gb
bot_name2 = "[SLO-NET]Chat-Security"
bot_email2 = "shock@email.si"
bot_speed2 = "DSL"
bot_TAG2 = "<++ V:1.11,M:A,H:5/5/6,S:1>"
bot_descr2 = "? !rules - to see hub rules ?"
function Main()
frmHub:RegBot( bot_name )
my_info_string = "$MyINFO $ALL "..bot_name.." "..bot_descr.." "..bot_TAG.."$ $"..bot_speed..strchar( 1 ).."$"..bot_email..
"$"..bot_share_size.."$"
frmHub:RegBot( bot_name2 )
my_info_string2 = "$MyINFO $ALL "..bot_name2.." "..bot_descr2.." "..bot_TAG2.."$ $"..bot_speed2..strchar( 1 ).."$"..bot_email2..
"$"..bot_share_size.."$"
end
function OpConnected( user )
user:SendData( my_info_string )
user:SendData( my_info_string2 )
end
function NewUserConnected( user )
user:SendData( my_info_string )
user:SendData( my_info_string2 )
end
____________________________________________
Hay to all scripters...I use this script to show bot description and tag,but is in LUA 4...
Can anyone convert to LUA 5 please....
Hi,
Replace strchar with string.char and you're done.
D'you want fries with that? Would you like me to show you where the search button is?
Oops..... little fit of smart-assedness here... not sorry ^^
Thanks m8 for your help !!!
Now script work in LUA5,but just for hub bots....
Thay dont show tag and description for PtokaX inbuild -[OP-Chat]- and -[Security Bot]-
In old PtokaX script work also for Ptoka bots...
I hope you understand what I mean...
Hiya,
For your -[OP-Chat]- and -[Security Bot]- to have a description, you have to add them to your bot description script, i.e.:
bot_name3 = "-[OP-Chat]-"
bot_email3 = "OpChat@yourhub.com"
etc
bot_name4 = "-[Security Bot]-"
bot_email4 = "SecurityBot@yourhub.com"
etc
frmHub:RegBot( bot_name3 )
my_info_string3 = "$MyINFO $ALL "..bot_name3.." etc
frmHub:RegBot( bot_name4 )
my_info_string4 = "$MyINFO $ALL "..bot_name4.." etc
Then:
function NewUserConnected( user )
user:SendData( my_info_string )
user:SendData( my_info_string2 )
user:SendData( my_info_string3 )
user:SendData( my_info_string4 )
end
And since your OpConnected(user) function does the same thing as NewUserConnected(user), I suggest you use
OpConnected = NewUserConnected
instead of repeating the same thing twice
Happy hubbing ^^
gb = 1 * 1024 * 1024
botname = "Maniac"
botemail = "mr.t@aol.com"
bottag = "<++ V:0.306,M:P,H:3/2/0:S,3>"
botspeed = "Cable " -- here need this space in the end
botdescr = ""
botsharesize = 671 * 1024 * gb + 1024 * 1024 * 522
frmHub:RegBot(botname, Reg)
botinfostring = "$MyINFO $ALL "..botname.." "..botdescr.." "..bottag.."$ $"..botspeed.."$"..botemail.."$"..botsharesize.."$"
function NewUserConnected(curUser)
SendToAll(botinfostring)
end
function OpConnected(curUser)
SendToAll(botinfostring)
end
QuoteOriginally posted by juda
Now script work in LUA5,but just for hub bots....
Thay dont show tag and description for PtokaX inbuild -[OP-Chat]- and -[Security Bot]-
In old PtokaX script work also for Ptoka bots...
Yes, new PtokaX support new features and for compatibility with some clients (DC2 for example) must send myinfo for bots... and if you send myinfo from script is after replaced with myinfo from hub (on user login script send data before hub send own login data) -> problem is not in script, problem is in PtokaX :rolleyes:
I fix this later with something like frmHub:RegBot(botname, botmyinfo), frmHub:SetHubBotMyInfo(myinfo) and frmHub:SetOpChatMyInfo(myinfo), if anyone don't have better idea.
bolamix wrote:
___________________________________________
Hiya,
For your -[OP-Chat]- and -[Security Bot]- to have a description, you have to add them to your bot description script, i.e.:
___________________________________________
I add bout bot to list,but doesn`t show description and Tag
They don`t show only for this two bots...any idea?
by from Trbovlje
Ty for info PPK, I didn't know this.
@ juda: sorry m8, that means what you want isn't possible yet :s
Thank you guys for your help...
see ya !!!