|
||||||
Views:
11,030,477 |
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search | 11-21-24 11:57 AM |
||||
Guest: Register | Login |
0 users currently in AcmlmBoard Developer Zone | 5 bots |
Main - AcmlmBoard Developer Zone - How userstats are calculated. |
XerX |
| ||
Normal User
Level: 19 Posts: 54/69 EXP: 35213 Next: 564 Since: 07-22-14 Last post: 3509 days Last view: 3094 days |
This has been baffling me for quite some time now. I cannot, for the life of me, figure out how status.php calculates the stat changes with the equipment.
As some of you may know, I'm coding up a battle system for this forum software. I would really like to utilize the shops and the equipment, but without the additional stats that the equipment gives, the battle system seems off. I've read through rpg.php, status.php, and profile.php many times now, and I cannot figure it out sadly. getstats($user,$items); doesn't seem to get the item's stats, but only their id's. I've even tried fetching the data from the tables themselves, but I have come out unsuccessful. Anyone out there know how the hell this works? |
Epele |
| ||
Site Administrator
The Sorceress. Boing~ Level: 237 Posts: 13523/20774 EXP: 205437244 Next: 2541690 Since: 01-01-12 From: UK Last post: 1051 days Last view: 11 hours |
The stats are calculated as part of the getstats() process. Here's something you can use to play about with to try to get whatever you're after:
The world could always use more heroes! |
XerX |
| ||
Normal User
Level: 19 Posts: 55/69 EXP: 35213 Next: 564 Since: 07-22-14 Last post: 3509 days Last view: 3094 days |
I had something similar written out. I don't understand why it didn't work ahahaha. Thank you for the help, @"CherryBunny". It has worked. I can now continue working on this without the stress of the stats not working. |
Main - AcmlmBoard Developer Zone - How userstats are calculated. |
Acmlmboard v2.5.6 (06/11/2024) © 2005-2024 Acmlm, Emuz, et al. |
MySQL - queries: 70, rows: 495/529, time: 4.798 seconds. |