Hello friends.
I have been going through the Scripting Documents and Many Scripts made by Mutor,Madman.
I tried to learn to reg bot and simpler functions From these.
I have made a Script that announces the welcome of OP for the starters I want to place It in a Folder and make a script which will execute this script from the folder i place and also the other scripts like AOI. I don't Know how to explain but i Hope if someone can understand.
Can some one Guide me with help so as how to make a LUA script that can start the scripts inside the folder.
This is the Script i made by going through Mutors Example Scripts that i found on net.
Quote-- Making GiGaBOT Version 1.0 LUA 5.1 [API2] 26/06/09
-- By ||-T-z-B-||
Giga = {
-- SCRIPT BOT [ "" = hub BOT ]
Bot = "??GiGaBOT???",
-- Register Bot
BotReg = true,
-- BOT Description
BotDesc = "Customed AOI",
-- Bot have key
BotKey = true,
-- BOT E-mail
Email = "tzb@gigabot.com",
-- Command Menue ["" = hub name]
Menu = "",
-- Command Submenue ["" = Script name]
SubMenu = "",
-- Admin Nick
OpNick = "T-z-B",
}
OnStartup = function()
Giga.Scp = "Gigabot version 1.0"
if Giga.Bot == "" then Giga.Bot = Setman.GetString(21) end
if Giga.BotDesc == "" then Giga.BotDesc = Giga.Scp end
if Giga.BotReg then
Core.RegBot (Giga.Bot,Giga.BotDesc,Giga.Email,Giga.BotKey)
Core.SendToAll ("------------------------------------ |This HUB is Powered By "..Giga.Bot.." "..Giga.BotDesc.." made by "..Giga.OpNick.."| ------------------------------------")
end
end
OpConnected = function(user)
Core.SendToAll("<"..Giga.Bot.."> Operator "..user.sNick.." has joined the hub")
end
I want to learn and make more scripts into the same folder.I know many scripts are available here.I want to have it in single folder so i want to learn about it and write it on my own and want to execute from a single lua file by making it call the other scripts inside the folder.I have also seen many AOI with Settings can anyone also guide me with some help regarding it as well as in how to use it if i had to.
Is there no one to help me out with this thing? :'(
Thanks Mutor.I will be there.