[Release] LUA Template. menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] LUA Template.

    Here is a LUA Template I did up for some of the learners of LUA out there.
    Enjoy. Edit the bold red areas with your own information... read below the code for more info on the edit spots.

    ---

    Code:
    --[[ Boss - NPCNAME
    INFORMATION ABOUT NPC
    
    ~~End of Script Forenote
    -- Hellgawd, September 5th, 2008. ]]
    
    function NPCNAME_OnEnterCombat(pUnit,Event)
        pUnit:RegisterEvent("NPCNAME_Spell2", 20000,1)
        pUnit:RegisterEvent("NPCNAME_Spell3", 35000, 0)
        pUnit:RegisterEvent("NPCNAME_Spell", 25000, 0)
    end
    
    function NPCNAME_Spell2(pUnit,Event)
     if pUnit:GetHealthPct() > 20 then
        pUnit:FullCastSpellOnTarget(ATTACKSPELLPOWERFUL,pUnit:GetClosestPlayer())
    end
    end
    
    function NPCNAME_Spell3(pUnit,Event)
        pUnit:FullCastSpellOnTarget(ATTACKSPELL,pUnit:GetClosestPlayer())
    end
    
    function NPCNAME_Spell(pUnit,Event)
        pUnit:CastSpell(SELFBUFFSPELL)
        pUnit:CastSpell(SELFHEALSPELL)
    end
    
    RegisterUnitEvent(NPCID, 1, "NPCNAME_OnEnterCombat")
    STUFF TO EDIT:

    Hellgawd, September 5th, 2008. - Edit this with your name, and the current date.

    NPCNAME - edit this with the name of the npc, for example, Nayule.

    NPCID - put the entry id of the npc in question here.

    INFORMATION ABOUT NPC - put all information about the script / npc itslef here.

    SELFBUFFSPELL - replace this with the spell id (GOTTEN FROM WOWHEAD) of a random good buff.

    SELFHEALSPELL - replace this with the spell id (GOTTEN FROM WOWHEAD) of a self-healing spell.

    ATTACKSPELL - replace this with the spell id ( GOTTEN FROM WOWHEAD) of an offensive spell.

    ATTACKSPELLPOWERFUL - this spell is used not until later on the fight, so replace this with a really powerful spell id ( GOTTEN FROM WOWHEAD ) make sure it's an offensive spell!

    Cheers,
    Hellgawd.


    [Release] LUA Template.
  2. #2
    *Scripted*'s Avatar Banned
    Reputation
    41
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice +Rep this is for da noobs.

  3. #3
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, this will help Lua beginners

  4. #4
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's exactly what it is for.
    Last edited by Hellgawd; 09-05-2008 at 09:19 PM.

  5. #5
    Lord-kapser's Avatar Active Member
    Reputation
    21
    Join Date
    Jan 2007
    Posts
    233
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks it looks nice i will try it out sometime

    +Rep added
    -Lord-kapser


  6. #6
    мιяаgє's Avatar Member
    Reputation
    42
    Join Date
    Jan 2008
    Posts
    210
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Noice, will help newbies to lua.. like me +Rep


  7. #7
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, This will help most =D +rep
    Database Evolved Developer:wave:

  8. #8
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good job as always :P +rep

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  9. #9
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha thanks.

  10. #10
    Maven01's Avatar Active Member
    Reputation
    23
    Join Date
    Nov 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, this will surely help out some of my noob friends.

    +rep

  11. #11
    Fireblast's Avatar Contributor
    Reputation
    195
    Join Date
    Aug 2008
    Posts
    883
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks this helped me!

  12. #12
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem, I am glad it was useful.

  13. #13
    alj03's Avatar Contributor
    Reputation
    91
    Join Date
    Feb 2008
    Posts
    1,103
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So how can i make it so it casts a spell when i want it to, for example the mob casts a spell at 10%?

  14. #14
    MysterioussouL's Avatar Banned
    Reputation
    339
    Join Date
    Feb 2008
    Posts
    431
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    really nice , it will help beginners alot +Rep
    Edited : rep is on cooldown , i'll rep later

  15. #15
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kewl Hellgawd, will surely help alot of people.
    Also Knowned as Samloo


Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] LUA Boss Template
    By Ground Zero in forum WoW EMU General Releases
    Replies: 10
    Last Post: 03-27-2009, 05:03 PM
  2. [Share/Release] Lua Portal
    By ~ViVo~ in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-16-2008, 10:40 AM
  3. [RELEASE] LUA Bossfight
    By Shao111 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-23-2008, 03:03 PM
  4. [Release] Mall template
    By kate1 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 01-13-2008, 10:26 AM
All times are GMT -5. The time now is 11:26 AM. 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