Author Topic: Learning Scripting.  (Read 1986 times)

0 Members and 1 Guest are viewing this topic.

Offline TZB

  • Double Ace
  • *
  • Posts: 119
  • Karma: +13/-1
  • ||-T-z-B-||
    • FastFix Support
Learning Scripting.
« on: 27 June, 2009, 11:44:38 »
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


PtokaX forum

Learning Scripting.
« on: 27 June, 2009, 11:44:38 »

Offline TZB

  • Double Ace
  • *
  • Posts: 119
  • Karma: +13/-1
  • ||-T-z-B-||
    • FastFix Support
Re: Learning Scripting.
« Reply #1 on: 27 June, 2009, 11:50:58 »
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.

Offline TZB

  • Double Ace
  • *
  • Posts: 119
  • Karma: +13/-1
  • ||-T-z-B-||
    • FastFix Support
Re: Learning Scripting.
« Reply #2 on: 27 June, 2009, 12:55:06 »
Is there no one to help me out with this thing?  :'(

Offline TZB

  • Double Ace
  • *
  • Posts: 119
  • Karma: +13/-1
  • ||-T-z-B-||
    • FastFix Support
Re: Learning Scripting.
« Reply #3 on: 27 June, 2009, 13:22:36 »
Thanks Mutor.I will be there.

PtokaX forum

Re: Learning Scripting.
« Reply #3 on: 27 June, 2009, 13:22:36 »