items.php

General Chat, Comments
Post Reply
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

items.php

Post by KyleMassacre »

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 = ?
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: items.php

Post by KyleMassacre »

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
User avatar
a_bertrand
Posts: 1537
Joined: Mon Feb 25, 2013 1:46 pm

Re: items.php

Post by a_bertrand »

Nice finding Kyle!
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: items.php

Post by KyleMassacre »

a_bertrand wrote:Nice finding Kyle!
Thank you haha. I am building something and for the longest time I couldn't figure out why it wouldn't work.
User avatar
cbsarge
Posts: 195
Joined: Mon Sep 14, 2015 3:20 pm

Re: items.php

Post by cbsarge »

Are you working on NWE again Kyle?
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: items.php

Post by hallsofvallhalla »

There is some great news coming for NWE this week....
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: items.php

Post by KyleMassacre »

cbsarge wrote:Are you working on NWE again Kyle?
Yes and No. I am currently not 3rd party supporting it. But that doesn't mean I am not working on it for myself ;)
Post Reply

Return to “General”