i need some lua help please menu

User Tag List

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

    i need some lua help please

    Ok here is my problem i made a timer boss and it dont work

    this script is my timer it should spawn a mage every six hours

    Code:
    function event1_spawn(Unit, event)
    Unit:SpawnCreature(113300, -13204.06, 275.09, 21.85, 4.25, 20, 86400000)
    Unit:Despawn(1, 21600000)
    
    end
     
    RegisterUnitEvent(113301, 6, "event1_spawn")
    


    ok this next one is the guts of what happens when he is spawned by
    the timer guy

    Code:
     
    function mage1_Phase1(Unit, event)
    if Unit:GetHealthPct() < 90 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113304, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113304, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113303, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113303, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase2",1000, 0)
    end
    end
     
    function mage1_Phase2(Unit, event)
    if Unit:GetHealthPct() < 70 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113303, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113303, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113304, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase3",1000, 0)
    end
    end
     
    function mage1_Phase3(Unit, event)
    if Unit:GetHealthPct() < 63 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113304, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113303, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113304, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113303, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113303, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113304, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113304, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:SendChatMessage(12, 0, "How dare you tryo to stop us!")
    Unit:RegisterEvent("mage1_Phase4",1000, 0) 
    end
    end
     
    function mage1_Phase4(Unit, event)
    if Unit:GetHealthPct() < 48 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113304, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113304, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113303, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113304, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113303, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113303, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase5",1000, 0) 
    end
    end
     
    function mage1_Phase5(Unit, event)
    if Unit:GetHealthPct() < 32 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113304, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113303, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113303, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113304, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase6",1000, 0) 
    end
    end
     
    function mage1_Phase6(Unit, event)
    if Unit:GetHealthPct() < 15 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113304, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113303, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113303, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113304, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase5",1000, 0) 
    end
    end
     
    function mage1_Phase7(Unit, event)
    if Unit:GetHealthPct() < 5 then
    Unit:RemoveEvents()
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113303, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113304, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113304, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113304, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113303, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:RegisterEvent("mage1_Phase4",1000, 0) 
    end
    end
     
     
    function mage1_OnCombat(Unit, event)
    Unit:RegisterEvent("mage1_Phase1",1000, 0)
    Unit:RegisterEvent("mage1_Phase2",1000, 0)
    Unit:RegisterEvent("mage1_Phase3",1000, 0)
    Unit:RegisterEvent("mage1_Phase4",1000, 0)
    Unit:RegisterEvent("mage1_Phase5",1000, 0)
    Unit:RegisterEvent("mage1_Phase6",1000, 0)
    Unit:RegisterEvent("mage1_Phase7",1000, 0)
    end
    function mage1_Death(Unit)
    Unit:SpawnCreature(224401, -13205.12, 277.96, 21.85, 5.78, 180000)
    Unit:SendChatMessage(12, 0, "I will return from the underworld again!")
    Unit:RemoveEvents()
    Unit:SetScale(1)
    end
    function mage1_spawn(Unit)
    Unit:SendChatMessage(12, 0, "I am but a sprit you can never kill me!")
    Unit:SpawnCreature(113303, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnCreature(113304, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnCreature(113303, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnCreature(113303, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnCreature(113304, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnCreature(113303, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnCreature(113304, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnCreature(113304, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnCreature(113303, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnCreature(113304, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnCreature(113304, -13168.31, 237.95, 33.24, 2.27, 180000)
    Unit:SpawnGameObject(137167, -13212.33, 258.22, 21.85, 4.25, 180000)
    Unit:SpawnGameObject(137167, -13208.69, 237.72, 21.85, 1.30, 180000)
    Unit:SpawnGameObject(137167, -13242.99, 289.37, 21.85, 5.62, 180000)
    Unit:SpawnGameObject(137167, -13207.32, 313.67, 21.85, 4.89, 180000) 
    Unit:SpawnGameObject(137167, -13178.21, 293.70, 21.85, 3.92, 180000)
    Unit:SpawnGameObject(137167, -13176.02, 254.26, 21.85, 2.60, 180000)
    Unit:SpawnGameObject(137167, -12315.16, 215.31, 34.96, 1.39, 180000) 
    Unit:SpawnGameObject(137167, -13250.32, 250.49, 39.23, 0.49, 180000)
    Unit:SpawnGameObject(137167, -13239.49, 308.06, 33.22, 5.70, 180000)
    Unit:SpawnGameObject(137167, -13156.18, 278.33, 33.22, 3.45, 180000)
    Unit:SpawnGameObject(137167, -13168.31, 237.95, 33.24, 2.27, 180000) 
    Unit:SendBroadcastMessage(I have returned to the arena and have opened the portal to the underworld just try to stop me!) 
    Unit:RemoveEvents()
    end
    RegisterUnitEvent(113300, 1, "mage1_OnCombat")
    RegisterUnitEvent(113300, 4, "mage1_Death")
    RegisterUnitEvent(113300, 6, "mage1_spawn")
     
    


    what this should do is make an event ever six hours at the areana can you guys help because for some reason the timer one works but the amge one dont when he is spawned he acts like he dont got a script in the world

    i need some lua help please
  2. #2
    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 timer is wayy off m8

  3. #3
    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)
    how so mate? because the timer worked good for me its the mage thing please help and show where i did wrong

  4. #4
    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)
    Unit:SpawnCreature(113300, -13204.06, 275.09, 21.85, 4.25, 20, 86400000)


    try change that 86400000 to a a SMALLER amount of time

Similar Threads

  1. Making an addon, need some LUA help
    By gryphons53 in forum WoW UI, Macros and Talent Specs
    Replies: 1
    Last Post: 12-30-2009, 02:39 AM
  2. I need some Lua help please. Great concept.
    By TripZone in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 08-01-2009, 02:01 PM
  3. Need some LUA help!
    By grothar1993 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 04-18-2009, 07:36 AM
  4. I need some Lua help,
    By Kiev in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 12-24-2008, 04:19 PM
  5. I Need some IE help please!
    By Shadowman2418 in forum Community Chat
    Replies: 0
    Last Post: 07-10-2006, 09:02 PM
All times are GMT -5. The time now is 09:31 PM. 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