Plz look at this lua =) menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Plz look at this lua =)

    Thx for helping =)

    function Primal_Stomp(Unit)
    Unit:CastSpell(15214)
    end

    function Primal_Phase1(Unit, event)
    if Unit:GetHealthPct() < 95 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "This has gone on long enough!")
    Unit:SetModel(15214)
    Unit:SetScale(3)
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase2",1000, 0)
    end
    end

    function Primal_Phase2(Unit, event)
    if Unit:GetHealthPct() < 75 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Baah time to die!")
    Unit:SetScale(5)
    Unit:CastSpell(1557
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase3",1000, 0)
    end
    end

    function Primal_Phase3(Unit, event)
    if Unit:GetHealthPct() < 65 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Annoying Pests!")
    Unit:SetScale(7)
    Unit:RegisterEvent("Primal_Phase4",1000, 0)
    end
    end

    function Primal_Phase4(Unit, event)
    if Unit:GetHealthPct() <= 55 then
    Unit:RemoveEvents()
    Unit:SetScale(9)
    Unit:CastSpell(1557
    Unit:SendChatMessage(12, 0, "You shall all pay dearly!")
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase5",1000, 0)
    end
    end

    function Primal_Phase5(Unit, event)
    if Unit:GetHealthPct() <= 40 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "My powers! I cannot control them anymore!")
    Unit:SetScale(11)
    Unit:CastSpell(15496)
    Unit:CastSpell(24255)
    Unit:SpawnCreature(100259, x, y, z, o, 17, 0);
    Unitespawn (1000, 0)
    end
    end

    function Primal_OnCombat(Unit, event)
    Unit:SendChatMessage(11, 0, "How dare you summon me!")
    end

    function Primal_OnKilledTarget(Unit)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Haha i knew it!")
    end

    function Primal_OnKilledTarget(Unit)
    Unit:SendChatMessage(11, 0, "Conjoin with the nature!")
    end

    function Primal_Death(Unit)
    Unit:SendChatMessage(12, 0, "You cheated somehow :d I Shouldnt die!")
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(100251, 1, "Primal_OnCombat")
    RegisterUnitEvent(100251, 2, "Primal_OnKilledTarget")
    RegisterUnitEvent(100251, 3, "Primal_Death")

    Plz look at this lua =)
  2. #2
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if Unit:GetHealthPct() <= 55 then
    if Unit:GetHealthPct() <= 40 then

    Take Out the '=' Even though it shouldent make a diffrence.
    Cheese Cake?

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, you have nothing that sends it into the phases

    Snailz, <= works too...

  4. #4
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well Ive forgot about LUA all together now >.< C++ Ftw.
    Cheese Cake?

  5. #5
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh great thx m8ts =)

  6. #6
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Primal_Phase1(Unit, event)
    if Unit:GetHealthPct() < 95 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "This has gone on long enough!")
    Unit:SetModel(15214)
    Unit:SetScale(3)
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase2",1000, 0)
    end
    end
    
    function Primal_Phase2(Unit, event)
    if Unit:GetHealthPct() < 75 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Baah time to die!")
    Unit:SetScale(5)
    Unit:CastSpell(15578)
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase3",1000, 0)
    end
    end
    
    function Primal_Phase3(Unit, event)
    if Unit:GetHealthPct() < 65 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Annoying Pests!")
    Unit:SetScale(7)
    Unit:RegisterEvent("Primal_Phase4",1000, 0)
    end
    end
    
    function Primal_Phase4(Unit, event)
    if Unit:GetHealthPct() <= 55 then
    Unit:RemoveEvents()
    Unit:SetScale(9)
    Unit:CastSpell(15578)
    Unit:SendChatMessage(12, 0, "You shall all pay dearly!")
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase5",1000, 0)
    end
    end
    
    function Primal_Phase5(Unit, event)
    if Unit:GetHealthPct() <= 40 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "My powers! I cannot control them anymore!")
    Unit:SetScale(11)
    Unit:CastSpell(15496)
    Unit:CastSpell(24255)
    Unit:SpawnCreature(100259, x, y, z, o, 17, 0);
    Unit:Despawn (1000, 0)
    end
    end
    
    function Primal_OnCombat(Unit, event)
    Unit:SendChatMessage(11, 0, "How dare you summon me!")
    end
    
    function Primal_OnKilledTarget(Unit)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Haha i knew it!")
    end
    
    function Primal_OnKilledTarget(Unit)
    Unit:SendChatMessage(11, 0, "Conjoin with the nature!")
    Unit:RegisterEvent("Primal_Phase1",1000, 0)
    end 
    
    function Primal_Death(Unit)
    Unit:SendChatMessage(12, 0, "You cheated somehow :d I Shouldnt die!")
    Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(100251, 1, "Primal_OnCombat")
    RegisterUnitEvent(100251, 2, "Primal_OnKilledTarget")
    RegisterUnitEvent(100251, 3, "Primal_Death")
    should work
    Last edited by mager1794; 06-25-2008 at 07:36 PM.
    Lunar Gaming - Reaching For The Stars

  7. #7
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx man =)

  8. #8
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dosent work =/

  9. #9
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    copy the code again i editted it
    Lunar Gaming - Reaching For The Stars

  10. #10
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope dosent work

  11. #11
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe its the way your things are registered
    Last edited by mager1794; 06-27-2008 at 03:05 PM.
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. [Lua Script] revised version how does this lua look
    By towaly in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-06-2010, 01:46 PM
  2. Look at this Plz guys
    By Slikker in forum Community Chat
    Replies: 6
    Last Post: 06-25-2009, 09:56 AM
  3. Can some one plz take a look at my lua ?
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 06-25-2008, 03:09 PM
  4. <help> look at this lua
    By runiker in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-23-2008, 11:01 AM
  5. A toast all plz look in here (u too matt)
    By bloodofwar in forum Community Chat
    Replies: 10
    Last Post: 08-24-2006, 07:23 PM
All times are GMT -5. The time now is 10:46 PM. 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