Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Non-consumable Condition for Items (http://www.mysidiaadoptables.com/forum/showthread.php?t=4970)

NobodysHero 01-07-2016 08:08 PM

Non-consumable Condition for Items
 
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:


All times are GMT -5. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.