Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2016, 08:08 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,744
NobodysHero is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 01-08-2016, 04:42 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,492
Kyttias is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 01-10-2016, 08:59 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,744
NobodysHero is on a distinguished road
Default

I will have to try that. Thanks for the help. I'll definitely let you know how that goes!
Reply With Quote
  #4  
Old 01-12-2016, 11:55 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,744
NobodysHero is on a distinguished road
Default

I finally got around to trying it and that worked! Thank you so much!
Reply With Quote
  #5  
Old 01-13-2016, 01:55 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,492
Kyttias is on a distinguished road
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:53 PM.

Currently Active Users: 9874 (0 members and 9874 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636