Quote:
Today at 11:29 AM Me! said this in Post #1909
I found a little bug, I set certain items to be exclusive to certain classes. For example I'm a priestess which is categorized under holy type. I also have paladin which is classified as Paladin.
Whenever I go into the item shop, instead of taking me to the holy class only weapons I am instead taken to the Paladins weapons, I can even purchase them.
It doesn't seem to recognize I'm not a paladin unless I go and click on some other category like Mage or something.
|
Thanks, will be fixed in the next version, I think. Quick fix:
In itemshop.php, find:
PHP Code:
$pos = strpos($selitem[type], $itemtype);
if($pos !== false || $catcheck[type] == 1) {
And REPLACE with:
PHP Code:
if(in_array($itemtype, explode(' ', $selitem['type'])) || $catcheck[type] == 1) {
Let me know if that works. If not, then I need to do something else