Jedzkie 58 Posted May 25, 2014 hi! can i request a script that if a player got items (that is restricted in my server) from his/her inventory, it will be auto deleted. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted May 25, 2014 Maybe this can be of your interest: conf/battle/items.conf // Item check? (Note 1)// On map change it will check for items not tagged as "available" and// auto-delete them from inventory/cart.// NOTE: An item is not available if it was not loaded from the item_db or you// specify it as unavailable in db/item_avail.txtitem_check: no And this other file: /db/item_avail.txt Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted May 25, 2014 how about if he/she received the item and deletes it immediately? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 25, 2014 int pc_additem(struct map_session_data *sd,struct item *item_data,int amount,e_log_pick_type log_type){ struct item_data *data; int i; unsigned int w; nullpo_retr(1, sd); nullpo_retr(1, item_data); if( item_data->nameid <= 0 || amount <= 0 ) return 1; if( amount > MAX_AMOUNT ) return 5;+ + if ( !pc_get_group_level(sd) &&+ ( item_data->nameid == 512 || item_data->nameid == 7227 )+ ){+ return 1;+ } data = itemdb->search(item_data->nameid); if( data->stack.inventory && amount > data->stack.amount ) {// item stack limitation return 7; } It would not add the item to inventory.. Quote Share this post Link to post Share on other sites
hi! can i request a script that if a player got items (that is restricted in my server) from his/her inventory, it will be auto deleted.
Share this post
Link to post
Share on other sites