if(getequipisequiped(1)+getequipisequiped(2)+getequipisequiped(3)+getequipisequiped(4)+getequipisequiped(5)+getequipisequiped(6)==0)
{
mes "[Xrefine]";
mes "You are not wearing anything!!!。";
close;
}
if(getequipisequiped(1)!=0) set .@menu_1$,"Refine^006400"+getequipname(1)+"^000000"; else set .@menu_1$,"";
if(getequipisequiped(2)!=0) set .@menu_2$,"Refine^006400"+getequipname(2)+"^000000"; else set .@menu_2$,"";
if(getequipisequiped(3)!=0)
{
if(getequipweaponlv(3)>0) set .@menu_3$,"Refine^0000AA"+getequipname(3)+"^000000";
else set .@menu_3$,"Refine^006400"+getequipname(3)+"^000000";
}else set .@menu_3$,"";
if(getequipisequiped(4)!=0) set .@menu_4$,"Refine^0000AA"+getequipname(4)+"^000000"; else set .@menu_4$,"";
if(getequipisequiped(5)!=0) set .@menu_5$,"Refine^006400"+getequipname(5)+"^000000"; else set .@menu_5$,"";
if(getequipisequiped(6)!=0) set .@menu_6$,"Refine^006400"+getequipname(6)+"^000000"; else set .@menu_6$,"";
switch(select(.@menu_1$,.@menu_2$,.@menu_3$,.@menu_4$,.@menu_5$,.@menu_6$,"cancel"))
{
case 1: set @Part,1; break;
case 2: set @Part,2; break;
case 3: set @Part,3; break;
case 4: set @Part,4; break;
case 5: set @Part,5; break;
case 6: set @Part,6; break;
case 7: close;
}
set @Type,getequipweaponlv(@Part);
if(@Type==0) set @ref_max,@aref_max;
else if(@Type==1) set @ref_max,@wref_max_lv1;
else if(@Type==2) set @ref_max,@wref_max_lv2;
else if(@Type==3) set @ref_max,@wref_max_lv3;
else if(@Type==4) set @ref_max,@wref_max_lv4;
if(getequiprefinerycnt(@Part)>=@ref_max)
{
So i believe the error came from the above. The error is that when i click the npc, the menu did not show Right hand, Left hand, Armor, Shoe..etc instead it showed my accessory and lower top gear. So then i double checked the rathena and made sure the getequipisequiped is correct, which it is. Im not sure where i got it wrong...
So, while i was typing it i decide to give it another try to change the getequipisequiped(number) to getequipisequiped(EQI_HEAD_TOP) etc.. now that the menu shows what i want, but when i actually click the menu, its still making me to refine a different gear.
Question
andrew0960
So i believe the error came from the above. The error is that when i click the npc, the menu did not show Right hand, Left hand, Armor, Shoe..etc instead it showed my accessory and lower top gear. So then i double checked the rathena and made sure the getequipisequiped is correct, which it is. Im not sure where i got it wrong...
So, while i was typing it i decide to give it another try to change the getequipisequiped(number) to getequipisequiped(EQI_HEAD_TOP) etc.. now that the menu shows what i want, but when i actually click the menu, its still making me to refine a different gear.
Edited by andrew09603 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.