PDA

View Full Version : [TrinityCore] Item Swapper



Wise
17-11-14, 06:54 PM
So i was wondering the other day.
If there was a way to convert Honor into Badges of justice.
So i got to scripting and created a Converter, tho you can change the item ID to whatever u want.
The struct or enum can be changed very easily.


{TAKE_ENTRY, TAKE_AMOUNT, GIVE_ENTRY, GIVE_AMOUNT},
TAKE_ENTRY - Item id that will be taken from the player
TAKE_AMOUNT - Amount that gets taken from the player

GIVE_ENTRY - Item id that will be given to the player
GIVE_AMOUNT - Amount that gets given to the player

Hope you enjoy this script.
I have added a example in the script itself you can simply remove it.
SCRIPT WITH EXAMPLE ADDED ; [C++] Item Swapper - Pastebin.com (http://pastebin.com/JV2nv9KV)

BLANK SCRIPT WITHOUT EXAMPLES ADD STRUCT URSELF : [C++] Item Swapper Blank - Pastebin.com (http://pastebin.com/wSy1Nb0h)

danger788
28-06-15, 04:18 PM
Cool Thanks Allot for this