Jump to content
  • 0

Something wrong to my refiner


Question

Posted

Can you correct my script? This is the 1 click refine equipment but the un-refineable equipt like Poo Poo hat of course cannot be refined.

prt_in,163,142,3 script Refiner 826,{

if(getequipisequiped(1)) {
} else (!getequipisenableref(.@part)) {
mes "I cant refine this items. Because it is ^FF0000Un-Refineable^000000.";
close;
}
set .@refinerycnt,getequiprefinerycnt(1);
while (.@refinerycnt < 4) {
successrefitem 1;
set .@refinerycnt, .@refinerycnt+1;
}
}
if(getequipisequiped(2)) {
set .@refinerycnt,getequiprefinerycnt(2);
while (.@refinerycnt < 4) {
successrefitem 2;
set .@refinerycnt, .@refinerycnt+1;
}
}
if(getequipisequiped(3)) {
set .@refinerycnt,getequiprefinerycnt(3);
while (.@refinerycnt < 4) {
successrefitem 3;
set .@refinerycnt, .@refinerycnt+1;
}
}
if(getequipisequiped(5)) {
set .@refinerycnt,getequiprefinerycnt(5);
while (.@refinerycnt < 4) {
successrefitem 5;
set .@refinerycnt, .@refinerycnt+1;
}
}
if(getequipisequiped(6)) {
set .@refinerycnt,getequiprefinerycnt(6);
while (.@refinerycnt < 4) {
successrefitem 6;
set .@refinerycnt, .@refinerycnt+1;
}
}
if(getequipisequiped(4)) {
set .@refinerycnt,getequiprefinerycnt(4);
if(getequipweaponlv(4) == 1 || getequipweaponlv(4) == 2) {
while (.@refinerycnt < 7) {
successrefitem 4;
set .@refinerycnt, .@refinerycnt+1;
}
}
}
if(getequipweaponlv(4) == 3 || getequipweaponlv(4) == 4) {
while (.@refinerycnt < 5) {
successrefitem 4;
set .@refinerycnt, .@refinerycnt+1;
}
}
}

Bump!

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...