After i updated my src last night the script doesn't work anymore, nothing appears on the menu. I know some things related to this got changed but i can't figure out how to solve this.
If anyone can give me a hand on this i'll be grateful. Thanks in advance.
This is the script if it helps:
function script RefineFunc {
disable_items;
if (isequipped(2576)) {
for( set .@i,1; .@i <= 10; set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + (( getarg(2) & pow( 2,(.@i-1 ) ) && getequiprefinerycnt( .@i ) >= getarg(3) && getequiprefinerycnt( .@i ) < getarg(4) && getequipisequiped( .@i )?"^FF0000+"+getequiprefinerycnt( .@i )+" ^0000FF"+getequipname( .@i)+" "+( getitemslots( getequipid( .@i ) )?"["+getitemslots( getequipid( .@i ) )+"]":"" )+"^000000":"" )+":";
set .@Refine,select( .@Menu$ );
mes "Preciso de^FF0000"+getarg(1)+" x "+getitemname( getarg(0) )+"^000000";
if( getarg(5) == 1 && !getequipisenableref( .@Refine ) )
mes "Eu não posso refinar esse item.";
else{
if( select( "^FF0000Refinar^000000:Cancelar" ) == 2 ) close;
if( countitem( getarg(0) ) < getarg(1) ) close;
delitem getarg(0),getarg(1);
if( rand(100) < getarg(7) ){
if( getarg(6) )
while( getequiprefinerycnt( .@Refine ) < getarg(4) )
successrefitem ( .@Refine );
else
successrefitem ( .@Refine );
mes "Você refinou : ";
mes "^FF0000+"+getequiprefinerycnt( .@Refine )+" ^0000FF"+getequipname( .@Refine )+"^000000";
}else{
failedrefitem ( .@Refine );
mes "Sorry, Failed in Refine and Equipment...Destroyed.";
}
}
close;
}
else if (isequipped(2589)) {
for( set .@i,1; .@i <= 10; set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + (( getarg(2) & pow( 2,(.@i-1 ) ) && getequiprefinerycnt( .@i ) >= getarg(3) && getequiprefinerycnt( .@i ) < getarg(4) && getequipisequiped( .@i) )?"^FF0000+"+getequiprefinerycnt( .@i )+" ^0000FF"+getequipname( .@i )+" "+( getitemslots( getequipid( .@i ) )?"["+getitemslots( getequipid( .@i ) )+"]":"" )+"^000000":"" )+":";
set .@Refine,select( .@Menu$ );
mes "Preciso de^FF0000"+getarg(1)+" x "+getitemname( getarg(0) )+"^000000";
if( getarg(5) == 1 && !getequipisenableref( .@Refine ) )
mes "Eu não posso refinar esse item.";
else{
if( select( "^FF0000Refinar^000000:Cancelar" ) == 2 ) close;
if( countitem( getarg(0) ) < getarg(1) ) close;
delitem getarg(0),getarg(1);
if( rand(100) < getarg(7) ){
if( getarg(6) )
while( getequiprefinerycnt( .@Refine ) < getarg(4) )
successrefitem ( .@Refine );
else
successrefitem ( .@Refine );
mes "Você refinou : ";
mes "^FF0000+"+getequiprefinerycnt( .@Refine )+" ^0000FF"+getequipname( .@Refine )+"^000000";
}else{
failedrefitem ( .@Refine );
mes "Sorry, Failed in Refine and Equipment...Destroyed.";
}
}
close;
}
else {
mes "Você não está com a asa nem/ou a mochila equipada.";
close;
}
enable_items;
}
Question
Felten
I'm using Emistry's Refine Function - https://rathena.org/board/topic/86008-utility-refine-function/ -
After i updated my src last night the script doesn't work anymore, nothing appears on the menu. I know some things related to this got changed but i can't figure out how to solve this.
If anyone can give me a hand on this i'll be grateful. Thanks in advance.
This is the script if it helps:
Link to comment
Share on other sites
2 answers 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.