rendered paste bodyclass Brokentoe : public QuestScript
{
public:
void OnQuestStart(Player * mTarget, QuestLogEntry * qLogEntry)
{
Unit * Qgiver = NULL;
Qgiver = mTarget->GetMapMgr()->GetInterface()->GetCreatureNearestCoords(mTarget->GetPositionX(), mTarget->GetPositionY(), 0, 18471);
if(Qgiver)
{
char msg[256];
snprintf((char*)msg, 256, "Get in the Ring of Blood, %s . The fight is about to start!", mTarget->GetName());
Qgiver->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, msg);
TimedEvent * te = TimedEvent::Allocate(this, new CallbackP0<Brokentoe>(this, &Brokentoe::yell), 1, 4000, 1);
sWorld.event_AddEvent(te);
}
}
void yell()
{
Player * mTarget;
mTarget->GetMapMgr()->GetInterface()->SpawnCreature(18398, -713.427979f, 7930.669922f, 59.161800f, 4.165940f, true, false, 0, 0);
}
};