Code:
--[[ Boss - TwoPac
TwoPac loves to insult your mom!
~~End of Script Forenote
-- VictorO, December 6th, 2008. ]]
function TwoPac_OnEnterCombat(pUnit,Event)
pUnit:SendChatMessage(12, 0, "Ready to get insulted?")
pUnit:RegisterEvent("TwoPac_Spell2", 25000,1)
pUnit:RegisterEvent("TwoPac_Spell3", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell4", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell5", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell6", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell7", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell8", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell9", 25000, 1)
pUnit:RegisterEvent("TwoPac_Spell10", 25000, 1)
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 100 then
pUnit:FullCastSpellOnTarget(29516,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she lay on the beach and people run around yelling Free Willy!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 90 then
pUnit:FullCastSpellOnTarget(29004,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she goes to a restaurant, looks at the menu and says 'okay!'")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 0)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 0)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 0)
end
end
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 80 then
pUnit:FullCastSpellOnTarget(24327,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she had to go to Sea World to get baptized!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 70 then
pUnit:FullCastSpellOnTarget(48558,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she's got her own area code!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 60 then
pUnit:FullCastSpellOnTarget(24327,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat even Bill Gates couldn't pay for her liposuction!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 50 then
pUnit:FullCastSpellOnTarget(29516,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she's got more Chins than a Hong Kong phone book!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 40 then
pUnit:FullCastSpellOnTarget(18503,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she fell and made the Grand Canyon!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 30 then
pUnit:FullCastSpellOnTarget(17738,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she influences the tides!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 20 then
pUnit:FullCastSpellOnTarget(41334,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so fat she stands in two time zones!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 10 then
pUnit:FullCastSpellOnTarget(23603,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so nasty she brings crabs to the beach!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 5 then
pUnit:FullCastSpellOnTarget(23603,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so hairy you almost died of rugburn at birth!")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
function TwoPac_Spell(pUnit,Event)
if pUnit:GetHealthPct() > 2 then
pUnit:FullCastSpellOnTarget(29516,pUnit:GetClosestPlayer())
pUnit:SendChatMessage(12, 0, "%N, Yo mama so ugly she looks out the window and got arrested for mooning.")
pUnit:RemoveEvents()
x=GetX();
y=GetY();
z=GetZ();
o=GetO();
pUnit:SpawnCreature(NPCID, x-3, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-2, y+1, z, 0, 20, 6000)
pUnit:SpawnCreature(NPCID, x-1, y+1, z, 0, 20, 6000)
end
end
RegisterUnitEvent(NPCID, 1, "TwoPac_OnEnterCombat")pUnit:RemoveEvents()
function Minions(pUnit, Event)
pUnit:Emote(11)
Choice=math.random(1,4)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ahah nice one TwoPac")
pUnit:Despawn(4000, 0)
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "Eat that, sucker")
pUnit:Despawn(4000, 0)
end
if Choice==2 then
pUnit:SendChatMessage(14, 0, "OMG PWNED")
pUnit:Despawn(4000, 0)
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "Im laughing my ass off")
pUnit:Despawn(4000, 0)
end
end
RegisterUnitEvent(NPCID, 6, "Minions") // 6 is OnSpawn
Credits to Edude for the "Minion" script. (: