Index: src/game/Language.h
===================================================================
--- src/game/Language.h (revision 6258)
+++ src/game/Language.h (working copy)
@@ -26,6 +26,9 @@
LANG_SELECT_CREATURE = 2,
// level 0 chat
+ LANG_YOU_KILLED_NO_SPACE = 3442,
+ LANG_YOU_WERE_KILLED = 3443,
+ LANG_YOU_KILLED = 3444,
LANG_SYSTEMMESSAGE = 3,
LANG_EVENTMESSAGE = 4,
LANG_NO_HELP_CMD = 5,
Index: src/game/Player.cpp
===================================================================
--- src/game/Player.cpp (revision 6258)
+++ src/game/Player.cpp (working copy)
@@ -3591,6 +3591,8 @@
setDeathState(CORPSE);
//SetFlag( UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_IN_PVP );
+ ChatHandler(this).PSendSysMessage(LANG_YOU_WERE_KILLED);
+
SetFlag(UNIT_DYNAMIC_FLAGS, 0x00);
// 6 minutes until repop at graveyard
@@ -5718,7 +5720,28 @@
uint32 k_level = getLevel();
uint32 v_level = pVictim->getLevel();
+//pvp token start
+ uint32 noSpaceForCount = 0;
+ uint32 itemId = 29434;
+ int32 count = 1;
+
+ // check space and find places
+ ItemPosCountVec dest;
+ uint8 msg = CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount );
+ if( msg != EQUIP_ERR_OK ) // convert to possible store amount
+ count = noSpaceForCount;
+
+ if( count == 0 || dest.empty()) // can't add any
{
+ ChatHandler(this).PSendSysMessage( LANG_YOU_KILLED_NO_SPACE );
+ return true;
+ }
+
+ Item* item = StoreNewItem( dest, itemId, true, Item::GenerateItemRandomPropertyId(itemId));
+ ChatHandler(this).PSendSysMessage( LANG_YOU_KILLED );
+//pvp token end
+
+ {
// PLAYER_CHOSEN_TITLE VALUES DESCRIPTION
// [0] Just name
// [1..14] Alliance honor titles and player name
|