Jump to content

Jazz

Members
  • Posts

    90
  • Joined

  • Last visited

Posts posted by Jazz

  1. //===== eAthena Script =======================================
    //= Guarantee Refine Ticket
    //===== By: ==================================================
    //= Euphy / GM Takumirai
    //===== Current Version: =====================================
    //= 1.1a
    //===== Description: =========================================
    //= Uses [Guarantee Refine Ticket] to refine weapons/armor.
    //============================================================
    
    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;
    }
    
    
    /*
    Copy the following into db\item_db2.txt:
    6228,Guarantee_Weapon_9Up,Guarantee Weapon 9Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",9,4,6228; },{},{}
    6229,Guarantee_Weapon_8Up,Guarantee Weapon 8Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",8,4,6229; },{},{}
    6230,Guarantee_Weapon_7Up,Guarantee Weapon 7Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",7,4,6230; },{},{}
    6231,Guarantee_Weapon_6Up,Guarantee Weapon 6Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",6,4,6231; },{},{}
    6232,Guarantee_Armor_9Up,Guarantee Armor 9Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",9,0,6232; },{},{}
    6233,Guarantee_Armor_8Up,Guarantee Armor 8Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",8,0,6233; },{},{}
    6234,Guarantee_Armor_7Up,Guarantee Armor 7Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",7,0,6234; },{},{}
    6235,Guarantee_Armor_6Up,Guarantee Armor 6Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",6,0,6235; },{},{}
    6238,Guarantee_Weapon_11Up,Guarantee Weapon 11Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",11,4,6238; },{},{}
    6239,Guarantee_Armor_11Up,Guarantee Armor 11Up,11,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "GuaranteeRefine",11,0,6239; },{},{}
    */
    
    
    

    how would i apply this into a NPC.

  2. how could i possible do this?

    example i'm 150 max stats would be 120 and it won't pass that cap unless I level up to 151.

    thanks in advance. :)

    sorry about this i think I posted in the wrong section. Kindly please move this to the right section. thanks

×
×
  • Create New...