yehric2018 / mmobot

1 stars 0 forks source link

!equip and !unequip command for weapons #11

Closed yehric2018 closed 1 year ago

yehric2018 commented 1 year ago

Before we can start mining, one of the steps is to be able to equip a pickaxe. A pickaxe is a type of weapon, and when equipped, it will make your mining experience much easier.

The !equip command will take the item provided and set it to one of the player's three slots: equipped_weapon, equipped_attire, or equipped_accessory. For now, we will just deal with equipped_weapon. Once the command is run with a valid weapon, we should see the database change with the column of equipped_weapon change. If equip is run again when a weapon is already equipped, the equipped weapon will simply be replaced.

The !unequip command is much simpler. If the given weapon is not equipped, we will simply say so and nothing will happen. Otherwise, we will just unequip the weapon by setting equipped_weapon to NULL.

There are some steps that need to be implemented in order to provide this full functionality.