Jump to content
  • 0
Jedzkie

Auto Delete Item

Question

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

3 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0
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..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.