Jump to content
MakeWebGames

Recommended Posts

Posted

When you look at the inventory ... it has links to sell, send, add to market ... whatever. How would you go about removing the "send" option on certain items. For arguements sake ... let's say that I want to remove that option on five items not all the inventory. Can this be done ... if so ... how ... I have been trying to work this out on my own and so far have failed miserably. Shush ... I know ... no surprise there, right? :P

My other question is when you are adding items through the staff panel you can choose to add effects to items. You can have it increase or decrease by either percentage or value. Percentage I get ... the value option I don't. Does that mean that if you choose a value of 10 it would increase say health by 10 as opposed to 10%.

If you choose the decrease option ... does that mean then that it would decrease the health of the other player or you? The decrease effect has me confused. ?(

Any help in understanding this would be appreciated. Thanks all.

Posted

1) if($i['itmid'] != idHere || $i['itmid'] != idHere || $i['itmid'] != idHere || $i['itmid'] != idHere || $i['itmid'] != idHere) { link here }

2) I have never really looked into MCcodes Item increase/decrease so I cannot help you much there, sorr.

Posted

Yes you can remove the send and other links however if you are not allowing your users to send items then you would need to remove the send php or else they can insert the item id and page name in url and send items and whatever.... if you do not want to remove the page then type in an if statement for only staff or users you wish to use the send page and option.

As for the effect Value is as you stated 10 would increase or decrease a players health, percent is 10% of the effect.

Posted

Another way to do it, even if it doesn't solve your initial problem is open up itemsend.php and insert something like:

 

if($r['itemid'] == ITEMID){
echo ' This item can\'t be sent. Click [url="inventory.php"]here[/url] to go back';
$h->endpage();
exitl;
}
Posted

@Zu: It probably would be easier to do it by Item Type if all of the items that aren't send-able all have the same Item Type; otherwise you'd have to do it by the Item ID..

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