Jump to content

Recommended Posts

Posted

Equipment Recycle NPC


A recycle NPC that uses the shop interface.

Changing the rewards

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


Adding a recyclable equipment.

/*
*=============================================================================|
* .@r = Refine | .@b = Bonus                                                 =|
* list_add("<Equip ID>,<Value>{,<Starting .@r for .@b>,.@b1:.@b2:.@b3:..."); =|
*=============================================================================|	
* Cotton_Shirt w/ +8 Starting .@r bonus                                      =|
* .@r = 8 : 1 Bonus Item/Point                                               =|
* .@r = 9 : 5 Bonus Item/Point                                               =|
* .@r >= 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
  • 2 weeks later...
Posted

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)

 

  • 1 month later...
  • 2 months later...
Posted

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

 

  • 1 month later...
Posted
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

  • 2 years later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...