Mushi
06-02-2009, 07:11 PM
C++ Release. For ArcEmu
-----------------------------
C++ Code:
// :::::::::::::::::::::::::::::::::
// :: -Made by: Mushi!::::::::::::::
// :: - For Ac-Web members :::::::::
// :::::::::::::::::::::::::::::::::
#include "StdAfx.h"
#include "../Setup.h"
#include "../Base.h"
//Boss ID is 100000 you can change that.
#define Mushi 100000
// Boss spells. Don't edit.
#define Cleave 37476
#define Blast Wave 42945
#define Rend 47465
#define Corruption 47813
class SlayerAI : public ArcScriptBossAI
{
ARCSCRIPT_FACTORY_FUNCTION(SlayerAI, ArcScriptBossAI);
SlayerAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
{
AddSpell(Cleave, Target_Current, 15, 0, 40);
AddSpell(Blast Wave, Target_RandomPlayer, 15, 0, 20);
AddSpell(Rend, Target_ClosestPlayer, 20, 0, 16, 0, 0, false, "There will be blood!", Text_Yell, 10290);
AddEmote(Event_OnCombatStart, "You can't defeat great Mushi!", Text_Yell, 10289);
AddEmote(Event_OnTargetDied, "I killed one.", Text_Say, 11250);
AddEmote(Event_OnTargetDied, "Another one is down! You can't defeat me!", Text_Yell, 11252);
AddEmote(Event_OnDied, "You... you have... you have killed me... How?..", Text_Yell, 10291);
}
void AIUpdate()
{
if(GetHealthPercent()<=60)
{
AddSpell(Corruption, Target_SecondMostHated, 90, 0, 20);
}
if(GetHealthPercent()<=40)
{
AddSpell(Corruption, Target_RandomPlayer, 90, 0, 20);
}
if(GetHealthPercent()<=20)
{
AddSpell(Corruption, Target_RandomPlayer, 90, 0, 20);
}
ParentClass::AIUpdate();
ParentClass::AIUpdate();
}
};
void SetupWorldBoss(ScriptMgr* pScriptMgr)
{
pScriptMgr->register_creature_script(Mushi, &MushiAI::Create);
}
::::..::::..::::..::::..::::..::::..::::..::::..:: ::
What this boss can do?
He cast spells:
*Clave
*Blast Wave
*Rend
*Corruption
He says:
When he enter combat: You can't defeat great Mushi
When he kill first target: I killed one
When kill second target: Another is down! You can't defeat me!
When he dies: You... you have... you have killed me... How?
::::..::::..::::..::::..::::..::::..::::..::::..:: ::
-----------------------------
C++ Code:
// :::::::::::::::::::::::::::::::::
// :: -Made by: Mushi!::::::::::::::
// :: - For Ac-Web members :::::::::
// :::::::::::::::::::::::::::::::::
#include "StdAfx.h"
#include "../Setup.h"
#include "../Base.h"
//Boss ID is 100000 you can change that.
#define Mushi 100000
// Boss spells. Don't edit.
#define Cleave 37476
#define Blast Wave 42945
#define Rend 47465
#define Corruption 47813
class SlayerAI : public ArcScriptBossAI
{
ARCSCRIPT_FACTORY_FUNCTION(SlayerAI, ArcScriptBossAI);
SlayerAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
{
AddSpell(Cleave, Target_Current, 15, 0, 40);
AddSpell(Blast Wave, Target_RandomPlayer, 15, 0, 20);
AddSpell(Rend, Target_ClosestPlayer, 20, 0, 16, 0, 0, false, "There will be blood!", Text_Yell, 10290);
AddEmote(Event_OnCombatStart, "You can't defeat great Mushi!", Text_Yell, 10289);
AddEmote(Event_OnTargetDied, "I killed one.", Text_Say, 11250);
AddEmote(Event_OnTargetDied, "Another one is down! You can't defeat me!", Text_Yell, 11252);
AddEmote(Event_OnDied, "You... you have... you have killed me... How?..", Text_Yell, 10291);
}
void AIUpdate()
{
if(GetHealthPercent()<=60)
{
AddSpell(Corruption, Target_SecondMostHated, 90, 0, 20);
}
if(GetHealthPercent()<=40)
{
AddSpell(Corruption, Target_RandomPlayer, 90, 0, 20);
}
if(GetHealthPercent()<=20)
{
AddSpell(Corruption, Target_RandomPlayer, 90, 0, 20);
}
ParentClass::AIUpdate();
ParentClass::AIUpdate();
}
};
void SetupWorldBoss(ScriptMgr* pScriptMgr)
{
pScriptMgr->register_creature_script(Mushi, &MushiAI::Create);
}
::::..::::..::::..::::..::::..::::..::::..::::..:: ::
What this boss can do?
He cast spells:
*Clave
*Blast Wave
*Rend
*Corruption
He says:
When he enter combat: You can't defeat great Mushi
When he kill first target: I killed one
When kill second target: Another is down! You can't defeat me!
When he dies: You... you have... you have killed me... How?
::::..::::..::::..::::..::::..::::..::::..::::..:: ::