Jump to content
crazyarashi

Utility: Equipment Recycle NPC

Recommended Posts

Equipment Recycle NPC


A recycle NPC that uses the shop interface.

Changing the rewards

.reward_id = 501;
.reward_point$ = "#KAFRAPOINT";


Adding a recyclable equipment.

/*
*=============================================================================|
* [email protected] = Refine | [email protected] = Bonus                                                 =|
* list_add("<Equip ID>,<Value>{,<Starting [email protected]r for [email protected]b>,[email protected]:[email protected]:[email protected]:..."); =|
*=============================================================================|	
* Cotton_Shirt w/ +8 Starting [email protected] bonus                                      =|
* [email protected] = 8 : 1 Bonus Item/Point                                               =|
* [email protected] = 9 : 5 Bonus Item/Point                                               =|
* [email protected] >= 10 : 7 Bonus Item/Point.                                            =|
*=============================================================================|
* list_add(2301,8,"1:5:7");                                                  =|
==============================================================================|
*/
function	list_create	{
	//= Remove samples and add here.
	
	list_add(2301,10,8,"1:5:7"); //Cotton_Shirt
	list_add(1201,10,7,"1:2:3:4:5"); //Knife
	list_add(2504,5); //Muffler_
	
	return;
}

 


 

  • Upvote 1
  • Love 1
Link to comment
Share on other sites

The script working great, getting this message when sell more than one same item to NPC
 

[Error]: buildin_uniqueid_delitem: Item not found (unique_id=644356763549787).
[Debug]: Source (NPC): equipment_recycle at prontera (206,185)

 

Link to comment
Share on other sites

Hi, I think the script need an update, the PR #4195 got some update earlier and now gives error
 

[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='@sold_uniqueid' index=0
[Debug]: Function: uniqueid_delitem
[Debug]: Source (NPC): Recycler at prontera (163,188)
[Error]: buildin_uniqueid_delitem: unknown item (unique_id=0).

 

Link to comment
Share on other sites

On 5/16/2021 at 5:39 PM, lzm said:

Hi, I think the script need an update, the PR #4195 got some update earlier and now gives error
 

[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='@sold_uniqueid' index=0
[Debug]: Function: uniqueid_delitem
[Debug]: Source (NPC): Recycler at prontera (163,188)
[Error]: buildin_uniqueid_delitem: unknown item (unique_id=0).

 

i got same error like you, item not deleted

Link to comment
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
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...

Important Information

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