![]() |
#1
|
||||
|
||||
![]()
Hello everyone!
Figured I'd post this little mod here today that I recently completed. Preview: ![]() Again as with my other mod (Species Rarity w/ Images!), you'll want a public pet profile mod in place. See this post: Clicky This mod can work elsewhere, like the creature's manage page and such. You'll just need to make your own edits for that! Alrighty, so we'll be modifying a few files as well as adding new item functions in the database. First go to your class_privateitem.php file in your classes folder. Go to around line 50 where you see a list of item functions, and under them add this: PHP Code:
After that go to your database table adopts_owned_adoptables. We'll be adding two new columns called "companion" and "item". VARCHAR 60, latin1_swedish_ci. For default, put "noitem" for the item column, and "nocompanion" for the companion column. Press Go to save. You're done in the database now. Now go to your functions folder, and to the functions_items.php file. Add this code to the file, preferably at the bottom, to get your new companion and held item functions added. PHP Code:
Now in your picuploads folder, you'll need to create a new folder called "items" (for the sake of organization). In this folder you will need to upload the companion and held item images each time you create them. So if you create an item called Rubber Ball, go to this folder and upload the image as "Rubber Ball.png". It MUST have the same exact name as the existing item, along with .png as the extension. ALMOST finished! Go to your classes folder again, and in class_ownedadoptable.php at the bottom, add this code: PHP Code:
PHP Code:
Finally, wherever you want to display the item and companions for your pets, go there and add this bit of code: PHP Code:
EDIT2: If you want two item functions that completely remove companions and held items from pets and put them back into the player's inventory, see this post: Removal Functions Phew, all done! Hope you guys enjoy! Last edited by tahbikat; 04-14-2016 at 05:23 PM. |
|
|
What's New? |
What's Hot? |
What's Popular? |