Bot description script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Bot description script

Started by juda, 05 March, 2005, 11:15:10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

juda

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....
juda

bolamix

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 ^^
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

juda

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...
juda

bolamix

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 ^^
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

ruler

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

The Direct Connect Global Banlist get protected.

PPK

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.
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

juda

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
juda

bolamix

Ty for info PPK, I didn't know this.
@ juda: sorry m8, that means what you want isn't possible yet :s
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

juda

Thank you guys for your help...
see ya !!!
juda

SMF spam blocked by CleanTalk