items.php
- KyleMassacre
- Posts: 573
- Joined: Wed Nov 27, 2013 12:42 pm
items.php
Just a bug fix I noticed. In items.php you need to change the GetObjectInfo method on the last SQL query from where object_types_attributes.id = ? to where object_types_attributes.object_type = ?
- KyleMassacre
- Posts: 573
- Joined: Wed Nov 27, 2013 12:42 pm
Re: items.php
I would just like to add why. I guess I forgot to mention what it does/doesn't do for you.
If you keep it stock and you just run the SQL as is and just replace the ? with an actual value, say for example a weapon it should return the attribute for Damage. Buuuuuut, if you change it to the way I described it would bring up attributes for Damage, Dexterity, and Energy Cost.
Obviously this is just a little bug in the source code but a bug that ultimately limits what you can do with objects in the game since you can't use custom attribute types for objects
If you keep it stock and you just run the SQL as is and just replace the ? with an actual value, say for example a weapon it should return the attribute for Damage. Buuuuuut, if you change it to the way I described it would bring up attributes for Damage, Dexterity, and Energy Cost.
Obviously this is just a little bug in the source code but a bug that ultimately limits what you can do with objects in the game since you can't use custom attribute types for objects
- a_bertrand
- Posts: 1537
- Joined: Mon Feb 25, 2013 1:46 pm
- KyleMassacre
- Posts: 573
- Joined: Wed Nov 27, 2013 12:42 pm
Re: items.php
Thank you haha. I am building something and for the longest time I couldn't figure out why it wouldn't work.a_bertrand wrote:Nice finding Kyle!
- hallsofvallhalla
- Site Admin
- Posts: 12031
- Joined: Wed Apr 22, 2009 11:29 pm
Re: items.php
There is some great news coming for NWE this week....
- KyleMassacre
- Posts: 573
- Joined: Wed Nov 27, 2013 12:42 pm
Re: items.php
Yes and No. I am currently not 3rd party supporting it. But that doesn't mean I am not working on it for myselfcbsarge wrote:Are you working on NWE again Kyle?