Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
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?
|
#2
|
||||
|
||||
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...?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
||||
|
||||
I will have to try that. Thanks for the help. I'll definitely let you know how that goes!
|
#4
|
||||
|
||||
I finally got around to trying it and that worked! Thank you so much!
|
#5
|
||||
|
||||
Great!
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
|
|
What's New? |
What's Hot? |
What's Popular? |