We know thats not what you said..
Here
I bettah get a thanks
J/p
_________________________________________________________________
talent.cpp
Code:
#include "StdAfx.h"
#include "Setup.h"
void Talent (Player *plr){
plr->SetUInt32Value(PLAYER_CHARACTER_POINTS1,61);
}
void SetupTalent(ScriptMgr* mgr){
mgr->register_hook(SERVER_HOOK_EVENT_ON_CHARACTER_CREATE, &Talent);
}
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) // Comment any script to disable it
{
SetupTalent(mgr);
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
setup.h
Code:
void SetupTalent(ScriptMgr * mgr);
You'll have to compile these
How to compile?