![]() |
Item & Health Integration
http://buildingbrowsergames.com/tutorials/
On the above site is a tutorial for how to use PHP and SQL to make a browser game (including health and items that heal you). Would anybody know how to integrate this with the adoptables script? |
RE: Item & Health Integration
I just finished a mod yesterday for usable items. It includes items for leveling, healing, resurrection, changing a reg pet to it's alt version & "breeding". Doing it required the addition of 2 new tables & adding fields to existing tables. There were 3 new pages created, many pages altered and major additions to the admin panel. It is currently running on the test server. Taking it live will require not only making all the above changes to the current database and uploading all the new or changed pages, but also then making changes to ALL the existing pets in the database.
Since usable items are designed very specific to the needs of the site and every item must be coded separately to work as it is supposed to work. I do not foresee a "general" mod being created because for it to be general enough for all sites to use everyone would want it modified in some way. Plus the changes needed in the database to the current pets would require a system simular to the one Brandon created for upgrading to the newest script as most of the people here would find making the changes manually well beyond their abilities. I can only recommend a lot of reading and learning or making good friends with a programmer to do it for you, because hiring someone to design the system for your site would be expensive with all the time involved. Sea |
RE: Item & Health Integration
Oh, alright then. Could you give me some hints to just getting started on a basic health system, because I haven't upgraded my site anyway and I was planning on making a new site, so I can start from the beginning...
|
RE: Item & Health Integration
Add a health field to your owned_adoptables table.. make it not null & give it a start point.. Mystic Grove start is 20
on another page for items this was added Code:
/* **************** Code:
Sea |
RE: Item & Health Integration
And I add an items table as well? You are amazing, Thanks so much XD
EDIT: What fields do I put in the items table and what settings do they have? |
RE: Item & Health Integration
It is not just that easy, you also have to edit the my doadopt.php page to account for the health field. You will need some way for your users to make coin if you want them to actually pay for the items. The fields in the items table will depend on how you want the items to work. You will need to edit your admin.php so that you can add items in. All I did was give you a starting point.
Sea |
RE: Item & Health Integration
I'm working on the shop mod for myself seeing as yours is donator only. I'm trying to convert Kisazeky's script. Thank you for the starting point, I really appreciate it. XD
|
RE: Item & Health Integration
Careful Ashje, other scripts, especially those not done by professionals, may look like they incorporate nicely, but just pile up errors, and problems, that you will receive later on down the road.
Just a heads up mate. |
RE: Item & Health Integration
Thanks for the heads up XD
|
RE: Item & Health Integration
Quote:
Sea |
All times are GMT -5. The time now is 11:15 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.