crazyarashi Posted December 7, 2020 Share Posted December 7, 2020 View File 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; } Submitter crazyarashi Submitted 12/07/2020 Category Utilities Video Content Author crazyarashi 1 1 Quote Link to comment Share on other sites More sharing options...
Gidz Cross Posted December 8, 2020 Share Posted December 8, 2020 Wow! thank you so much! Quote Link to comment Share on other sites More sharing options...
Gorder Posted December 13, 2020 Share Posted December 13, 2020 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 Quote Link to comment Share on other sites More sharing options...
lzm Posted December 22, 2020 Share Posted December 22, 2020 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) Quote Link to comment Share on other sites More sharing options...
Akbare Posted February 20, 2021 Share Posted February 20, 2021 im get error sir Quote Link to comment Share on other sites More sharing options...
botka4aet Posted February 20, 2021 Share Posted February 20, 2021 Update your rathena - https://github.com/rathena/rathena/pull/4195 Quote Link to comment Share on other sites More sharing options...
lzm Posted May 16, 2021 Share Posted May 16, 2021 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). Quote Link to comment Share on other sites More sharing options...
MyNoobScriptz Posted June 28, 2021 Share Posted June 28, 2021 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 Quote Link to comment Share on other sites More sharing options...