Code:
//Made by ???
//Modified by WigSplitta whole code
//Re-Modified by HalestormXV (Added More Features)
//Random Dice Concept to Kuraria for Helping HalestormXV
//Modified by Neo_mat
#include "StdAfx.h"
#include "Setup.h"
#define TokenID 19712 //set token id here
void onPvpKill(Player* pPlayer)
{
Item *item;
item = objmgr.CreateItem( TokenID , pPlayer);
item->SetUInt32Value(ITEM_FIELD_STACK_COUNT,1);
item->SoulBind();
if(!pPlayer->GetItemInterface()->AddItemToFreeSlot(item))
{
pPlayer->GetSession()->SendNotification("No free slots were found in your inventory!");
item->DeleteMe();
}
else
{
SlotResult *lr = pPlayer->GetItemInterface()->LastSearchResult();
pPlayer->GetSession()->SendItemPushResult(item,false,true,false,true,lr->ContainerSlot,lr->Slot,1);
}
}
void SetupPvPToken(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
}
from arcemu, try compile it, might work with Ascent too