Hello. i am using a refiner that i found here at rathena and i just wanna ask why are these equipments not in the right options and can someone help me fix it?
Here's the script
//===== rAthena Script =======================================
//= Perfect Refiner
//===== By: ==================================================
//= SoulDestroyer (souldestroyer1030)
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= Refine -refinable- items to whatever level (even downgrade)
//===== Additional Comments: =================================
//= N/A
//============================================================
prontera,165,189,4 script Legendary Blacksmith 813,{
disable_items;
set [email protected], 0;
mes "[Legendary Blacksmith]";
mes "Heya! I'm the best blacksmith in the whole of Midgard!";
mes "How can I help you?";
next;
switch(select("Upgrade Equipment:Downgrade Equipment:Repair Equipment:Maybe next time.")) {
case 1:
set [email protected],1;
break;
case 2:
set [email protected],2;
break;
case 3:
set [email protected],3;
break;
default:
mes "[Legendary Blacksmith]";
mes "Come back if you change your mind!";
close;
}
if ([email protected] == 1 || [email protected] == 2) {
next;
if ([email protected] == 1) {
set actionword$,"upgrade";
} else if ([email protected] == 2) {
set actionword$,"downgrade";
}
mes "[Legendary Blacksmith]";
mes "Choose any of the equipment you're wearing that you'd like to " + actionword$ + ".";
next;
setarray [email protected]$[1], "Head","Body","Left hand","Right hand","Robe","Head","Accessory 1","Accessory 2","Head 2","Head 3";
set [email protected]$,"";
for(set [email protected],1; [email protected]<=10; set [email protected],[email protected]+1) {
if(getequipisequiped([email protected])) {
set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected]) + "]";
set [email protected],1;
}
set [email protected]$, [email protected]$ + ":";
}
if ([email protected] == 0) {
mes "[Legendary Blacksmith]";
mes "What? You're not wearing anything there.";
close;
}
set [email protected], select([email protected]$);
next;
//Check if the item is refinable...
if(!getequipisenableref([email protected])) {
mes "[Legendary Blacksmith]";
mes "Even with my exceptional skill,";
mes "there are things that just cannot be touched";
mes "by a blacksmith's hammer.";
close;
}
mes "[Legendary Blacksmith]";
mes "By how much do you want me to " + actionword$ + " this item?";
input [email protected];
next;
if ([email protected] == 0) {
mes "[Legendary Blacksmith]";
mes "Oh, did you change your mind?";
close;
}
set [email protected], getequipid([email protected]); // save id of the item
set [email protected],getequiprefinerycnt([email protected]); // save refine level of the item
setarray [email protected]_card[0], getequipcardid([email protected],0),getequipcardid([email protected],1),getequipcardid([email protected],2),getequipcardid([email protected],3); // get current cards
if(!getequipisequiped([email protected])) { //custom check
mes "[Legendary Blacksmith]";
mes "Please equip the gear that you want me to ";
mes "work on before coming to me!";
close;
}
//Check to see if the items is already maxed out
if(([email protected] == 1 && [email protected] >= 20) || ([email protected] == 2 && [email protected] <= 0)) {
mes "[Legendary Blacksmith]";
mes "I can no longer work on this.";
mes "Everything in this world has limits, you know!";
close;
}
// anti-hack
if (callfunc("F_IsEquipIDHack", [email protected], [email protected]) ||
callfunc("F_IsEquipCardHack", [email protected], [email protected]_card[0], [email protected]_card[1], [email protected]_card[2], [email protected]_card[3])) {
mes "[Legendary Blacksmith]";
mes "You switched gears... while I'm working.";
mes "That disappoints me more than anything. Go away.";
close;
}
if ([email protected] == 1) {
successrefitem [email protected], [email protected];
} else if ([email protected] == 2) {
downrefitem [email protected], [email protected];
}
mes "[Legendary Blacksmith]";
mes "Clang! Clang! Clang!";
next;
mes "[Legendary Blacksmith]";
mes "It's things like these that make me really proud";
mes "of who and what I am. Perfection!";
close;
}
else if ([email protected] == 3) {
next;
mes "[Legendary Blacksmith]";
mes "Okay, let me have a look at your equipment...";
next;
repairall getcharid(0);
mes "[Legendary Blacksmith]";
mes "There you go, I've repaired everything that needs repairing!";
close;
}
close;
}
Hello. i am using a refiner that i found here at rathena and i just wanna ask why are these equipments not in the right options and can someone help me fix it?
Here's the script
//===== rAthena Script ======================================= //= Perfect Refiner //===== By: ================================================== //= SoulDestroyer (souldestroyer1030) //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Refine -refinable- items to whatever level (even downgrade) //===== Additional Comments: ================================= //= N/A //============================================================ prontera,165,189,4 script Legendary Blacksmith 813,{ disable_items; set [email protected], 0; mes "[Legendary Blacksmith]"; mes "Heya! I'm the best blacksmith in the whole of Midgard!"; mes "How can I help you?"; next; switch(select("Upgrade Equipment:Downgrade Equipment:Repair Equipment:Maybe next time.")) { case 1: set [email protected],1; break; case 2: set [email protected],2; break; case 3: set [email protected],3; break; default: mes "[Legendary Blacksmith]"; mes "Come back if you change your mind!"; close; } if ([email protected] == 1 || [email protected] == 2) { next; if ([email protected] == 1) { set actionword$,"upgrade"; } else if ([email protected] == 2) { set actionword$,"downgrade"; } mes "[Legendary Blacksmith]"; mes "Choose any of the equipment you're wearing that you'd like to " + actionword$ + "."; next; setarray [email protected]$[1], "Head","Body","Left hand","Right hand","Robe","Head","Accessory 1","Accessory 2","Head 2","Head 3"; set [email protected]$,""; for(set [email protected],1; [email protected]<=10; set [email protected],[email protected]+1) { if(getequipisequiped([email protected])) { set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected]) + "]"; set [email protected],1; } set [email protected]$, [email protected]$ + ":"; } if ([email protected] == 0) { mes "[Legendary Blacksmith]"; mes "What? You're not wearing anything there."; close; } set [email protected], select([email protected]$); next; //Check if the item is refinable... if(!getequipisenableref([email protected])) { mes "[Legendary Blacksmith]"; mes "Even with my exceptional skill,"; mes "there are things that just cannot be touched"; mes "by a blacksmith's hammer."; close; } mes "[Legendary Blacksmith]"; mes "By how much do you want me to " + actionword$ + " this item?"; input [email protected]; next; if ([email protected] == 0) { mes "[Legendary Blacksmith]"; mes "Oh, did you change your mind?"; close; } set [email protected], getequipid([email protected]); // save id of the item set [email protected],getequiprefinerycnt([email protected]); // save refine level of the item setarray [email protected]_card[0], getequipcardid([email protected],0),getequipcardid([email protected],1),getequipcardid([email protected],2),getequipcardid([email protected],3); // get current cards if(!getequipisequiped([email protected])) { //custom check mes "[Legendary Blacksmith]"; mes "Please equip the gear that you want me to "; mes "work on before coming to me!"; close; } //Check to see if the items is already maxed out if(([email protected] == 1 && [email protected] >= 20) || ([email protected] == 2 && [email protected] <= 0)) { mes "[Legendary Blacksmith]"; mes "I can no longer work on this."; mes "Everything in this world has limits, you know!"; close; } // anti-hack if (callfunc("F_IsEquipIDHack", [email protected], [email protected]) || callfunc("F_IsEquipCardHack", [email protected], [email protected]_card[0], [email protected]_card[1], [email protected]_card[2], [email protected]_card[3])) { mes "[Legendary Blacksmith]"; mes "You switched gears... while I'm working."; mes "That disappoints me more than anything. Go away."; close; } if ([email protected] == 1) { successrefitem [email protected], [email protected]; } else if ([email protected] == 2) { downrefitem [email protected], [email protected]; } mes "[Legendary Blacksmith]"; mes "Clang! Clang! Clang!"; next; mes "[Legendary Blacksmith]"; mes "It's things like these that make me really proud"; mes "of who and what I am. Perfection!"; close; } else if ([email protected] == 3) { next; mes "[Legendary Blacksmith]"; mes "Okay, let me have a look at your equipment..."; next; repairall getcharid(0); mes "[Legendary Blacksmith]"; mes "There you go, I've repaired everything that needs repairing!"; close; } close; }and here's the menu ingame
Thanks in advance.
Edited by KuroeForgot to put image
Link to comment
Share on other sites