Open SirFancyBacon opened 4 years ago
Getting this to work in a multiplayer setting is gonna be tough.
I will need to cross reference the array with both player names and main hand items. then give the player XP from an associated list of strings depending on the item in hand.
Create an array on the player that runs whenever an item is switched in or out of the main hand. Use this to set a global variable in temp data.
When the npc dies check thay variable and see if what it returns. Give xp to the respective class. This can also be used to moderate damage.