My Boss Script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    pretli1's Avatar Private
    Reputation
    1
    Join Date
    Aug 2011
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My Boss Script

    I made a boss script and im trying to figure out why my boss keeps spawning dead here is a copy of the script


    local NAME = "Lord Punisher"
    local NPCID = 99956

    function Lord Punisher_OnSpawn(Unit, event)
    Unit:RemoveEvents()
    Unit:SetFaction(35)
    Unit:EquipWeapons(34247, 0, 0)
    Unit:RegisterEvent("Lord Punisher.MoveRandomArea", 3500, 0)
    end


    function Lord Punisher_OnCombat(pUnit, event, player)
    pUnit:SendChatMessage(12, 0, "Die you ugly humans!")
    pUnit:RegisterEvent("Lord Punisher_Phase1", 1000, 0)
    end

    function Lord Punisher_OnLeaveCombat(pUnit, event, player)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "You know nothing of power!")
    pUnit:SetScale(1)
    pUniteMorph()
    end

    function Lord Punisher_OnDeath(pUnit, event, player)
    pUnit:RemoveEvents()
    pUnit:SetScale(1)
    pUniteMorph()
    end

    function Lord Punisher_Phase1(pUnit, event, player)
    if pUnit:GetHealthPct() <= 65 then
    pUnit:SendChatMessage(12, 0, "I see that you want a true battle.")
    pUnit:CastSpell(56359)
    pUnit:RemoveEvents()
    pUnit:RegisterEvent("Lord Punisher_Phase2", 1000, 0)
    end
    end

    function Lord Punisher_Phase2(pUnit, event, player)
    if pUnit:GetHealthPct() <= 35 then
    pUnit:SendChatMessage(14, 0 , "This is impossible. I am immortal, NOW DIE!")
    pUnit:SetScale(4)
    pUnit:SetModel(21135)
    pUnit:CastSpell(68145)
    pUnit:CastSpellAoF(pUnit:GetX(), pUnit:GetY(), pUnit:GetZ(), 58936)
    pUnit:CastSpell(57083)
    pUnit:RemoveEvents()
    end
    end


    RegisterUnitEvent(NPCID, 1, "Lord Punisher_OnCombat")
    RegisterUnitEvent(NPCID, 2, "Lord Punisher_OnLeaveCombat")
    RegisterUnitEvent(NPCID, 4, "Lord Punisher_OnDeath")


    can someone please tell me if i need to change something

    ---------- Post added at 09:37 AM ---------- Previous post was at 09:34 AM ----------

    ignore the smiley faces idk why its doing that
    Last edited by stoneharry; 08-20-2011 at 06:33 AM. Reason: Added prefix.

    My Boss Script
  2. #2
    Druzil's Avatar Corporal
    Reputation
    6
    Join Date
    Oct 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's doing that because you didn't wrap the code in [ code] [ /code] tags.

  3. #3
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check the unit flags for the creature in the database.
    hey ervyone whats up gamboys

Similar Threads

  1. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
  2. LUA Boss Script
    By Lindoz12 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-04-2008, 02:45 PM
  3. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  4. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
  5. [Ascent] Boss Scripts help
    By n0t5ew in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-24-2007, 03:04 PM
All times are GMT -5. The time now is 06:39 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