Jump to content
  • 0
Ozawaowa

Minérios Usáveis

Question

Tópico: https://rathena.org/board/files/file/3426-usable-refinery-ores/

 

Apliquei o item_db como solicitado:

// Refinamento
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 ); },{},{}

 

O npc está rodando sem erros:

function	script	F_RefineSystem	{
	[email protected]_itemid = getarg( 0,0 );
	[email protected] = getarg( 1,0 );
	[email protected]_refine = getarg( 2,0 );
	[email protected]_refine = getarg( 3,( MAX_REFINE-1 ) );
	[email protected] = getarg( 4,0 );
	
	if ( [email protected]_itemid && [email protected] < 5 ) {
		for ( [email protected] = EQI_HEAD_TOP; [email protected] <= EQI_ACC_R; [email protected]++ ) {
			[email protected] = 0;
			
			[email protected] = getequipid( [email protected] );
			if ( [email protected] == -1 ) 
				[email protected]++;
				
			[email protected] = getequiprefinerycnt( [email protected] );
			[email protected] = getitemslots( [email protected] );
			[email protected]_type = getiteminfo( [email protected],2 );
			
			if ( [email protected]_type == IT_ARMOR && [email protected] > 0 ) 
				[email protected]++;
			if ( [email protected]_type == IT_WEAPON && ( [email protected] == 0 || getequipweaponlv( [email protected] ) < [email protected] ) )
				[email protected]++;
				
			if ( [email protected] )
				if ( [email protected] >= [email protected]_refine && [email protected] <= [email protected]_refine )
					[email protected]$ = [email protected]$ + ( [email protected] ? "+"[email protected]+" ":"" ) + getitemname( [email protected] )+" ["[email protected]+"]";
			[email protected]$ = [email protected]$ + ":";
		}
		[email protected] = select( [email protected]$ );
		if ( Zeny >= [email protected] ) {
			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;
}

 

Mas quando vou testar no jogo, simplesmente aparece um balão sem nenhuma informação:

Como resolver esse problema?

 

~

Caso alguém se disponha, estou com problema aqui também: https://rathena.org/board/topic/109815-função-parecida-getmapusers/

 

Link to comment
Share on other sites

1 answer to this question

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.

Guest
Answer this question...

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