Jump to content

Im Puzzled - Should Be Easy


Cainj

Recommended Posts

ok real fast - i been on this for 6 weeks non stop,

 

weaponid = 1

gold = 976

itemcost = 200

this line is just to check for someone using url to get what they want.

 

if( ((int)$player->weaponId > 1) || ((int)$player->gold < (int)$item->cost) )
then cheater

 

this line is true! How?

weaponid = 1 so the first part should fail, and gold is more than enough to cover the cost. so why does this ring true?

 

btw all vars are set ahead of time, this is jus to check that users are not tying to

Link to comment
Share on other sites

figured it out

changed it to item id, as this line actaully covers both weapons and armor in one shot, i was testing buying armor, but it was hardcoded as weapons duh)

 

 

if( ($itemId > 1).......

funny how you get things figured out when you ask and see it from a different perspective - delete this post mod..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.