PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: WENS on 22 October, 2003, 01:02:00

Title: Icone For Bot and BlackDC
Post by: WENS on 22 October, 2003, 01:02:00
Hi all ...

BlackDC are a fonction for detecting client ...

Implemente this on your scripts ... at the connection of OP and Users ...

user:SendData("$BotList bot1$$bot2$$bot3$$bot4$$bot5$$bot6$$")
After this ... with your client BlackDC ... the client of the bot is BOT and you are a special icon fot your bot !!!

h? h? h?

Sorry for my english
Title:
Post by: dvxjunkie on 09 November, 2003, 16:23:22
I use black dc but Im not sure what you mean
Title:
Post by: xjr13sp on 15 December, 2003, 14:41:19
try this.... it works.

Quotebot_name1 = "MyBot"
bot_email1 = "bot@ptokax.com"
bot_speed1 = "2fast4you"
bot_descr1 = " -=Designation You Want=-"
bot_share_size = 0 * 1024 * gb

function Main()
 frmHub:RegBot(bot_name)
 my_info_string1 = "$MyINFO $ALL "..bot_name1.." "..bot_descr1.."$ $"..bot_speed1..strchar( 1 ).."$"..bot_email1.."$"..bot_share_size.."$"
end

function OpConnected(user)
 user:SendData( my_info_string1 )
 IconeBot = "$BotList -=Ninie=-$$-=InfoBot=-$$"
 user:SendData(IconeBot)
end

function NewUserConnected(user)
 user:SendData( my_info_string1 )
 IconeBot = "$BotList -=Ninie=-$$-=InfoBot=-$$"
 user:SendData(IconeBot)
end

 ;)
Title:
Post by: HaArD on 15 December, 2003, 17:04:20
Won't that script just send "$Botlist.........." to every single client who connects whether they are running BlackDC or not? Kind of a waste of bandwidth....