the only problem with the script is it's not deleting the item when broken, anyone knows how to delete it? thank you.
// [Z3R0] - Added Item Check and Equipment Malfunctions
// Armor Check & Safeguard from Deletion, -1 From Refine Count (Retain All Cards)
if (.@part <= 2 && .@part >= 5) { // Armor Body Parts (Non Weapons)
if (getequiprefinerycnt(.@part) >= 7) { // Current Refine is 7 or Higher
//FailedRefItem .@part;
// Do Not know if there is an attribute function to get attribute
set .@card[0] = getequipcardid(.@part, 0);
set .@card[1] = getequipcardid(.@part, 1);
set .@card[2] = getequipcardid(.@part, 2);
set .@card[3] = getequipcardid(.@part, 3);
getitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part) - 1,0,.@card[0],.@card[1],.@card[2],.@card[3];
}
}
// Weapon Check & Safeguard from Deletion, -1 From Deletion, -1 From Refine Count (Retain All Cards)
if (.@part <= 4 && .@part >= 3) { // Weapons (Right and Left Hand)
if (getequiprefinerycnt(.@part) >= 8) { // Current Refine is 8 or Higher
//FailedRefItem .@part;
// Do Not know if there is an attribute function to get attribute
set .@card[0] = getequipcardid(.@part, 0);
set .@card[1] = getequipcardid(.@part, 1);
set .@card[2] = getequipcardid(.@part, 2);
set .@card[3] = getequipcardid(.@part, 3);
getitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part) - 1,0,.@card[0],.@card[1],.@card[2],.@card[3];
}
}