Hey I was wondering how you would set it up so that when you get an honorable kill you get a badge of justice, or some other sort of badge.
Thxx in advance!
Hey I was wondering how you would set it up so that when you get an honorable kill you get a badge of justice, or some other sort of badge.
Thxx in advance!
These ads disappear when you log in.
There is a option on Arcemu/Ascent Optional.configs in your ArcEmu/Ascent Folder
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
<Extra Instant80="0"
PvPToken="0"
PvPTokenID="13905"
PvPKillAnnounce="0"
Portals="0"
L80etc="0"
WeddingNPC="0">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
Yes thats right, Aznex.
I've compiled the PvP Token script, and i have edited it so they will recieve a token and a customized spell.
Last edited by Mango Jerry; 01-03-2009 at 08:39 AM.
Could you please post those scripts?Yes thats right, Aznex.
I've compiled the PvP Token script, and i have edited it so they will recieve a token and a customized spell.
Also I need it to work for killing a lvl 19.
Thanks for the help. [=
Last edited by darknight22; 01-03-2009 at 05:08 PM.
I'm pretty sure its not only level 70 in the default script =\ Link us yours.
PvPToken
# This directive enables item rewards when there is a PvP Kill and players are level 70
#
# PvPTokenID
# If PvPToken is enabled, specify the item ID of your custom Token ID, or any other itemhow can i change it?PvPToken="1"
PvPTokenID="29434"
PvPKillAnnounce="1"
ok so i tried compiling a .dll but it didnt work it
setup.cpppvp.dll 0x00000000 : error!
setup.hCode:#include "StdAfx.h" #include "Setup.h" #define SKIP_ALLOCATOR_SHARING 1 #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) { SetupToken1(mgr); } #ifdef WIN32 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } #endif
pvp.cppCode:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void SetupToken1(ScriptMgr * mgr); #endif
pvp.VCProjCode:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void SetupToken1(ScriptMgr * mgr); #endif
if anyone could help will +repCode:#include "StdAfx.h" #include "Setup.h" #define PVP_TOKEN 29434 //Put Your Token ID Here void Token1(Player* plr, Player* victim) { if(plr->getLevel() >= 18 && victim->getLevel() >= 18 && plr->GetTeam() != victim->GetTeam()) { char message[200]; sprintf(message, "|cff00ff00[World PvP]|r |cffff0000%s|cffffffff(%i)|r has killed %s|cffffffff(%i)|r...This Is MADNESS!|r", plr->GetName(),plr->getLevel(), victim->GetName(),victim->getLevel()); sWorld.SendWorldWideScreenText(message); sLog.outColor(TRED,"n[WPVP]: WPVP Activated - the killer was %s...The victim was %s.", plr->GetName(), victim->GetName()); sLog.outColor(TNORMAL,"n"); int die; die = + 1; if((die == 1) || (die == 2)) { plr->GetItemInterface()->SafeAddItem(PVP_TOKEN, INVENTORY_SLOT_NOT_SET, -1); Item * it = objmgr.CreateItem(PVP_TOKEN, plr); plr->GetItemInterface()->AddItemToFreeSlot(it); sLog.outColor(TGREEN,"[WPVP]: A Token was added for this kill to %s", plr->GetName()); sLog.outColor(TNORMAL,"n"); } else { sLog.outColor(TYELLOW,"[WPVP]: A Token was not added to %s", plr->GetName()); sLog.outColor(TNORMAL,"n"); } } } void SetupToken1(ScriptMgr * mgr) { mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)Token1); }
thxx
Last edited by darknight22; 01-08-2009 at 12:29 AM.