Jump to content

Question

Posted

I wonder the same as rye305

Hi guys im using Euphy's "Ticket Refiner" script. is it possible to Change it so that in order to get +5 = i need a weapon +4 and a (guaranteed refine ticket +5). and if i want to +6 my +5 weapon i would need a refine ticket +6.

at the moment the script just refines to the number of the ticket. means i have a +4 weapon and a +9 ticket = +9 instantly

i want it to be +4->+5->+6->+7->+8->+9

ty very much

4 answers to this question

Recommended Posts

  • 0
Posted

something like that?

prontera,150,150,10	script	Refiner Master	826,{
OnUsed:
set .Mode,0;            // Refine mode [ 0 = Refine +1 Each time  / 1 = Refine to Max Limit ]
set .EquipCheck,1;        // Check Equips is refineable or not. [ 0 = Disable / 1 = Enable ]
set .MaxRefine,0;        // Max Refine Limit
set .MaxRefine2,10;        // Max Refine Limit [ for Mode 2 Max Refine ]
set .TicketID,7539;        // Ticket ID

if( countitem(.TicketID) < 1 ){
	mes "you need "+getitemname(.TicketID)+" to continue.";
end;
}
	mes "[Refiner Master]";
	mes "I can refine anything, without problem";
	mes "Cost : ^FF00661 Poring Coin^000000.";
switch(select( ( getequiprefinerycnt(6) >= .MaxRefine2 || getequipisequiped(6) == 0 )?"":"Upper Headgear [ ^009900"+getequipname(6)+"^000000 ]",
            ( getequiprefinerycnt(5) >= .MaxRefine2 || getequipisequiped(5) == 0 )?"":"Middle Headgear [ ^009900"+getequipname(5)+"^000000 ]",
            ( getequiprefinerycnt(4) >= .MaxRefine2 || getequipisequiped(4) == 0 )?"":"Lower Headgear [ ^009900"+getequipname(4)+"^000000 ]",
            ( getequiprefinerycnt(7) >= .MaxRefine2 || getequipisequiped(7) == 0 )?"":"Armor [ ^009900"+getequipname(7)+"^000000 ]",
            ( getequiprefinerycnt(8) >= .MaxRefine2 || getequipisequiped(8) == 0 )?"":"Left Hand [ ^009900"+getequipname(8)+"^000000 ]",
            ( getequiprefinerycnt(9) >= .MaxRefine2 || getequipisequiped(9) == 0 )?"":"Right Hand [ ^009900"+getequipname(9)+"^000000 ]",
            ( getequiprefinerycnt(3) >= .MaxRefine2 || getequipisequiped(3) == 0 )?"":"Garment [ ^009900"+getequipname(3)+"^000000 ]",
            ( getequiprefinerycnt(2) >= .MaxRefine2 || getequipisequiped(2) == 0 )?"":"Shoes [ ^009900"+getequipname(2)+"^000000 ]",
            ( getequiprefinerycnt(1) >= .MaxRefine2 || getequipisequiped(1) == 0 )?"":"Accessory [ ^009900"+getequipname(1)+"^000000 ]",
            ( getequiprefinerycnt(0) >= .MaxRefine2 || getequipisequiped(0) == 0 )?"":"Accessory [ ^009900"+getequipname(0)+"^000000 ]",
                "^FF0000End^000000")) {
        Case 1:    
            if ( .Mode == 0 ) { callsub RefineSystem,6; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,6; }    
            if ( .Mode == 2 ) { callsub NewRefineSystem,6; }        
        Case 2:
            if ( .Mode == 0 ) { callsub RefineSystem,5; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,5; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,5; }
        Case 3:
            if ( .Mode == 0 ) { callsub RefineSystem,4; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,4; }    
            if ( .Mode == 2 ) { callsub NewRefineSystem,4; }    
        Case 4:
            if ( .Mode == 0 ) { callsub RefineSystem,7; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,7; }    
            if ( .Mode == 2 ) { callsub NewRefineSystem,7; }    
        Case 5:
            if ( .Mode == 0 ) { callsub RefineSystem,8; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,8; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,8; }
        Case 6:
            if ( .Mode == 0 ) { callsub RefineSystem,9; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,9; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,9; }
        Case 7:
            if ( .Mode == 0 ) { callsub RefineSystem,3; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,3; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,3; }
        Case 8:
            if ( .Mode == 0 ) { callsub RefineSystem,2; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,2; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,2; }
        Case 9:
            if ( .Mode == 0 ) { callsub RefineSystem,1; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,1; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,1; }
        Case 10:
            if ( .Mode == 0 ) { callsub RefineSystem,0; }
            if ( .Mode == 1 ) { callsub MaxRefineSystem,0; }        
            if ( .Mode == 2 ) { callsub NewRefineSystem,0; }
        Case 11:
            end;
            }

RefineSystem:
if ( .EquipCheck == 1 && getequipisenableref(getarg(0)) == 0 ){
mes "I can not refine this item. It is not refinable.";
end;
}
    if(getequiprefinerycnt(getarg(0)) < .MaxRefine) {
    mes "I can not refine this item.";
    mes "You must refine ^0000FF+0^000000";
    mes "Before you give me.";
    end;
    }
    successrefitem (getarg(0));
    message strcharinfo(0),"Refined Successful.";
    delitem .TicketID,1;
    end;

MaxRefineSystem:
if ( .EquipCheck == 1 && getequipisenableref(getarg(0)) == 0 ){
mes "I can not refine this article. It is not refinable.";
end;
}
    for ( set .@i,getequiprefinerycnt(getarg(0)); getequiprefinerycnt(getarg(0)) < .MaxRefine; set .@i,getequiprefinerycnt(getarg(0)) ){
    successrefitem (getarg(0));
    }
    message strcharinfo(0),"Refined Successful.";
    delitem .TicketID,1;
    end;
    
NewRefineSystem:
if ( .EquipCheck == 1 && getequipisenableref(getarg(0)) == 0 ){
mes "I can not refine this article. It is not refinable.";
end;
}
mes "I only refine up to +12.";
next;
while ( countitem(.TicketID) > 0 && getequiprefinerycnt(getarg(0)) < .MaxRefine ){
successrefitem (getarg(0));
delitem .TicketID,1;
}
while ( countitem(.TicketID) > 1 && getequiprefinerycnt(getarg(0)) > .MaxRefine && getequiprefinerycnt(getarg(0)) < .MaxRefine2 ){
successrefitem (getarg(0));
delitem .TicketID,1;
}
message strcharinfo(0),"Refined Successful";
end;

}

 

  • 0
Posted
1 hour ago, Giant Whisper said:

I wonder the same as rye305

Hi guys im using Euphy's "Ticket Refiner" script. is it possible to Change it so that in order to get +5 = i need a weapon +4 and a (guaranteed refine ticket +5). and if i want to +6 my +5 weapon i would need a refine ticket +6.

at the moment the script just refines to the number of the ticket. means i have a +4 weapon and a +9 ticket = +9 instantly

i want it to be +4->+5->+6->+7->+8->+9

ty very much

already have the script in rathena, use this npc

https://github.com/rathena/rathena/blob/master/npc/re/merchants/ticket_refiner.txt

enable it in

https://github.com/rathena/rathena/blob/master/npc/re/scripts_athena.conf

line 104

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...