Scripting LUA 101 menu

User Tag List

Page 7 of 9 FirstFirst ... 3456789 LastLast
Results 91 to 105 of 132
  1. #91
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No. Make a folder called "scripts" OR "lua scripts"

    Scripting LUA 101
  2. #92
    Crucius's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mk, I've made a folder "LUA scripts" (no quotations).

    I've placed the compiled script "Boss_IllidanStormrage.luac" file, LUAScripting.dll, LUAScripting.pdb in the folder.

    What else would I need to add to it? =\

    (Sorry, kinda new to this stuff )

  3. #93
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, you put the .dll's in the script_bin folder. Then you name then Illidan lua script with the extension .lua, not .luac.

  4. #94
    kajdzas's Avatar Corporal
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is best tutorial how to create LUA scripts!!!

  5. #95
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha thanks, my eBook is coming out soon...

  6. #96
    backlash52's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do you make them cast a spell when they are below x% health?
    Last edited by backlash52; 06-13-2008 at 03:11 PM.

  7. #97
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if(unit:GetHealth) < x then
    player:CastSpell(id)

  8. #98
    backlash52's Avatar Member
    Reputation
    2
    Join Date
    May 2008
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok ive tried some trial and error here but if you could show me how this SHOULD look id be much obliged

    function TheCryptKeeper_speech (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "This is MY Crypt")
    end
    RegisterUnitEvent (99966, 1, "TheCryptKeeper_speech")

    function TheCryptKeeper_dies (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "NO...This is MY...Crypt...")
    end
    RegisterUnitEvent (99966, 4, "TheCryptKeeper_dies")

    Function TheCryptKeeper_hurt (pUnit, Event)
    if(pUnit:GetHealth) < 250000 then
    pUnit:CastSpell(39321)
    end
    RegisterUnitEvent (99966, 1, "TheCryptKeeper_hurt")
    this is my current scripting for a boss i made the text did work untill i tried to make him heal himself. so if you see whats wrong plz let me know.

  9. #99
    Flannel007's Avatar Member
    Reputation
    3
    Join Date
    Aug 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, nice guide! I have a question: how would I go about making an npc immovable? I tried Unit:SetCombatCapable(1) but it caused problems when it comes to leaving combat.

  10. #100
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pUnit:Root command

  11. #101
    Flannel007's Avatar Member
    Reputation
    3
    Join Date
    Aug 2007
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome thanks
    -----------------------------------
    Ok so I tried Unit:Root() and I'm getting errors, what am I missing?
    Last edited by Flannel007; 06-18-2008 at 06:18 PM. Reason: Automerged Doublepost

  12. #102
    orion5814's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just throwin in really quick that it's helpful well structured, best guide I've seen, I haven't even taken a look at the custom LUA I have, but I already know what I did wrong, thanks a load.

  13. #103
    miniko's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where do i enter lua script? :O

  14. #104
    miniko's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function Thor'Maz_Entercombat (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Why are u even trying?")
    end
    RegisterUnitEvent(5, 1, "Thor'Maz_Entercombat")

    function Thor'Maz_Killtarget (pUnit, Event)
    pUnit:SendChatMessage(12, 0, ''Hmph, Too easy")
    end
    RegisterUnitEvent(5, 3, "Thor'Maz_Killtarget")

    function Thor'Maz_Died (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "I lost..."
    end
    RegisterUnitEvent(5, 4, "Thor'Maz_Died")

    Function Thor'Maz_Flame (pUnit, event)
    pUnit:CastSpell (33933)
    end
    RegisterUnitEvent("Thor'Maz_Flame", 10000, 3)
    Thats my ''LUA'' it isnt working ;< what shud i fix?

  15. #105
    jayco148's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice guide! helped a lot, thanks!

Page 7 of 9 FirstFirst ... 3456789 LastLast

Similar Threads

  1. [Release] My Custom boss script (LUA)
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-17-2008, 03:57 AM
  2. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  3. Need help with my script [lua]
    By Satzen in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 05:19 PM
  4. [Guide] Troubleshooting LUA 101
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-10-2008, 08:23 AM
  5. script lua question
    By onilank in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-21-2007, 06:58 PM
All times are GMT -5. The time now is 01:19 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search