[WIP] My BossFight menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WIP] My BossFight

    :Introduction:
    In this post you will find:

    Boss Fight Description
    Boss Fight Code


    :Boss Fight Description:
    As the fight starts the Boss will shoot away(launch) the main tank, as he does this he will say: "Who dares to get in my way?!"

    Five seconds after that the script checks if he has lost any life.
    If he has below 100% but above 90% left then he will be casting 3 different spells.
    He wont cast this in any specific order. Just randomly.

    Allergic Reaction on main tank.[For 18 sec, increasing the damage it takes by 500.]

    Absorb Life on random player.[5000 health from an enemy over 5 sec.]

    Chain Lightning on random player.[7400 to 8600 Nature damage]

    If the boss's life is below 90% then he will cast a Frost Nova.
    He will then go away a bit and then he will summon 4 minions.
    [Im done with 2 of them]

    Minion 1 will be casting 2 spells randomly.

    Frost Nova.[230 to 260 Frost damage.]

    Frost Bolt on random player.[630 to 680 Frost damage.]

    Minion 2 will be casting 2 spells randomly.

    First hell cast Frost Nova. Then he will move away abit.
    He will then try to heal the Boss.

    The other spell is that hell try to heal himself with.
    Lesser Healing Wave[832 to 928.]

    When his life is down to below 25% then he will cast.
    Blood Heal[Fully heals the caster, but also drains 40% of the caster's life over 10 sec.]

    When the boss has less than 80% then he will cast a divine light spell on himself.
    Shining Light[Protected by the shining light. Undeath is repelled by your presence.]

    While he does this he will say: "This divine light will be the last thing you see before your doom."

    Two seconds after that he will be casting 3 spells, with 1 second between each spell.

    Blue Smoke Flare[Throw a blue smoke flare at a specific location that lasts for 20 sec.]

    Fortitude of Frost[Increases damage done by 10% and reduces damage taken from all sources by 20%.]

    Frost Nova[365 to 415 Frost damage.]

    A half second after this the boss will split himself.
    So now youll be dealing with two bosses.
    Before the original boss dissapears he will cast Fortitude of Frost on both MiniBosses.

    Ill be updating this when ive gotten further into scripting

    :Boss Fight Code:

    Correct any errors in this script please, thx.

    Code:
    local Boss = 500000
    local Minion1 = 500001
    local Minion2 = 500002
    local Minion3 = 500003
    local Minion4 = 500004
    local MiniBoss1 = 500006
    local MiniBoss2 = 500007
    
    function MiniBoss1_OnCombat(Unit, Event)
    end
    
    function MiniBoss2_OnCombat(Unit, Event)
    end
    
    RegisterUnitEvent(500006, 1, "MiniBoss1_OnCombat")
    RegisterUnitEvent(500007, 1, "MiniBoss2_OnCombat")
    
    function Minion1_OnCombat(Unit, Event)
        Choice=math.random(1, 2)
        if Choice==1 then
            Minion1:CastSpell(27088)
        end
        if Choice==2 then
            Minion1:CastSpell(38697, Minion1:GetClosestPlayer())
        end
    end
    
    function Minion2_OnCombat(Unit, Event)
        if Minion2:GetHealthPct() <= 25 then
            Minion2:CastSpell(37487)
        else
            if Minion2:GetHealthPct() => 25 then
            Choice=math.random(1, 2)
            if Choice == 1 then
            Minion1:CastSpell(27088)
            x = Minion2:GetX()
            Minion2:MoveTo(x + 5)
            end
            if Choice == 2 then
            Minion2:CastSpell(10468)
            end
            Minion2:FullCastSpellOnTarget(49273, Boss)
            end
        end
    end
    
    RegisterUnitEvent(500001, 1, "Minion1_OnCombat")
    RegisterUnitEvent(500002, 1, "Minion2_OnCombat")
    RegisterUnitEvent(500003, 1, "Minion3_OnCombat")
    RegisterUnitEvent(500004, 1, "Minion4_OnCombat")
    
    function Boss_OnCombat(Unit, Event)
        Boss:RegisterEvent("GettingStarted", 1000, 0)
    end
    
    function GettingStarted(Unit, Event)
        if Unit:GetHealthPct() => 99 then 
            Unit:RemoveEvents()
            Unit:RegisterEvent("MoreAction", 3000, 0)
            Unit:FullCastSpellOnTarget(42407, Unit:GetMaintank())
            Unit:SendChatMessage(14, 0, "Who dares to get in my way?!")
        else
            Unit:RegisterEvent("Action", 5000, 0) 
        end
    end
    
    function MoreAction(Unit, Event)
        Unit:RemoveEvents()
        if Unit:GetHealthPct() <= 90 then
            Unit:RemoveEvents()
            Unit:RegisterEvent("MoreAction2", 1000, 0)
    end
    
    function MoreAction2(Unit, Event)
        Unit:RemoveEvents()
        Unit:CastSpell(42917)
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
        Unit:MoveTo(x + 20, y, z, o)
        Unit:RegisterEvent("EvenMoreAction", 1000, 0)
    end
    
    function EvenMoreAction(Unit, Event)
        Unit:RemoveEvents()
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
        Unit:SpawnCreature(500001, x, y, z, o, 21, 0)
        Unit:SpawnCreature(500002, x, y, z, o, 21, 0)
        Unit:SpawnCreature(500003, x, y, z, o, 21, 0)
        Unit:SpawnCreature(500004, x, y, z, o, 21, 0)
    end
    
    function Action(Unit, Event)
        Choice=math.random(1, 3)
        if Choice==1
        Unit:FullCastSpellOnTarget(34697, Unit:GetMaintank())
        end
        if Choice==2
        Unit:FullCastSpellOnTarget(34239, Unit:GetRandomPlayer(0))
        end
        if Choice==3
        Unit:FullCastSpellOnTarGet(64215, Unit:GetRandomPlayer(0))
        end
        if Unit:GetHealthPct() <= 80 then
        Unit:RegisterEvent("ItsOnNow", 5000)
        else
        Unit:RegisterEvent("Action", 1000)
        end
    end
    
    function ItsOnNow(Unit, Event)
        Unit:CastSpell(43202)
        Unit:SendChatMessage(14, 0, "This divine light will be the last thing you see before your doom.")
        Unit:RegisterEvent("Divine", 2000, 0)
    end
    
    function Divine(Unit, Event)
        Unit:RemoveEvents()
        Unit:CastSpell(42657)
        Unit:CastSpell(62650)
        Unit:CastSpell(42917)
        RegisterEvent("CutInTwo", 500, 0)
    end
    
    function CutInTwo(Unit, Event)
        Unit:RemoveEvents()
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
            Unit:SpawnCreature(500006, x + 5, y, z, o, 21, 0) 
        Unit:SpawnCreature(500007, x - 5, y, z, o, 21, 0)
        Unit:FullCastSpellOnTarget(62650, MiniBoss2)
        Unit:FullCastSpellOnTarget(62650, MiniBoss1)
        Unit:Despawn(1,0)
    end
    SQL: Arcemu
    Code:
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500000','Arhl''goth','The Obliterator','','0','4','0','3','0','0',28641,0,0,0,'1.4','0.77','0',NULL);
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500000','1','1','148','195622','200150','95302','1','0','1500',0,'2642','3654','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','1',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500006','80','80','148','97811','100075','6562','0.5','0','1500',0,'1321','1827','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','1',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500007','80','80','148','97811','100075','6562','0.5','0','1500',0,'1321','1827','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','1',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500001','82','82','148','11523','15485','0','1','0','2000',0,'1950','2543','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','0',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500002','82','82','148','11523','15485','0','1','0','2000',0,'1950','2543','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','0',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500003','82','82','148','11523','15485','0','1','0','2000',0,'1950','2543','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','0',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_proto" ("entry", "minlevel", "maxlevel", "faction", "minhealth", "maxhealth", "mana", "scale", "npcflags", "attacktime", "attacktype", "mindamage", "maxdamage", "can_ranged", "rangedattacktime", "rangedmindamage", "rangedmaxdamage", "respawntime", "armor", "resistance1", "resistance2", "resistance3", "resistance4", "resistance5", "resistance6", "combat_reach", "bounding_radius", "auras", "boss", "money", "invisibility_type", "death_state", "walk_speed", "run_speed", "fly_speed", "extra_a9_flags", "spell1", "spell2", "spell3", "spell4", "spell_flags", "modImmunities") VALUES
    	('500004','82','82','148','11523','15485','0','1','0','2000',0,'1950','2543','0','0','1','1','360000','0','0','0','0','0','0','0','1','1','0','0',0,'0','0','2.5','8','14',0,0,0,0,0,0,'0');
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500006','Arhl''goth','','','0','4','0','3','0',NULL,28641,0,0,0,'1','1','0',NULL);
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500007','Arhl''goth','','','0','4','0','3','0',NULL,28641,0,0,0,'1','1','0',NULL);
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500001','Odral','Minion','','0','4','0','2','0',NULL,28133,0,0,0,'1','1','0',NULL);
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500002','Kim''thol','Minion','','0','4','0','2','0',NULL,28133,0,0,0,'1','1','0',NULL);
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500003','Murd','Minion','','0','4','0','2','0',NULL,28133,0,0,0,'1','1','0',NULL);
    REPLACE INTO "creature_names" ("entry", "name", "subname", "info_str", "Flags1", "type", "family", "rank", "unk4", "spelldataid", "male_displayid", "female_displayid", "male_displayid2", "female_displayid2", "unknown_float1", "unknown_float2", "civilian", "leader") VALUES
    	('500004','Edriv','Minion','','0','4','0','2','0',NULL,28133,0,0,0,'1','1','0',NULL);
    SQL: Heartstone
    Code:
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500000', '1', '1', '148', '195622', '200150', '95302', '1.0', '0', '1500', '0', '2642.0', '3654.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '1', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500001', '80', '80', '148', '11523', '15485', '95302', '1.0', '0', '1500', '0', '1950.0', '2543.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '0', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500002', '80', '80', '148', '11523', '15485', '95302', '1.0', '0', '1500', '0', '1950.0', '2543.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '0', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500003', '80', '80', '148', '11523', '15485', '95302', '1.0', '0', '1500', '0', '1950.0', '2543.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '0', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500004', '80', '80', '148', '11523', '15485', '95302', '1.0', '0', '1500', '0', '1950.0', '2543.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '0', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500006', '1', '1', '148', '97811', '100075', '95302', '0.5', '0', '1500', '0', '1321.0', '1827.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '1', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`) VALUES ('500007', '1', '1', '148', '97811', '100075', '95302', '0.5', '0', '1500', '0', '1321.0', '1827.0', '0', '0.0', '0.0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '0.0', '0.0', '', '1', '0', '0', '0', '2.5', '8.0', '14.0', '0', '0', '-1', '7');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500000', 'Arhl\'goth', 'The Obliterator', '', '0', '4', '0', '3', '0', '0', '28641', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500001', 'Odral', 'Minion', '', '0', '4', '0', '2', '0', '0', '28133', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500002', 'Kim\'thol', 'Minion', '', '0', '4', '0', '2', '0', '0', '28133', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500003', 'Murd', 'Minion', '', '0', '4', '0', '2', '0', '0', '28133', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500004', 'Edriv', 'Minion', '', '0', '4', '0', '2', '0', '0', '28133', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500006', 'Arhl\'goth', '', '', '0', '4', '0', '3', '0', '0', '28641', '0', '0', '0', '0.0', '0.0', '0', '1');
    INSERT INTO `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) VALUES ('500007', 'Arhl\'goth', '', '', '0', '4', '0', '3', '0', '0', '28641', '0', '0', '0', '0.0', '0.0', '0', '1');
    ScreenShot:



    Beta Testers:
    2dgreengiant
    Last edited by P1raten; 08-08-2009 at 08:20 AM.

    [WIP] My BossFight
  2. #2
    Zore's Avatar Banned
    Reputation
    81
    Join Date
    Apr 2009
    Posts
    694
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice work man,
    =D

    ~ Zore

  3. #3
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Added Boss Fight Description. Aswell as fixed a minion bug.

    Edit: 46 views and 1 comment? Cmon guys, if you like this then tell me. Unless you do i wont release it.

  4. #4
    www5th's Avatar Member
    Reputation
    2
    Join Date
    Jan 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sql patch?

  5. #5
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im at work atm. Ill fix one when i get home.

    Fixed some RegisterEvent Errors.
    Added 2 new npc's
    Fixed some new content.

    Fixed even more content.
    Fixed Spell bug.
    Last edited by P1raten; 08-06-2009 at 08:46 AM.

  6. #6
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Jebus Fist- View Post
    Added Boss Fight Description. Aswell as fixed a minion bug.

    Edit: 46 views and 1 comment? Cmon guys, if you like this then tell me. Unless you do i wont release it.
    A bossfight will only be just a bossfight.. It's not like we don't have enough lua bossfights in the release section already.

  7. #7
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Added SQL.

  8. #8
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    What happened to the epic boss fights with tactics such as:
    -defending a object before people get to it while fighting a boss,
    -the boss can not be killed till a few minions are killed first,
    -moving around,
    -phases that are not just a simple spell,
    -blizzlike boss fights,
    -epic visuals,

    I mean this could all be put into one boss fight pretty easily, it's just having the time and putting in the effert. The reason people like Gastricpenguin start moaning about to many Lua boss fights is there all the same, a couple of spells at % of life and maybe a minion spawning and some people talking?

    As for this script, after my little moan *hopes some people read* I'll edit this script with any errors I see first and add in comments in a minute.

  9. #9
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry if ive dissapointed you. But im not that skilled yet. This is my first real boss script.

  10. #10
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local Boss = 500000
    local Minion1 = 500001
    local Minion2 = 500002
    local Minion3 = 500003
    local Minion4 = 500004
    local MiniBoss1 = 500006
    local MiniBoss2 = 500007
    
    function Minion1_OnCombat(Unit, Event)
        Choice=math.random(1, 2)
        if Choice==1 then
            Minion1:CastSpell(27088)
        end
        if Choice==2 then
            Minion1:CastSpell(38697, Minion1:GetClosestPlayer()) -- you didn't say what was getting the closest player
        end
    end
    
    function Minion2_OnCombat(Unit, Event)
        if Minion2:GetHealthPct() <= 25 then -- If it's on combat it's going to check this once only, so obviously it wont lose down to 25% on 1 hit
            Minion2:CastSpell(37487)
            Minion2:RemoveEvents() -- What events are we removing again
        else -- new line
            if Minion2:GetHealthPct() => 25 then
            Choice=math.random(1, 2)
            if Choice == 1 then
            Minion1:CastSpell(27088)
            x = Minion2:GetX()
            Minion2:MoveTo(x + 5)
            end
            if Choice == 2 then
            Minion2:CastSpell(10468) -- This will cast on him self
            end
            Minion2:FullCastSpellOnTarget(49273, Boss)
            end
        end -- Dunno wtf you did here, wtf is CAST SPELL ON SELF! 0_0
    end
    
    RegisterUnitEvent(500001, 1, "Minion1_OnCombat")
    RegisterUnitEvent(500002, 1, "Minion2_OnCombat")
    RegisterUnitEvent(500003, 1, "Minion3_OnCombat")
    RegisterUnitEvent(500004, 1, "Minion4_OnCombat")
    
    function Boss_OnCombat(Unit, Event)
        Boss:RegisterEvent("GettingStarted", 1000, 1) -- the 1 is saying to only check if he is on the next function once?
    end
    
    function GettingStarted(Unit, Event)
        if Unit:GetHealthPct() => 99 then -- Were only checking this once, and whats the point on 99%, anyway
            Unit:RemoveEvents() -- What are we removing? You only told it to check once.
            Unit:RegisterEvent("MoreAction", 3000, 1) -- Checking once again.
            Unit:FullCastSpellOnTarget(42407, Unit:GetMaintank()) -- better
            Unit:SendChatMessage(14, 0, "Who dares to get in my way?!")
        else
            Unit:RegisterEvent("Action", 5000, 1) -- Missed how many times were going to check
        end
    end
    
    function MoreAction(Unit, Event)
        if Unit:GetHealthPct() <= 90 then
            Unit:RemoveEvents()
            -- WE DONT GET COORDS FOR THE NEXT FUNCTION HERE! IF WE DO WE NEED TO SAVE IT
            Unit:RegisterEvent("MoreAction2", 1000, 1) -- No timer was on here
    end
    
    function MoreAction2(Unit, Event)
        Unit:RemoveEvents()
        Unit:CastSpell(42917)
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
        Unit:MoveTo(x + 20, y, z, o)
        Unit:RegisterEvent("EvenMoreAction", 1000, 1) -- didn't say ammount of times to check
    end
    
    function EvenMoreAction(Unit, Event)
        Unit:RemoveEvents()
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
        Unit:SpawnCreature(500001, x, y, z, o, 21, 0) -- Faction = ?
        Unit:SpawnCreature(500002, x, y, z, o, 21, 0)
        Unit:SpawnCreature(500003, x, y, z, o, 21, 0) -- Put as 21, hostile.
        Unit:SpawnCreature(500004, x, y, z, o, 21, 0)
    end
    
    function Action(Unit, Event)
        Unit:RemoveEvents() -- You sure you have something to even remove?
        Choice=math.random(1, 3)
        if Choice==1
            Unit:FullCastSpellOnTarget(34697, Unit:GetMaintank())
            end
            if Choice==2
                Unit:FullCastSpellOnTarget(34239, Unit:GetRandomPlayer(0)) -- Missed 0 and (
                end
                    if Choice==3
                        Unit:FullCastSpellOnTarGet(64215, Unit:GetRandomPlayer(0)) -- Missed 0 and (
                end
            if Unit:GetHealthPct() <= 80 then
                Unit:RegisterEvent("ItsOnNow", 5000)
                else
                Unit:RegisterEvent("Action", 1000)
        end
    end -- This function is really messy, how the hell do you script
    
    function ItsOnNow(Unit, Event) -- Started at 14:00
        Unit:CastSpell(43202)
        Unit:SendChatMessage(14, 0, "This divine light will be the last thing you see before your doom.")
        Unit:RegisterEvent("Divine", 2000, 1) -- Amount of times.
    end
    
    function Divine(Unit, Event)
        Unit:CastSpell(42657)
        Unit:CastSpell(62650) -- wait wtf, it's cast spellid, not cast spell id something random?
        Unit:CastSpell(42917)
        RegisterEvent("CutInTwo", 500, 1) -- in half second and how many times? This is getting pathetic, did you even proof read it?
    end
    
    function CutInTwo(Unit, Event)
        Unit:RemoveEvents()
        x = Unit:GetX()
        y = Unit:GetY()
        z = Unit:GetZ()
        o = Unit:GetO()
            Unit:SpawnCreature(500006, x + 5, y, z, o, 21, 0) -- Faciton = ?? see my earlier comment
        Unit:SpawnCreature(500007, x - 5, y, z, o, 21, 0)
        Unit:FullCastSpellOnTarget(62650, MiniBoss2)
        Unit:FullCastSpellOnTarget(62650, MiniBoss1) -- You havn't defined these you moron, you have to actually get the guid, not just the npc id. I'll leave it for now and you can sort it out
        Unit:Despawn(1,0) -- Despawn in how long and respawn? Put as despawn in instantly and no normal respawn. Capital D
    end
    Read my comments, thats what I got just from proof reading it. It's clear you didn't look at the syntax's / didn't proof read.
    As for my previous comment, I was saying why people get annoyed of all these boss fights and why most are ban now.

    If you don't already, I advise getting notepad++ for scripting in, it's so much easier to use. Colour codes / aligns it all nice and neat, and it's easy on the eye and gives you various functions / syntax checkers.

    Useful website:
    http://www.sos-server.com/library.html
    Last edited by stoneharry; 08-06-2009 at 03:52 PM.

  11. #11
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed what stoneharry pointed out.

  12. #12
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    local Boss = 500000
    local Minion1 = 500001
    local Minion2 = 500002
    local Minion3 = 500003
    local Minion4 = 500004
    local MiniBoss1 = 500006

    These will fail when you try to do Minion1: because your using the id not the guid.
    Change to
    local Minion1
    and thats it then on enter combat / spawn
    Minion1 = pUnit


Similar Threads

  1. [WIP] Death Knight
    By Squirr3l in forum World of Warcraft Model Editing
    Replies: 83
    Last Post: 10-06-2007, 06:56 PM
  2. [WIP] Northrend
    By faizer in forum World of Warcraft Model Editing
    Replies: 35
    Last Post: 10-06-2007, 06:31 AM
  3. [WIP] Reskin Project V2.
    By Mr. Moose in forum World of Warcraft Model Editing
    Replies: 16
    Last Post: 09-22-2007, 06:43 PM
  4. WIP: Barrens Desert
    By dasgman in forum World of Warcraft Model Editing
    Replies: 8
    Last Post: 08-11-2007, 01:47 AM
  5. [WIP] NE Druid to BE Druid!
    By Zero-Cool in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 05-11-2007, 12:28 AM
All times are GMT -5. The time now is 07:42 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