Jump to content
Emistry

Utility: Usable Refinery Ores

Recommended Posts

Usable Refinery Ores


Description

Players are able to click on the Ores items to refine the selected equipment. They can refine their Equipment at anywhere anytime they want.

Based on requirement of Weapon Level and Type, different ores might be needed as well as Zeny.

Preview


 

  • Upvote 1
  • Love 1
Link to comment
Share on other sites

Really nice script.

 

Just to report a bug, is that when I click twice on some ore my zeny is consumed, even if I don't have anything selected do refine.

Link to comment
Share on other sites

Okay thank you gave

 

suggestion :

 

add to the system

 

eluniumenriquecido.gif Elunium Enriquecido (id: 7619)

orideconenriquecido.gif Oridecon Enriquecido (id: 7620)

Edited by LutherKing
Link to comment
Share on other sites

BUG: this accessory refining

Emulador eAmod

 

function	script	F_RefineSystem	{
	set [email protected]_itemid , getarg( 0,0 );
	set [email protected] , getarg( 1,0 );
	set [email protected]_refine , getarg( 2,0 );
	set [email protected]_refine , getarg( 3,( MAX_REFINE-1 ) );
	set [email protected] , getarg( 4,0 );
	
	if ( [email protected]_itemid && [email protected] < 5 ) {
		for ( set [email protected] , EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; set [email protected],[email protected] + 1 ) {
			set [email protected] , 0;
			
			set [email protected] , getequipid( [email protected] );
			if ( [email protected] == -1 ) 
				set [email protected],[email protected] + 1;
				
			set [email protected] , getequiprefinerycnt( [email protected] );
			set [email protected] , getitemslots( [email protected] );
			set [email protected]_type , getiteminfo( [email protected],2 );
			
			if ( [email protected]_type == IT_ARMOR && [email protected] > 0 ) 
				set [email protected],[email protected] + 1;
			if ( [email protected]_type == IT_WEAPON && ( [email protected] == 0 || getequipweaponlv( [email protected] ) < [email protected] ) )
				set [email protected],[email protected] + 1;
				
			if ( [email protected] )
				if ( [email protected] >= [email protected]_refine && [email protected] <= [email protected]_refine )
					set [email protected]$ , [email protected]$ + ( [email protected] ? "+"[email protected]+" ":"" ) + getitemname( [email protected] )+" ["[email protected]+"]";
			set [email protected]$ , [email protected]$ + ":";
		}
		set [email protected] , select( [email protected]$ );
		if ( Zeny >= [email protected] ) {
			set Zeny , [email protected];
			delitem [email protected]_itemid,1;
			if ( rand( 100 ) < getequippercentrefinery( [email protected] ) ) {
				successrefitem [email protected];
				specialeffect2 EF_REFINEOK;
			}
			else {
				failedrefitem [email protected];
				specialeffect2 EF_REFINEFAIL;
			}
		}
		close;
	}
	
	return;
}function	script	F_RefineSystem	{
	set [email protected]_itemid , getarg( 0,0 );
	set [email protected] , getarg( 1,0 );
	set [email protected]_refine , getarg( 2,0 );
	set [email protected]_refine , getarg( 3,( MAX_REFINE-1 ) );
	set [email protected] , getarg( 4,0 );
	
	if ( [email protected]_itemid && [email protected] < 5 ) {
		for ( set [email protected] , EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; set [email protected],[email protected] + 1 ) {
			set [email protected] , 0;
			
			set [email protected] , getequipid( [email protected] );
			if ( [email protected] == -1 ) 
				set [email protected],[email protected] + 1;
				
			set [email protected] , getequiprefinerycnt( [email protected] );
			set [email protected] , getitemslots( [email protected] );
			set [email protected]_type , getiteminfo( [email protected],2 );
			
			if ( [email protected]_type == IT_ARMOR && [email protected] > 0 ) 
				set [email protected],[email protected] + 1;
			if ( [email protected]_type == IT_WEAPON && ( [email protected] == 0 || getequipweaponlv( [email protected] ) < [email protected] ) )
				set [email protected],[email protected] + 1;
				
			if ( [email protected] )
				if ( [email protected] >= [email protected]_refine && [email protected] <= [email protected]_refine )
					set [email protected]$ , [email protected]$ + ( [email protected] ? "+"[email protected]+" ":"" ) + getitemname( [email protected] )+" ["[email protected]+"]";
			set [email protected]$ , [email protected]$ + ":";
		}
		set [email protected] , select( [email protected]$ );
		if ( Zeny >= [email protected] ) {
			set Zeny , [email protected];
			delitem [email protected]_itemid,1;
			if ( rand( 100 ) < getequippercentrefinery( [email protected] ) ) {
				successrefitem [email protected];
				specialeffect2 EF_REFINEOK;
			}
			else {
				failedrefitem [email protected];
				specialeffect2 EF_REFINEFAIL;
			}
		}
		close;
	}
	
	return;
}
Link to comment
Share on other sites

Correct me if im wrong, this part

// Usage: (ItemType, must set to 11)
// callfunc( "F_RefineSystem",1010,1,0,10,1000 ); // Phracon
// callfunc( "F_RefineSystem",1011,2,0,10,2500 ); // Emveretarcon
// callfunc( "F_RefineSystem",984,3,0,10,20000 ); // Oridecon
// callfunc( "F_RefineSystem",985,0,0,10,20000 ); // Elunium

should go in the same npc.txt ??

 i got the usable ores but when i use it if i keep that part uncommented in the npc.txt my ores dont pop up no window

and when i remove those lines i get just a blank window with no options to refine it

Link to comment
Share on other sites

@LutherKing

you can add that by yourself... i am just providing samples.

 

@negroroland1986

[Guide] Convert Script to eAthena compatible version.

 

@LutherKing

replace the EQI_ACC_R with appropriate equipment list .

for ( set [email protected] , EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; set [email protected],[email protected] + 1 ) {
@alternate

you probably didnt have any equipment that meet the condition for refine.

Link to comment
Share on other sites

 post-40087-0-90172000-1467533253_thumb.jpg

item_db

984,Oridecon,Oridecon,11,1100,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",984,3,0,10,20000 ); },{},{}
985,Elunium,Elunium,11,1100,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",985,0,0,10,20000 ); },{},{}
~~
~~
1010,Phracon,Phracon,11,200,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",1010,1,0,10,1000 ); },{},{}
1011,Emveretarcon,Emveretarcon,11,1000,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",1011,2,0,10,2500 ); },{},{}

i attached the npc txt also, can you please tell me if i did anything wrong?

F_RefineSystem.txt

Link to comment
Share on other sites

 attachicon.gifscreenGroundRO000.jpg

item_db

984,Oridecon,Oridecon,11,1100,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",984,3,0,10,20000 ); },{},{}
985,Elunium,Elunium,11,1100,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",985,0,0,10,20000 ); },{},{}
~~
~~
1010,Phracon,Phracon,11,200,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",1010,1,0,10,1000 ); },{},{}
1011,Emveretarcon,Emveretarcon,11,1000,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc( "F_RefineSystem",1011,2,0,10,2500 ); },{},{}

i attached the npc txt also, can you please tell me if i did anything wrong?

Hmm.. I also get this.. Already added item_db, reload script.. But when we click the ores, just popup empty and nothing happens.. 

Link to comment
Share on other sites

On 17/01/2016 at 9:04 PM, Emistry said:

File Name: Usable Refinery Ores

File Submitter: Emistry

File Submitted: 18 Jan 2016

File Category: Utilities

Content Author: Emistry

 

 

 

Description
Players are able to click on the Ores items to refine the selected equipment. They can refine their Equipment at anywhere anytime they want.

Based on requirement of Weapon Level and Type, different ores might be needed as well as Zeny.

Preview

 

 

 

 

 

Click here to download this file

 

 

Hmm.. I also get this.. Already added item_db, reload script.. But when we click the ores, just popup empty and nothing happens.. 

Link to comment
Share on other sites

Sorry for the up, but I need support regarding this file.
I think because of the emulator updates, the system no longer works.
I opened this topic in the BR session: https://rathena.org/board/topic/109848-minérios-usáveis/#comment-319103
Could someone help me to adapt? I would love to use it on my server.

 

Caso o suporte seja brasileiro, ou fale português, pode falar na língua natural.
Acredito que vou ter mais facilidade de efetuar as tarefas necessárias se compreende-las hauahua.

Link to comment
Share on other sites

18 hours ago, Emistry said:

new version updated for rA, should be work fine now.

Continues with the same problem :(
The item does not appear.

Link to comment
Share on other sites

[Error]: buildin_failedrefitem: No item equipped at pos 5 (CID=150006/AID=2000030).
[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map)
[Warning]: Incorrect use of 'close' command! (source:FAKE_NPC / path:(null))

Something is wrong.
I put on refining the boots, but he refines the accessory.
This error happens in various equipment, it always refines in the wrong position.


When the refinement fails, it only shows the fault animation, but the equipment remains equipped in the character.
Did I do something wrong?

Link to comment
Share on other sites

On 3/5/2017 at 0:22 PM, Ozawaowa said:

Continues with the same problem :(
The item does not appear.

same problem :D

Link to comment
Share on other sites

23 hours ago, Ozawaowa said:
[Error]: buildin_failedrefitem: No item equipped at pos 5 (CID=150006/AID=2000030).
[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map)
[Warning]: Incorrect use of 'close' command! (source:FAKE_NPC / path:(null))

Something is wrong.
I put on refining the boots, but he refines the accessory.
This error happens in various equipment, it always refines in the wrong position.


When the refinement fails, it only shows the fault animation, but the equipment remains equipped in the character.
Did I do something wrong?

 

3 hours ago, Quazy said:

same problem :D

done

Link to comment
Share on other sites

17 hours ago, Emistry said:

 

done

no click to download.. waiting for approval! thanks emistry~!

Link to comment
Share on other sites

On 5/1/2017 at 6:42 PM, MilkInTheBottle said:

Weapon Level doesn't work, and u can change the Dagger after u use 1 Item and refine the other

 

 

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

Important Information

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