strixtherealm-rpg / Strix-The-Realm

Strix The Realm is a configuration for the NT-RPG plugin by NeumimTo. Suggestions are welcome however this is mostly reserved for my personal server; which you are welcome to join :)
0 stars 2 forks source link

Damage type detection #41

Open SirFancyBacon opened 4 years ago

SirFancyBacon commented 4 years ago

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.

SirFancyBacon commented 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.