dizonivan11 Posted June 10, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 7 Reputation: 5 Joined: 05/05/20 Last Seen: 12 hours ago Share Posted June 10, 2020 View File ROM Safe Refiner Just sharing my own safe refiner NPC that mimics the Safe Refinement System of ROM:EL. As the item increases its refinement level, the materials required will grow exponentially as it requires the copy of the item you are refining based on its next refinement level. The NPC can only refine the item if its next refinement process is not safe anymore for Hollgrehenn. Configurations: .@npc_name$ = Name of your NPC .@price = The required zeny for refining. Submitter dizonivan11 Submitted 06/09/2020 Category Utilities Video Content Author dizonivan11 1 Quote Link to comment Share on other sites More sharing options...
sader1992 Posted June 10, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.02 Content Count: 1676 Reputation: 703 Joined: 12/21/14 Last Seen: 2 hours ago Share Posted June 10, 2020 line 97 for (.@i = 0; .@i < @inventorylist_count; ++.@i) { if (@inventorylist_id[.@i] == .@refineitemid && !@inventorylist_equip[.@i] && @inventorylist_card1[.@i] == 0 && @inventorylist_refine[.@i] == 0) { delitem @inventorylist_id[.@i], 1; } } this could delete more that what it need to refine an item , you see it will delete all the items , for example , you need 5 to refine and you have 10 , the 10 will be deleted also like 4 (.@safe = 10;)is not used in the script 1 Quote Link to comment Share on other sites More sharing options...
dizonivan11 Posted June 16, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 7 Reputation: 5 Joined: 05/05/20 Last Seen: 12 hours ago Author Share Posted June 16, 2020 On 6/11/2020 at 6:44 AM, sader1992 said: line 97 for (.@i = 0; .@i < @inventorylist_count; ++.@i) { if (@inventorylist_id[.@i] == .@refineitemid && !@inventorylist_equip[.@i] && @inventorylist_card1[.@i] == 0 && @inventorylist_refine[.@i] == 0) { delitem @inventorylist_id[.@i], 1; } } this could delete more that what it need to refine an item , you see it will delete all the items , for example , you need 5 to refine and you have 10 , the 10 will be deleted also like 4 (.@safe = 10;)is not used in the script That was some major flaw on my end, its now fixed, Thank you so much for this! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.