Auto Delete Item

Jedzkie

The Master of White Spaces
Messages
632
Points
0
Age
33
Location
Philippines
Discord
✪ Jedzkie#0662
IRC Nickname
Jedzkie
Github
Jedzkie
Emulator
Client Version
2016-03-16 RE
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.

 
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

 
how about if he/she received the item and deletes it immediately?

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

 
Last edited by a moderator:
Back
Top