newttster Posted March 10, 2011 Posted March 10, 2011 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. Quote
Maniak Posted March 10, 2011 Posted March 10, 2011 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. Quote
lucky3809 Posted March 10, 2011 Posted March 10, 2011 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. Quote
newttster Posted March 11, 2011 Author Posted March 11, 2011 Thanks for your responses. It has helped. Quote
rulerofzu Posted March 11, 2011 Posted March 11, 2011 Easier to do this by itemtype. Array the ID's of the item types and then you can use in_array to determine what links they have. Quote
SilvaTungDevil Posted March 11, 2011 Posted March 11, 2011 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; } Quote
Maniak Posted March 11, 2011 Posted March 11, 2011 @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.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.