[Lua] How to write notes to yourself menu

User Tag List

Results 1 to 7 of 7
  1. #1
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] How to write notes to yourself

    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?

    [Lua] How to write notes to yourself
  2. #2
    Trollblod's Avatar Elite drone
    Reputation
    445
    Join Date
    May 2009
    Posts
    1,710
    Thanks G/R
    2/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pretty sure this belong to the Programming -> misc section. Misc - MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides


  3. #3
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Confucius's Avatar Panda of Worlds The Idiot

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1389
    Join Date
    Oct 2007
    Posts
    2,591
    Thanks G/R
    265/283
    Trade Feedback
    7 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 08:05 PM.

  7. #7
    Mildan's Avatar Member
    Reputation
    10
    Join Date
    Feb 2009
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

Similar Threads

  1. [Help] Lua, How to...?
    By Lilltimmy in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 04-19-2008, 12:00 PM
  2. How To Debuff "Heartbroken" On Yourself
    By Daeity in forum World of Warcraft Exploits
    Replies: 12
    Last Post: 02-15-2008, 06:26 PM
  3. How to: Write a decent application
    By Pietje in forum World of Warcraft Guides
    Replies: 10
    Last Post: 12-07-2007, 10:38 PM
  4. Guide: How to write a guide
    By Debt in forum World of Warcraft Guides
    Replies: 18
    Last Post: 11-03-2007, 07:04 PM
  5. GUIDE: How to write Exploration Guides
    By Fault in forum World of Warcraft Exploration
    Replies: 4
    Last Post: 12-31-2006, 04:07 AM
All times are GMT -5. The time now is 03:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search