Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#11
|
||||
|
||||
Good news is, I partly found the answer to my question. For whatever reason, it can't pull from "currentlevel". Changing it to "AdoptLevel", "Level", and "CurrentLevel" allows the page to load, but doesn't allow me to battle, nor does it show my "favpet", insisting that my pet isn't level 1 or higher.
Looking at the error log after each save, seems like it keeps bumping on how to call the level of the pet. x.x So, now what? Last edited by NobodysHero; 09-13-2016 at 11:37 AM. |
#12
|
||||
|
||||
I can't get this to work either. I can get to the page just fine, but it keeps insisting that my favpet isn't level 3.
|
#13
|
||||
|
||||
Quote:
I responded via PM but I'll paste this here for other's sakes: Try going into class_ownedadoptable.php and changing the line here: PHP Code:
PHP Code:
Everyone having the issue please make sure this has been done and then, once done, get back to me on it.
__________________
My Mods Site (1.3.4, 2020 Mods) |
#14
|
||||
|
||||
THANK YOU! <3 Okay, so it didn't like that both the "currentlevel" and "name" were protected, instead of public. Changing that made it work for me!
|
#15
|
||||
|
||||
Now that I have this working, I'd like to add some graphics and such to make it more fun to look at and give their opponent a "face". So, my question here is, how would I go about perhaps using random images above the "random opponent side? I know how to post the image of the pet, but a random image code would be awesome. 8D Would be neat to also use this to make it seem like the "battleground" as changed. Just a thought!
|
#16
|
||||
|
||||
Oh yeah, that is totally doable! I actually originally had it set up that way but was having issues with aligning it in a way that looked really good...but the random opponent image isn't too difficult. You just need the images...so, where you add opponent stats add in this:
PHP Code:
PHP Code:
PHP Code:
Now I will note that I just wrote this without testing it at all, so I don't guarantee it'll work as is, but it should give you the general idea!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#17
|
||||
|
||||
Hey all! I updated the main post so that it now includes the training section! My method of training is very lazy at the moment, just spend some money, click a button, raise the stats.
I hope you all enjoy it <3
__________________
My Mods Site (1.3.4, 2020 Mods) |
#18
|
||||
|
||||
Finally updated!
Now includes a Trophies section, and a little extras section :)
__________________
My Mods Site (1.3.4, 2020 Mods) |
#19
|
||||
|
||||
couple questions- I tried adding in the OP image coding but it keeps giving me errors... WHERE exactly do I put those? CAn you explain a little better please?
Also the trophies- where exactly and on which file do I put the calling code? As well as How would I get my fave pets image for battling as well? {$Favepet} does not seem to work lol (And how would I flip the images so they're actually facing each other?) EDIT: one more question- how would I make it so that they actually recieve items for winning? whether random or not so random lol... (Apologies as I am a super noob at this) Last edited by Ittermat; 12-09-2016 at 10:43 PM. |
#20
|
||||
|
||||
1. In the battleview.php file find this:
PHP Code:
PHP Code:
2. You put the calling code wherever you want to display the trophies. So if you want to display it for the owner of a pet when they go to manage it, you can go to myadoptsview.php and add it within the manage function. This works best if you already have "profiles" set up. But for a quick example, here is the manage function with it added in: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
|
|
What's New? |
What's Hot? |
What's Popular? |