Code:
#include "StdAfx.h"
#include "Setup.h"
#ifdef WIN32
#pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
#endif
void onecreate(Player *Plr)
{
Plr->_UpdateMaxSkillCounts();
Plr->SetUInt32Value(PLAYER_CHARACTER_POINTS1,61);
Plr->_AdvanceAllSkills(375);
}
void Setuponecreate(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, onecreate);
}
Setup.cpp
Code:
#include "StdAfx.h"
#include "Setup.h"
#include <ScriptSetup.h>
extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
return SCRIPT_TYPE_MISC;
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
{
Setuponecreate(mgr);
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
Setup.h