Jump to content
  • 0

can you help me guarentee refine can check min and max refine


kangfredy

Question


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

guys i have some script like this (from euphys guarentees refine)

 function    script    GuaranteeRefine    {
 
    set .@CleanEquip,1;    // Only refine +0 equipment? (1:yes / 0:no)
 
    if (!getarg(1)) {
        message strcharinfo(0)," ~~ Guarantee Refine Ticket +"+getarg(0)+" ~~ ";
        for(set .@i,1; .@i<=10; set .@i,.@i+1) {
            if (getequipisequiped(.@i) && !getiteminfo(getequipid(.@i),13)) set .@menu$, .@menu$+getequipname(.@i);
            set .@menu$, .@menu$+":"; }
        set .@s, select(.@menu$); }
    else set .@s, getarg(1);
    if (!getequipisequiped(.@s)) {
        dispbottom "Nothing is equipped!"; close; }
    if (!getequipisenableref(.@s)) {
        dispbottom getequipname(.@s)+" cannot be refined."; close; }
    if (getequiprefinerycnt(.@s) >= 20 || (.@CleanEquip && getequiprefinerycnt(.@s))) {
        dispbottom "+"+getequiprefinerycnt(.@s)+" "+getequipname(.@s)+" cannot be refined any further."; close; }
    if (getarg(1)) message strcharinfo(0)," ~~ Guarantee Refine Ticket +"+getarg(0)+" ~~ ";
    if(select("^0055FFRefine +"+getequiprefinerycnt(.@s)+" "+getequipname(.@s)+":^777777Cancel^000000")==2) close;
    pcblockmove getcharid(3),1;
    specialeffect2 348;
    progressbar "",2;
    if (!countitem(getarg(2))) {
        dispbottom "Refine failed. Ticket not found."; close; }
    for(set .@i,0; .@i<getarg(0); set .@i,.@i+1) {
        if (getequiprefinerycnt(.@s) >= 20) break;
        successrefitem .@s; }
    delitem getarg(2),1;
    pcblockmove getcharid(3),0;
    close;
}

 can u help me to make this script can set minimun refine and maximum refine. if i hava refine ticket weapon +8 and i must have +7 weapon.and etc.

Edited by kangfredy
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can try this

 

 

or

if (getequiprefinerycnt(.@s) > 10 || getequiprefinerycnt(.@s) < 1 ){
    mes "Refine must be between 1 ~ 10;
    close;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

you can try this
 

 

 

or

if (getequiprefinerycnt(.@s) > 10 || getequiprefinerycnt(.@s) < 1 ){
    mes "Refine must be between 1 ~ 10;
    close;
}

but emistry ur refine function can't make one item can choose what i want..O_Oa..like 2 specifiec weapon and armor (choose one armor,garment,headgear,shoes)..it's only one item can refine one bitmask..

Edited by kangfredy
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...