Why dosent this work plz help i will +rep menu

User Tag List

Results 1 to 4 of 4
  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)

    Why dosent this work plz help i will +rep

    Okey is im makeing some scripts for my server but i get this error thingy



    Why ?

    here my lua

    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_volley2",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

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

    Thx for helping =)

    Why dosent this work plz help i will +rep
  2. #2
    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)
    Beacuse you have no function that is named Primal_OnCombat, _OnLeaveCombat, _OnKilledTarget and _Death (Primal before every _, just to lazy to write)

  3. #3
    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)
    Your regestered the wrong events

    RegisterUnitEvent(100251, 1, "Primal_Phase1")
    RegisterUnitEvent(100251, 2, "Prima_Phase2")
    ect...

  4. #4
    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)
    Ah hehe thx

Similar Threads

  1. Why dosent it work?
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 10-16-2009, 01:20 PM
  2. Really need help i will +rep if you make it work :)
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 10-13-2009, 01:57 PM
  3. Why dosent this lua work ? cant find it
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-07-2008, 02:35 PM
  4. Scripting help please will +rep need for a new server
    By runiker in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 01-22-2008, 04:05 AM
All times are GMT -5. The time now is 06:27 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