Hey guys could you made me this :
First Enter World
#include "StdAfx.h"
#include "Setup.h"
//written by hellish AKA Superior
#ifdef WIN32
#pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
#endif
void oncreate(Player *Plr)
{
if(Plr->GetSession()->CanUseCommand('0'))
{
char pAnnounce[1024];
string input2;
input2+="|cffffcc00 Has Joined the Battle!|r";
sprintf(pAnnounce, "|cff0000ff[SO]|r |cffffcc00 %s has joined [SERVER NAME]!!|r",Plr->GetName(), input2.c_str());
sWorld.SendWorldText(pAnnounce);
Plr->BroadcastMessage("Welcome to our server %s, go to the shopping mall and use our taxi to get more information, enjoy playing here!",Plr->GetName());
Plr->BroadcastMessage("Hey mate, have some gold");
uint32 goldnow = 1000000;
Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,goldnow);
}
}
void Setuponcreate(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, oncreate);
}
next for the setup.h
void Setupr(ScriptMgr * mgr);
next for setup.cpp
Setuponcreate(mgr);
And if someone can finnish this by making
making StdAfx.h
Help me pls and rep the guy who helped me