Jump to content
MakeWebGames

Recommended Posts

Posted

Well amongst fixing everything that is annoying with mccodes v2 I come to my next issue.

Has any one tried or now how to resolve the issue.

A member uses an item made and if say that items effect is already at 100% or say its an hospital item and you use it but not even in hospital.

Is there an effective way that will take all items into account (v2 system) to ensure that if a value is at 100% etc that the item comes up with x item is already at 100% etc.

I would post the code but I dont know if I will get spanked for using the whole of mccodes v2 source code and posting here for review.

 

Any insight would be cool.

Regards

Chaos

Posted

For hospital items you could make it so that the use link only appears when they are in the hospital. This would be in the inventory code.

Make all your items for hospital a itmtype then reference the itmtype in the inventory code.

 

if($i['itmtype'] == 999 && $ir['hospital'] > 0) { echo '[url="itemuse.php?ID='.$i['inv_id'].'"]Use[/url]';}

 

Something like that should work for when the player ends up in hospital. Note if you have medical effects on weapons it will have to be unequipped before you see the link unless you code that differently :D

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