Jump to content
  • 0

refine script issus, getequipisequiped error perhaps. PLS HELP!


andrew0960

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/21/16
  • Last Seen:  

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.

Edited by andrew0960
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

The order of eqi_ changed well over a year ago, yoy just need to make script match the new order.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/21/16
  • Last Seen:  

The order of eqi_ changed well over a year ago, yoy just need to make script match the new order.

 

 

but i also use words like getequipisequiped(EQI_HEAD_TOP) that solved the display menu issue, but not the actual refine item.

 

 

Also, i was trying to build a prevent system that if a player owns the item, it can prevent a fail refine once. the item will be deleted no matter success or fail.  However, it turns out that if i have only one prevention item... and use it... the refine failed. the item got deleted and the eqi remains, but now the prblem comes...the effect of the prevention still exist even if i dont have the item!! so basically it becomes a free +20 npc...   

mes "[xrefine]";
if(@ref==1)
{
specialeffect2 EF_REPAIRWEAPON;
mes "it failed..but because^006400"+getitemname(@ritem)+"^000000,";
mes "so your equipment did not get damaged。";
delitem @ritem,1;
set @ref,1;
close;
}
Edited by andrew0960
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

Use q different refiner, this one is poorly coded and there are working ones already in existence

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