Jump to content
Sign in to follow this  
dizonivan11

Utility: ROM Safe Refiner

Recommended Posts

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:

[email protected]_name$ = Name of your NPC

[email protected] = The required zeny for refining.


 

  • Upvote 1

Share this post


Link to post
Share on other sites

line 97

for ([email protected] = 0; [email protected] < @inventorylist_count; [email protected]) {
		if (@inventorylist_id[[email protected]] == [email protected] && [email protected]_equip[[email protected]] && @inventorylist_card1[[email protected]] == 0 && @inventorylist_refine[[email protected]] == 0) {
			delitem @inventorylist_id[[email protected]], 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 ([email protected] = 10;)is not used in the script

  • Love 1

Share this post


Link to post
Share on other sites
On 6/11/2020 at 6:44 AM, sader1992 said:

line 97

for ([email protected] = 0; [email protected] < @inventorylist_count; [email protected]) {
		if (@inventorylist_id[[email protected]] == [email protected] && [email protected]_equip[[email protected]] && @inventorylist_card1[[email protected]] == 0 && @inventorylist_refine[[email protected]] == 0) {
			delitem @inventorylist_id[[email protected]], 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 ([email protected] = 10;)is not used in the script

That was some major flaw on my end, its now fixed, Thank you so much for this!

Share this post


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

Sign in to follow this  

×
×
  • Create New...

Important Information

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