Results 1 to 7 of 7
  1. #1
    Master Sergeant brayden's Avatar
    Reputation
    11
    Join Date
    Apr 2008
    Location
    Maybe behind you....
    Posts
    99
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)

    [Lua] How to write notes to yourself



    Donate to Remove Ads, Get ShoutBawx - Elite Forum Access
    Hello, mmowned.
    This guide is going to teach you how to make a note to yourself inside your LUA script.

    What do I want to have for this guide? (I say want because they're not required but LUA is way easier with them).

    - First you will need a LUA engine. I recommend Notepad++ which you can get here.


    _________________________________________________________________
    Now lets get started. Before we start I am going to tell you that if you go down to the end of this post and copy/paste the script into your scripts folder you will learn noting!

    Allright so first I am going to teach you how to write notes for yourself inside the script.

    1. If your note can be inserted within one line then you simply would do this.

    _________________________________________________________________

    -- "Your note here"

    _________________________________________________________________

    Except without the quotes ofcourse.

    2. If your note cannot be inserted within 1 line then you will do this.

    _________________________________________________________________

    --[[
    "Your text here"
    ]]

    _________________________________________________________________

    And, once again don't forget to remove the qoutes.

    There you go; you have created your note you may not think it now but these can be very useful when you go to script. If you can't remember what the script does then what is the point of it right?

  2. #2
    Elite drone
    Reputation
    420
    Join Date
    May 2009
    Location
    REBORN!
    Posts
    1,664
    CoreCoins
    85

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Pretty sure this belong to the Programming -> misc section. Misc - MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides


  3. #3
    Master Sergeant brayden's Avatar
    Reputation
    11
    Join Date
    Apr 2008
    Location
    Maybe behind you....
    Posts
    99
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Vinland View Post
    Pretty sure this belong to the Programming -> misc section. Misc - MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
    It is a guide for writing notes to yourself in LUA scripts... which is emulation.

    It is not an exploit, hack, bot, or guide so I do not understand why you think it would belong in that section.

  4. #4
    Contributor
    Sounddead's Avatar
    Reputation
    160
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    1,132
    CoreCoins
    1

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Vinland is right, because its really not about emulation. Lua is used as a programming language a lot more places than in WoW Emu, and learning how to write a comment really is only related to the language.

    I live in a shoe

  5. #5
    Rebecca Black fanclub president

    CoreCoins User

    Ground Zero's Avatar
    Reputation
    1117
    Join Date
    Aug 2008
    Location
    Great Britain
    Posts
    3,507
    CoreCoins
    37542

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by brayden View Post
    It is a guide for writing notes to yourself in LUA scripts... which is emulation.

    It is not an exploit, hack, bot, or guide so I do not understand why you think it would belong in that section.

    And Exploits, Hacks, bots and Guides is the subtitle of our Forum if you havn't noticed, thats why its in the name.

  6. #6
    NOW I AM BECOME DEATH THE PANDA OF WORLDS

    CoreCoins User

    Confucius's Avatar
    Reputation
    790
    Join Date
    Oct 2007
    Posts
    2,229
    CoreCoins
    1128

    Trade Feedbacks

    Status
    Superior trader
    Positive
    3 (100%)
    Negative
    0 (0%)
    err you missed one that although it's the same as -- it's useful to use to show the output of something, that is
    -->
    for example:
    i = 1224
    print(i) --> 1224

    As you can see that clearly shows what the output will be

    Edit: Just in case you don't see the use in this, this could be helpful in helping people who don't know Lua understand your script or when in writing a guide for example it is helpful when explaining how you can assign a value to any variable with the '=' sign.

    Code:
    print(MyVariable) --> nil (this variable doesn't exist yet, hehehe)
    
    MyVariable = 5 -- we add a value to it here
    
    print(MyVariable) --> 5 (because we gave it that value above...)
    
    MyVariable = "Hello MMOwned!"
    
    print(MyVariable) --> Hello MMOwned! (Variable's values can change ;)
    Last edited by Confucius; 01-12-2010 at 09:05 PM.

  7. #7
    Master Sergeant
    Reputation
    10
    Join Date
    Feb 2009
    Posts
    80
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    To be honost it doesnt matter if you delete the quotes or not, everything after the -- is ignored in the script. So when you read the LUA file afterwards, it really doesnt matter if you have quotes in the text or not.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 03:23 PM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved. vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search