"Hello World!"
9 years ago
General
// my first day being created
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
#include "StdAfx.h"
#include "../Setup.h"
#include "../Base.h"
//NPC
#define Guide 00001
// Spells
#include Catalog 37476
//Phase 1
//place holder for other characters #define Seed of Corruption 47836
class Bard : public ArcScriptBossAI
{
ARCSCRIPT_FACTORY_FUNCTION(SlayerAI, ArcScriptBossAI);
SlayerAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
{
AddSpell(heal, Target_Current, 15, 0, 40);
AddSpell(charm, Target_RandomPlayer, 15, 1.5, 20);
AddEmote(Event_OnCombatStart, "Would you like to learn how to fight", Text_Yell, 10289);
AddEmote(Event_OnTargetDied, "keep it up!", Text_Yell, 11250);
AddEmote(Event_OnTargetDied, "Let me cast rez on you", Text_Yell, 11252);
AddEmote(Event_OnDied, "You are ready for the world now", Text_Yell, 10291);
}
void AIUpdate(null)
//ignore this I a place holder for bosses
{
if(GetHealthPercent()<=60)//phase 1
{
AddSpell(Seed of Corruption, Target_SecondMostHated, 90, 0, 20);
}
if(GetHealthPercent()<=20) // Phase 2
{
AddSpell(Seed of Corruption, Target_RandomPlayer, 90, 0, 20);
}
ParentClass::AIUpdate();
ParentClass::AIUpdate();
}
};
void SetupWorldBoss(ScriptMgr* pScriptMgr)
{
pScriptMgr->register_creature_script(Bard, &BasilAI::Create);
}
Feel like yesterday someone was to lazy to fix some of the coding they gave me on my first day
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
#include "StdAfx.h"
#include "../Setup.h"
#include "../Base.h"
//NPC
#define Guide 00001
// Spells
#include Catalog 37476
//Phase 1
//place holder for other characters #define Seed of Corruption 47836
class Bard : public ArcScriptBossAI
{
ARCSCRIPT_FACTORY_FUNCTION(SlayerAI, ArcScriptBossAI);
SlayerAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
{
AddSpell(heal, Target_Current, 15, 0, 40);
AddSpell(charm, Target_RandomPlayer, 15, 1.5, 20);
AddEmote(Event_OnCombatStart, "Would you like to learn how to fight", Text_Yell, 10289);
AddEmote(Event_OnTargetDied, "keep it up!", Text_Yell, 11250);
AddEmote(Event_OnTargetDied, "Let me cast rez on you", Text_Yell, 11252);
AddEmote(Event_OnDied, "You are ready for the world now", Text_Yell, 10291);
}
void AIUpdate(null)
//ignore this I a place holder for bosses
{
if(GetHealthPercent()<=60)//phase 1
{
AddSpell(Seed of Corruption, Target_SecondMostHated, 90, 0, 20);
}
if(GetHealthPercent()<=20) // Phase 2
{
AddSpell(Seed of Corruption, Target_RandomPlayer, 90, 0, 20);
}
ParentClass::AIUpdate();
ParentClass::AIUpdate();
}
};
void SetupWorldBoss(ScriptMgr* pScriptMgr)
{
pScriptMgr->register_creature_script(Bard, &BasilAI::Create);
}
Feel like yesterday someone was to lazy to fix some of the coding they gave me on my first day
FA+

hope everything is alright uwu *hugs*