View Single Post
  #2  
Old 02-03-2016, 11:55 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 152,306
Abronsyth is on a distinguished road
Default

Shouldn't be too difficult, to be honest. I'd imagine something like this in functions_items.php...just replace where I have "speciesA" and "speciesAname".

PHP Code:
function items_speciesA($item$adopt){
  
$mysidia Registry::get("mysidia");
  
$mysidia->db->update("owned_adoptables", array("type" => 'speciesAname'), "aid ='{$adopt->aid}' and owner='{$item->owner}'");
  
$note "The item has been successfully used on your adoptable, it is now a {$adopt->type}!<br>";
  
//Update item quantity...
  
$delitem $item->remove(); 
  return 
$note;

Then going off of what Kyttias did for the gender mod, just go into your items_functions table, copy level1 function, change ID to latest ID, change the item name to be the exact of where I put "speciesA". Then inside of class/class_privateitem.php;
PHP Code:
case "Species A":
            
$message items_speciesA($this$owned_adoptable);
            break; 
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-03-2016 at 12:00 PM.
Reply With Quote