PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: B@B? on 24 May, 2005, 14:11:07

Title: Bot-Desc
Post by: B@B? on 24 May, 2005, 14:11:07
Hi there

1.
I wish to give any bot of mine an desc.
HOW can i use the following lines to do this?
(Or- what i must do? An example will be useful.
Of cause, a ready one too...) thx
*****************************************

Botname = "Hello-Bot"
desc_tag = "Here i am! <++ V:0.xxx,M:A,H:1/0/1,S:3>"
connection = "DSL"
email = "I@here.uk"
shared = "0" -- in bytes
else
Botname = "Time-Bot"
desc_tag = "Here i am! <++ V:0.xxx,M:A,H:1/0/1,S:3>"
connection = "DSL"
email = "I@here.uk"
shared = "0" -- in bytes
else
Botname = "Game-Bot"
desc_tag = "Here i am! <++ V:0.xxx,M:A,H:1/0/1,S:3>"
connection = "DSL"
email = "I@here.uk"
shared = "0" -- in bytes

bothello = "$Hello"
botmyinfo = "$MyINFO $ALL "..botname.." "..desc_tag.."$ $"..connection..string.char(5).."$"..email.." $"..shared.."$"
Title:
Post by: TTB on 24 May, 2005, 14:34:21
Example:
bot = "[BOT]Test"
botDesc = "My secription"
botTag = "My Tag"
botSpeed = "Lightspeed"
botEmail = "Test@test.com"
botShare = 0

function Main()
frmHub:RegBot(bot)
botinfo = "$MyINFO $ALL "..bot.." "..botDesc.."<"..botTag..">$ $"..botSpeed..string.char(1).."$"..botEmail.."$"..bshare.."$"
end

function NewUserConnected(user)
user:SendData(botinfo)
end
Title:
Post by: PPK on 24 May, 2005, 17:17:27
Or use PtokaX MyINFO handling for bots ;)
bot = "[BOT]Test"

botDesc = "My secription"

botTag = "My Tag"

botEmail = "Test@test.com"


function Main()

frmHub:RegBot(bot, 1, botDesc.."<"..botTag..">", botEmail)

end
Btw good bot don't have connection...
If you make small test, create bot with connection and send from this bot mass message then any client in away mode reply with own away message... if bot don't have connection then you don't receive (or only few from bad clients) away messages :))
Title:
Post by: B@B? on 25 May, 2005, 10:55:09
WHOOP!...that it is.  ;)  Thank YOU!

btw: YOUR btw-message was very interessting cause i hadn?t know this...i?ll think about.  8o
Title:
Post by: TTB on 25 June, 2005, 21:24:27
QuoteOriginally posted by PPK
Or use PtokaX MyINFO handling for bots ;)
bot = "[BOT]Test"

botDesc = "My secription"

botTag = "My Tag"

botEmail = "Test@test.com"


function Main()

frmHub:RegBot(bot, 1, botDesc.."<"..botTag..">", botEmail)

end
Btw good bot don't have connection...
If you make small test, create bot with connection and send from this bot mass message then any client in away mode reply with own away message... if bot don't have connection then you don't receive (or only few from bad clients) away messages :))

Thisone is indeed better to use. But how can I define the sharesize? Or isn't that possible... I'm just wondering, and I know it isn't important...