[Guide] Lua Scripting Guide is here [Updating] menu

Shout-Out

User Tag List

Page 6 of 7 FirstFirst ... 234567 LastLast
Results 76 to 90 of 94
  1. #76
    bigmanqqq's Avatar Member
    Reputation
    11
    Join Date
    Oct 2006
    Posts
    70
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by BrantX View Post
    hmmm Could you make a script when it gets to a certain Percentage of HP and it spawns Monsters?

    Just Asking cause i want to do that..that would be sweet
    like anzu in shadow labs? [druid swift flight form quest dude]?
    Code:
    function Anzu_HealthCheckA(Unit)
        if Unit:GetHealthPct() < 66 and Didthat == 0 then
            Unit:FullCastSpell(41196)
            Unit:SpawnCreature(23134, -90.7, 265.7, 26.86, 0, 18, 36000000);
            Didthat = 1
        else
        end
    end
    
    function Anzu_HealthCheckB(Unit)
        if Unit:GetHealthPct() < 33 and Didthat == 1 then
            Unit:FullCastSpell(41196)
            Unit:SpawnCreature(23134, -90.7, 265.7, 26.86, 0, 18, 36000000);
            Didthat = 2
        else
        end
    end
    
    function Anzu_Cyclone(Unit, event, miscunit, misc)
        print "Anzu Cyclone"
        Unit:FullCastSpellOnTarget(40303,Unit:GetClosestPlayer())
        Unit:SendChatMessage(11, 0, "Let's blow this place...")
    end
    
    function Anzu_Screech(Unit, event, miscunit, misc)
        print "Anzu Screech"
        Unit:FullCastSpellOnTarget(40321,Unit:GetClosestPlayer())
        Unit:SendChatMessage(11, 0, "Some Cyclone...")
    end
    
    function Anzu(unit, event, miscunit, misc)
        print "Anzu"
        unit:RegisterEvent("Anzu_HealthCheckA",1000,1)
        unit:RegisterEvent("Anzu_HealthCheckB",1000,1)
        unit:RegisterEvent("Anzu_Cyclone",10000,0)
        unit:RegisterEvent("Anzu_Screech",17000,0)
    end
    
    RegisterUnitEvent(23035,1,"Anzu")
    Originally Posted by Arugos View Post
    any idea how to make a mob cast a spell when he hit a certain % oh his hp or just a certain amount?
    same as above, unless its a healing spell, cause that'd like ... be messed he'd just keep casting it when you got him down if you used that method, not sure if anyone else know ...

    [Guide] Lua Scripting Guide is here [Updating]
  2. #77
    dabang's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aw coolz my servers gonna be pImP now!

  3. #78
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great Guide Illidan1 Really helped with LuA Scripts!

  4. #79
    Apieter's Avatar Member
    Reputation
    37
    Join Date
    Jan 2008
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After ive added a spell to a boss, how do I know how often he cast it? :P Like, If I make him cast fireball, how do I do it so he will only use it like every 30 seconds?

  5. #80
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for Comments and All that guys, Thanks

  6. #81
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can u asnwer the question of Apieter?? cause i have the same :P

  7. #82
    [RagDoll]'s Avatar Active Member
    Reputation
    31
    Join Date
    Mar 2008
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice

    Gonna use this on my private server

  8. #83
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good but its missing the basic point on the how to make your own not just a spell or anything

  9. #84
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why doesnt he talk.

    function corrupter_enter (pUnit, Event)
    print "enter"
    pUnit:SendChatMessage (11, 0, "For **** Sake! Can't you just leave me grow leaves in peace?")
    end


    function corrupter_die (pUnit, Event)
    print "die"
    pUnit:SendChatMessage (11, 0, "Well done, you killed a ****ing tree. Any arsehole with a chainsaw coulda done it!!")
    end


    function corrupter_HealthCheck(Unit)
    if Unit:GetHealthPct() < 10 and Didthat == 0 then
    Unit:CastSpell(14204)
    Didthat = 1
    else
    end
    end

    function corrupterfight(unit, event, miscunit, misc)
    print "corrupter"
    unit:RegisterEvent("corrupter_HealthCheck",1000,1)
    end

    RegisterUnitEvent(519201,1,"corrupterfight")
    RegisterUnitEvent (519201,4,"corrupter_die")
    RegisterUnitEvent (519201,4,"corrupter_die")
    RegisterUnitEvent (519201,1,"corrupter_enter")
    RegisterUnitEvent (519201,1,"corrupter_enter")
    it says when he enters combat or died but he doesnt speak
    Last edited by controlsx2; 05-05-2008 at 06:04 PM.

  10. #85
    thpthpthp's Avatar Contributor
    Reputation
    101
    Join Date
    Feb 2007
    Posts
    496
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey i also have a problem i tried to make a diablo npc which would yell stuff and cast a spell but the script i made didnt work for both functions and yes i put it in my scripts folder and added .lua i followed the guide exactly (i think) but i cant get it to work =/
    heres the script:

    Code:
     
    function Diablo_Cone of Fire (pUnit, Event)
    pUnit:CastSpell (36876)
    end 
    RegisterUnitEvent (13371337, 1, "Diablo_Cone of fire")
     
    function Diablo_Entercombat (pUnit, Event)
    pUnit:SendChatMessage (5, 0, "Not even death can save you from me!")
    end
    RegisterUnitEvent (13371337, 1, "Diablo_Entercombat")
    i think the problem is that when i put .lua at the end of the file name only the name changed not the file type
    hope im makeing this clear =/
    Last edited by thpthpthp; 05-08-2008 at 04:07 PM.

  11. #86
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thp write it in notpad and save it as blabla.lua then in second drop down box where it says type or something click all files

  12. #87
    thpthpthp's Avatar Contributor
    Reputation
    101
    Join Date
    Feb 2007
    Posts
    496
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by controlsx2 View Post
    thp write it in notpad and save it as blabla.lua then in second drop down box where it says type or something click all files
    hmm tried what you said but and it changed to a .lua file type but the script still didnt work the monster still douse nothing =(
    but still +Rep for helping :wave:

  13. #88
    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_OnEntercombat (pUnit, Event)
    pUnit:SendChatMessage(11, 0, "Why are u even trying?")
    end
    RegisterUnitEvent(5, 1, "Thor'Maz_OnEntercombat")


    function Thor'Maz_OnDie (pUnit, Event)
    pUnit:SendChatMessage(11, 0, "I lost..")
    end
    RegisterUnitEvent(5, 1, "Thor'Maz_OnDie")

    Function Thor'Maz_OnKillTarget (pUint, Event)
    pUnit:SendChatMessage(11, 0, "Hmph Too easy")
    end
    RegisterUnitEvent(5, 3, "Thorn'Maz_OnKillTarget"

    function OnKillTargetScale(pUnit, Event)
    pUnit:SetScale(1.5);
    end
    RegisterUnitEvent(5,3,"OnKillTargetScale")
    Whats wrong?

  14. #89
    tyfuz666's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like your guide very much but i do have a problem...

    when i load all the luas i get this on one of them

    N LuaEngine: welcome.lua
    failed. <could not load>
    scripts\welcome.lua:1: '<' expected near '!'

    any idea what is the problem?

  15. #90
    richdude212's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the script file even when i put .lua at the end it still says text doc. and when i restart the server it does not load why help. what i mean is that it will not load as a lua script and its a text doc.
    Last edited by richdude212; 09-24-2008 at 09:29 PM.

Page 6 of 7 FirstFirst ... 234567 LastLast

Similar Threads

  1. [Guide]Lua Scripts
    By Jgro1413 in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 06-21-2008, 09:53 PM
  2. Lua Scripting Guide
    By [Shon3m] in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 06-16-2008, 02:03 PM
  3. [Guide] Another LUA Scripting Guide
    By Bapes in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 05-08-2008, 05:01 PM
  4. LuA SCRIPTING (guide)
    By Dee2001 in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 03-05-2008, 11:43 AM
  5. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
All times are GMT -5. The time now is 08:23 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