topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
55 stars 81 forks source link

GM command giveItem displays a message that its given the player the item even when it can't #2646

Open SirGouki opened 3 years ago

SirGouki commented 3 years ago

Additional Information (Steps to reproduce/Expected behavior) : when using the gm command !giveItem 21750 (this is the rare/ex lvl 119 guttler bst axe) and you already have it, the game will correctly print the "You cannot posses more than one of that item", but then will incorrectly send the message "Obtained: guttler"

image

ghost commented 3 years ago

Issue only exists with the GM command. messageSpecial for ITEM_OBTAINED is called so long as there are free slots in the player's inventory. Since it is rare, this is not accounted for.