PDA

View Full Version : [C++] ArcEmu Boss


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?
::::..::::..::::..::::..::::..::::..::::..::::..:: ::

mattias9410
06-02-2009, 07:20 PM
pretty simple and easy to understand :)

Mushi
06-02-2009, 07:22 PM
Thanks for comment.

Wizard
06-02-2009, 07:31 PM
I really like script.. easy and nice... +REP

Mushi
06-02-2009, 07:38 PM
Thanks for reputation/comment.

Terrorblade
06-02-2009, 08:11 PM
*comment goes here*

Mushi
06-02-2009, 08:27 PM
Need more rep/comments! Thanks.

bonedeath6
06-02-2009, 08:29 PM
Nice Mushi,I've been trying to take up C++.Still learning though.

Mushi
06-02-2009, 08:40 PM
C++ is simple when you know it :).

bonedeath6
06-02-2009, 08:45 PM
As is LuA.

Mushi
06-02-2009, 08:52 PM
I know Lua too :)

iamrogue
06-03-2009, 02:59 PM
Pretty nice script, some grammar mistakes should be fixed though! :)

Mushi
06-03-2009, 03:26 PM
Thanks mate! At World of Chris :: Official Site (http://www.wocserver.org)!

mager
07-15-2009, 07:57 AM
Its a nice script but no offence and i really do mean that, but using arcscript is almost as bad as scripting in lua......sorry, but they give you a function to add spells into the fight process with one functions and thats realy just no challenge. if you really wanna challenge yourself use the Original CreatureAI. Not to mention its more efficient seeing as how ArcScript ends up calling the same functions anyway, normal creatureAI is just less work on the server. So try it challenge yourself and see what you get =D

sjoerdman
07-15-2009, 12:34 PM
Hehe, I'm a developer on WoC. :P