Character Browser 2.25 posted
Reply
2.25 posted
Effected Files:
Updated /include/itemclass.php
Added /images/items/item_2588.gif
to
Added /images/items/item_4819.gif
Updated config.php (just version info and whitespace)



Overview:
The main changes are to itemclass.php and the new item icons. There are minor changes to other files to changes the version number. If you are currently on 2.24 you can get by with just replacing the itemclass.php file, copying the icon images over, and then updating the $version varialbe in the config.php file.



itemclass.php:
Fixed the bug reported here - further details below:
http://mqemulator.net/forum2/viewtopic.php?t=1395

If you hid bags from view it would also hide the charm slot. The problem was in the item class. The switch used to assign an item's type used the item's slot as its compare value. The charm slot is 0, so when the case evaluated to TRUE it didn't pass the compare against 0. That made it skip being assigned as an inventory slot. The next case evaluated to FALSE as a bag type, which ended up passing the compare against 0 and setting it as a bag. Once the item in the charm slot was set to a bag type it of course wouldn't get displayed when bags were disabled. It worked correctly for every other slot because they are all positive numbers which evaluated to TRUE.

The fix was to change the switch to test each case against a TRUE instead of against each item's slot number.



item_2588.gif - item_4819.gif
Newer item icons were missing, or if the file was there some of them were just empty gif images. Some of them were a little blurry and had black remnants on the edges too. I replaced a few of those, the blank ones, and added the missing ones. All the ones below 2588 could probably be re-done but they aren't that bad.
Wed Feb 12, 2014 7:22 pm
Project Lead
Character Browser 2.25 posted
Reply