Ruhn Posted September 3, 2021 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 72 Reputation: 1 Joined: 04/15/20 Last Seen: May 14 Share Posted September 3, 2021 if(.@id == -1) { mes "You are not holding anything in your hand."; close; } else if(!.@allowed){ mes "Your item can't be enchanted."; close; } else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID == 0)){ mes "Your weapon dont have enchantment!"; close; } else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID)){ goto DISENCHANT; close; } DISENCHANT: mes "Do you want to disenchant your " + getitemname(.@id) + "?"; next; if(select("Yes, proceed.") == 1){ mes "[Enchanter]"; mes "Disenchanting Weapon"; progressbar "#00FF00",1; next; .@eqi = EQI_HAND_R; .@equip_id = getequipid(.@eqi); .@refine = getequiprefinerycnt(.@eqi); for (.@i = 0; .@i < 4; .@i++) .@card[.@i] = getequipcardid(.@eqi, .@i); delequip .@eqi; getitem2 .@equip_id, 1, 1,.@refine,0,.@card[0],.@card[1],.@card[2],.@card[3]; mes "[Enchanter]"; mes "Done removing enchantment"; close; } close; } the script works fine except for this line} else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID == 0)){ mes "Your weapon dont have enchantment!"; close;idk what to do to make the npc check the item if it dont have any enchantment then it will say that message. Thanks in advance guys Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted September 3, 2021 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: Yesterday at 12:51 AM Share Posted September 3, 2021 try this else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID)){ Quote Link to comment Share on other sites More sharing options...
Question
Ruhn
if(.@id == -1) { mes "You are not holding anything in your hand."; close; } else if(!.@allowed){ mes "Your item can't be enchanted."; close; } else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID == 0)){ mes "Your weapon dont have enchantment!"; close; } else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID)){ goto DISENCHANT; close; } DISENCHANT: mes "Do you want to disenchant your " + getitemname(.@id) + "?"; next; if(select("Yes, proceed.") == 1){ mes "[Enchanter]"; mes "Disenchanting Weapon"; progressbar "#00FF00",1; next; .@eqi = EQI_HAND_R; .@equip_id = getequipid(.@eqi); .@refine = getequiprefinerycnt(.@eqi); for (.@i = 0; .@i < 4; .@i++) .@card[.@i] = getequipcardid(.@eqi, .@i); delequip .@eqi; getitem2 .@equip_id, 1, 1,.@refine,0,.@card[0],.@card[1],.@card[2],.@card[3]; mes "[Enchanter]"; mes "Done removing enchantment"; close; } close; }
the script works fine except for this line
} else if(getequiprandomoption(EQI_HAND_R,0,ROA_ID == 0)){ mes "Your weapon dont have enchantment!"; close;
idk what to do to make the npc check the item if it dont have any enchantment then it will say that message. Thanks in advance guys
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.