Jump to content

equip item.


Recommended Posts

Hey so this came to my attention upon reworking items in GRPG so thought I might share.

equip.php (as you know equips an item as weapon or armor or other?)

It isn't checking if the item been equipped is a weapon or armor or other.

A good fix is to rework the items (database structure) add in type.

and then for weapons type 1, armor 2, other 3, and awake pill to type 99 (or some other number you wont use.);

Now add in a check to see if the item been equpied is actually a weapon/armor/other.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...