Signup Now
Results 1 to 5 of 5
  1. #1
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0

    How to create a simple function

    Well guys, i'm here to quickly teach a simple lua script function...

    First you need to give the function name, and check if the function will have a variable, look at the e.g. below


    Code:
    function momsay(text)
    Well this function is not finished yet, but you see that i put MOMSAY, "momsay" is the function name that need to be called in script, then the "text" is a variable, that will appear in entire of function code.

    Let's continue with this function, e.g. below

    Code:
      function momsay(text)
      say('Mom said '..text)
      end
      momsay("Hie")
    Well, the script will return

    This image is hosted on a possibly dangerous website (http://puu.sh/5I1sM.png). Please consider reuploading it on Imgur.com.




    This is a simple tutorial to do a simple function in LUA

    Cya

  2. #2
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    21
    You should explain more about functions, this is pretty useless, hahaha! A good way to learn more about LUA is reading: http://www.lua.org/manual/5.2/

  3. #3
    Free User debugerror's Avatar
    Join Date
    Dec 2013
    Posts
    242
    Reputation
    27
    Rep Power
    21
    i lol'd xD

  4. #4
    Banned
    Join Date
    Dec 2013
    Location
    United States
    Posts
    848
    Reputation
    30
    Rep Power
    0
    Hello Mom!!

  5. #5
    Free User
    Join Date
    Mar 2015
    Posts
    6
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Monster View Post
    Hello Mom!!
    good as I do to place the bot when you go way to the cave makes the magic of "Utana Vid" Why and go several times to kill me Mostros lureados and the only way around that is doing the magic entering or by going way the cave and out of the cave.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •