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,670
    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
    KuRLoS > KuRIoS

    CoreCoins User

    Ground Zero's Avatar
    Reputation
    1112
    Join Date
    Aug 2008
    Location
    Great Britain
    Posts
    3,507
    Blog Entries
    1
    CoreCoins
    37532

    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.

    If you're unsure about anything don't hesitate to PM me.

  6. #6
    Panda Panda

    CoreCoins User

    Confucius's Avatar
    Reputation
    737
    Join Date
    Oct 2007
    Location
    Earth
    Posts
    2,214
    Blog Entries
    7
    CoreCoins
    9934

    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 08:05 PM.

    Real knowledge is to know the extent of one’s ignorance



  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 09:00 AM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO Resources saved on this page: MySQL 21.43%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234