Ezzz-dev / Nostalrius

Nostalrius is a 7.7 Tibia Clone Project based on The Forgotten Server 1.2 and CipSoft files.
99 stars 67 forks source link

Bug Clone Item. #67

Closed RCP91 closed 1 year ago

RCP91 commented 1 year ago

I discovered a bug that a player was making. After a player reported that a player had a lot of crystal coins and other items. I started investigating. and seeing this player, he goes close to Npc Gorn, relogin the character to save in that sqm, and then he throws the items of interest on the ground to benefit, and buy a cup from npc Gorn, then he throws the cup away and relogin, the last time he logged out, returned the items in his backpack. so the cup when playing on the ground causes the player not to be saved in the database.

RCP91 commented 1 year ago

Sorted out. missing npc Date="", "cup" -> Type=2881, Data=0, Amount=1, Price=2, "Do you want to buy a cup for %P gold?", Topic=1

and https://github.com/Ezzz-dev/Nostalrius/blob/3c0a34e91e2afb17cbd85a75f5ab96171cd7d8d3/src/behaviourdatabase.cpp#L823-L825