opentibia / server

An open source server for the MMORPG Tibia.
GNU General Public License v2.0
416 stars 150 forks source link

trade window subtype #53

Open dutchie1289 opened 9 years ago

dutchie1289 commented 9 years ago

If you want a npc to sell a "vial of oil", you can only see "vial" in the trade window. It should state: "vial of oil".

It should be like this:

if item->subtype > 0 { vial of oil } else{ vial }

Nottinghster commented 7 years ago

Here's the fix, I've made a commit in my repository

https://github.com/Nottinghster/OTServ_SVN-0.6.4/commit/f5f09b82a062f9c1b75dcd818bd4426242447585

ivucica commented 7 years ago

It's customary to send a pull request so it can be properly reviewed.

Your commit also includes loads of unrelated formatting changes. They seem good, but should not be mixed up into one change. It would be super nice if you would split it up into multiple commits, so we can discuss each separately (and so future readers know what each change was about).