Jump to content

Utility: Equipment Recycle NPC


crazyarashi

Recommended Posts


  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

Wow! thank you so much!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  01/11/18
  • Last Seen:  

Hi crazyarashi,

I tried the script but the function uniqueid_delitem is missing. Where do i find it?

Sorry I didn't see the link earlier. Found the download link: https://github.com/rathena/rathena/pull/4195/files

 

 

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/12/17
  • Last Seen:  

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

  • 1 month later...

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

im get error sir

 

 

error.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  211
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/12/17
  • Last Seen:  

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

  • 1 month later...

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

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

  • 2 years later...

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

Same. it does not delete the item.

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