Log in

View Full Version : Non-consumable Condition for Items


NobodysHero
01-07-2016, 08:08 PM
I've created an item called, "The Fruit That Keeps Giving", with the intention of making it an item that can be used forever. However, if I don't check the "consumable" box, it doesn't allow the item to be used at all. Is there a fix for this?

Kyttias
01-08-2016, 04:42 PM
This could possibly work:

Create a new item function (just find which of the others you were looking to imitate) in functions/functions_items.php but don't call the line $delitem = $item->remove(); in it. Be sure to also reference the item function in classes/class_privateitem.php. Then go attach that function to the item. You may need to make it appear consumable, but because the function doesn't include that line, it shouldn't?

Let me know how that goes...? :happyc:

NobodysHero
01-10-2016, 08:59 PM
I will have to try that. Thanks for the help. I'll definitely let you know how that goes!

NobodysHero
01-12-2016, 11:55 PM
I finally got around to trying it and that worked! Thank you so much!

Kyttias
01-13-2016, 01:55 AM
Great! :meow: