--copy from line below here -- made by b_w_johan 15-8-05 -- v5
-- load files -- --loadScript("name.lua")
-- declaraties -- b_w = {} b_w.Name = "Guard" -- place here botname b_w.Disc = "By b_w_johan 4 BN^_ " -- put here discriptrion + tag b_w.mail = "dc.client@gmail.com" -- put email adres here b_w.ownt = "b_w_johan" -- place the name of hubowner here
-- bij starten -- setArrival("OnStartup", function() SendToAll(b_w.Name, "de bot is net gestart") -- send message on startup RegBot(b_w.Name, b_w.Disc, b_w.mail) -- add bot to userlist end)
setArrival("UserConnected", function(user, msg) SendToAll(b_w.Name, ""..user.sName.." is zojuist de hub binnengeslopen...") -- if user enters send message end)
setArrival("OpConnected", function(user, msg) if user.sName == b_w.ownt then -- if owner enters send SendToAll(b_w.Name, "De owner enterde") else SendToAll(b_w.Name, "de operator "..user.sName.." is zojuist de hub binnengeslopen...") -- if OPerator enters send: end end)
setArrival("ChatArrival", function(user,msg) msg = string.gsub(msg, "(%S+)", function(word) if word == "!test" then SendToAll(b_w.Name, "TEST SUCCEEDED") -- this happens by !test return 1 elseif word == "!clear" then SendToAll(user.sName, "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ") -- this clears mainchat every \r\n is 1 enter end end) end)
--copy till the line above here open notepad and save as "guard.lua" in the script folder of Voltron
--im not sure if this is what youre looking for but this is a basic for making a bot, be more specific in what you want and i can make it like you want now its only a welcome bot
--copy from line below here -- made by b_w_johan 15-8-05 -- v6
-- declaraties -- b_w = {} b_w.Name = "Guard" -- place here botname b_w.Disc = "By b_w_johan 4 BN^_ " -- put here discriptrion + tag b_w.mail = "dc.client@gmail.com" -- put email adres here b_w.ownt = "b_w_johan" -- place the name of hubowner here b_w.rule = "ALOT OF RULES HERE \r\n every line ends with \r\n so you can start a new one." -- place youre rules here.
-- bij starten -- setArrival("OnStartup", function() SendToAll(b_w.Name, "de bot is net gestart") -- send message on startup RegBot(b_w.Name, b_w.Disc, b_w.mail) -- add bot to userlist end)
setArrival("UserConnected", function(user, msg) SendToAll(b_w.Name, ""..user.sName.." is zojuist de hub binnengeslopen...") -- if user enters send message end)
setArrival("OpConnected", function(user, msg) if user.sName == b_w.ownt then -- if owner enters send SendToAll(b_w.Name, "De owner enterde") else SendToAll(b_w.Name, "de operator "..user.sName.." is zojuist de hub binnengeslopen...") -- if OPerator enters send: end end)
setArrival("ChatArrival", function(user,msg) msg = string.gsub(msg, "(%S+)", function(word) if word == "!test" then SendToAll(b_w.Name, "TEST SUCCEEDED") -- this happens by !test return elseif word == "!clear" then SendToAll(user.sName, "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ") -- this clears mainchat every \r\n is 1 enter return elseif word == "!rules" then SendToAll(b_w.Name, b_w.rule) -- if its yust only the declaration from above no ".. .." needed ... but if you do it with .. you shoould add "".. .."" wich meens you add txt command txt and the txt parts are empty so it can be left away. return end end) end)
--copy till the line above here open notepad and save as "guard.lua" in the script folder of Voltron
ok its weird cause: b_w.rule = { "text line1", "text line2". }
should have been working to... but then its yust not sending... so here is a middle solution .. if it starts working ill post again. [ Edited Fri Aug 19 2005, 01:19PM ]