Jump to content
  • 0

Enchant Armor Bonus Stats


mikemike

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

anyone can help me to revised my enchant armor ? i have script automatic +3 stats but i want to have payment for a TCG or BADGE.. how to revised it to payment for an item..

 

 

//===== eAthena Script =======================================
//= Armor Enchanter
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= eAhena SVN
//===== Description: =========================================
//= [Aegis Conversion]
//= Add a +1, 2, or 3, of a random stat to specified armor.
//===== Additional Comments: =================================
//= 1.0 First version.
//= 1.1 Corrected typo (Sit -> Suit) (bugreport:4586)
//============================================================

poring_c02,176,72,4	script	Apprentice Craftsman	73,{
    if (Zeny > 399999) {
        mes "[Apprentice Craftsman]";
        mes "I've been studying ways to enhance an armor to maximize it's capability.";
        next;
        mes "[Apprentice Craftsman]";
        mes "Enchanting is an awesome skill that infuses a mysterious status power into the armor's hidden socket.";
        next;
        mes "[Apprentice Craftsman]";
        mes "However, you have to keep in mind that if there are two armors of the same kind in your possession, the Enchantment will be applied in the order they are placed in your inventory.";
        next;
        mes "[Apprentice Craftsman]";
        mes "In that case, the Enchantment may be applied to an item which you didn't mean to Enchant. So just bring ^5555ffONE Armor^000000 you want enchanted to be safe..";
        next;
        mes "[Apprentice Craftsman]";
        mes "I'm not responsible for what would happen if you have more than one of the same kind in your inventory.";
        next;
        switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")) {
        case 1:
            switch(select("Mantle:Coat:Chain Mail:Full Plate:Silk Robe:Saint's Robe:Holy Robe:Wooden Mail:Tights:Silver Robe:Mage Coat:Thief Clothes:Legion Plate Armor:Lucius's Fierce Armor of Volcano:Saphien's Armor of Ocean:Aebeccee's Raging Typhoon Armor:Claytos Cracking Earth Armor:Ninja Suit:Chameleon Armor:Glorious Suit:Glorious Popularized Suit:Glorious Mass-Production Suit")) {
            case 1:
                callsub S_EnchantArmor,2307,50;
            case 2:
                callsub S_EnchantArmor,2309,50;
            case 3:
                callsub S_EnchantArmor,2314,50;
            case 4:
                callsub S_EnchantArmor,2316,50;
            case 5:
                callsub S_EnchantArmor,2321,50;
            case 6:
                callsub S_EnchantArmor,2325,50;
            case 7:
                callsub S_EnchantArmor,2327,50;
            case 8:
                callsub S_EnchantArmor,2328,50;
            case 9:
                callsub S_EnchantArmor,2330,50;
            case 10:
                callsub S_EnchantArmor,2332,50;
            case 11:
                callsub S_EnchantArmor,2334,50;
            case 12:
                callsub S_EnchantArmor,2335,50;
            case 13:
                callsub S_EnchantArmor,2341,50;
            case 14:
                callsub S_EnchantArmor,2344,50;
            case 15:
                callsub S_EnchantArmor,2346,50;
            case 16:
                callsub S_EnchantArmor,2348,50;
            case 17:
                callsub S_EnchantArmor,2350,50;
            case 18:
                callsub S_EnchantArmor,2337,50;
            case 19:
                callsub S_EnchantArmor,2386,50;
            case 20:
                callsub S_EnchantArmor,2394,50;
            case 21:
                callsub S_EnchantArmor,2395,50;
            case 22:
                callsub S_EnchantArmor,2396,50;
            }
        case 2:
            switch(select("Mink Coat:Lord's Clothes:Glittering Jacket:Formal Suit:Mantle(1):Coat(1):Chain Mail(1):Full Plate(1):Silk Robe(1):Scapulare(1):Saint's Robe(1):Tights(1):Silver Robe(1):Thief Clothes(1):Legion Plate Armor(1):Lucius's Fierce Armor of Volcano(1):Saphien's Armor of Ocean(1):Aebeccee's Raging Typhoon Armor(1):Claytos Cracking Earth Armor(1)")) {
            case 1:
                callsub S_EnchantArmor,2311,55;
            case 2:
                callsub S_EnchantArmor,2318,55;
            case 3:
                callsub S_EnchantArmor,2319,55;
            case 4:
                callsub S_EnchantArmor,2320,55;
            case 5:
                callsub S_EnchantArmor,2308,55;
            case 6:
                callsub S_EnchantArmor,2310,55;
            case 7:
                callsub S_EnchantArmor,2315,55;
            case 8:
                callsub S_EnchantArmor,2317,55;
            case 9:
                callsub S_EnchantArmor,2322,55;
            case 10:
                callsub S_EnchantArmor,2324,55;
            case 11:
                callsub S_EnchantArmor,2326,55;
            case 12:
                callsub S_EnchantArmor,2331,55;
            case 13:
                callsub S_EnchantArmor,2333,55;
            case 14:
                callsub S_EnchantArmor,2336,55;
            case 15:
                callsub S_EnchantArmor,2342,55;
            case 16:
                callsub S_EnchantArmor,2345,55;
            case 17:
                callsub S_EnchantArmor,2347,55;
            case 18:
                callsub S_EnchantArmor,2349,55;
            case 19:
                callsub S_EnchantArmor,2351,55;
            }
        case 3:
            switch(select("Meteo Plate Armor:Orlean's Gown:Life Link:Diablos Robe:Diablos Armor:Assaulter Plate:Elite Engineer Armor:Assassin Robe:Warlock's Battle Robe:Medic's Robe:Elite Archer Suit:Elite Shooter Suit:Sprint Mail:Kandura:Armor of Naga:Improved Tights")) {
            case 1:
                callsub S_EnchantArmor,2364,60;
            case 2:
                callsub S_EnchantArmor,2365,60;
            case 3:
                callsub S_EnchantArmor,2391,60;
            case 4:
                callsub S_EnchantArmor,2374,60;
            case 5:
                callsub S_EnchantArmor,2375,60;
            case 6:
                callsub S_EnchantArmor,2376,60;
            case 7:
                callsub S_EnchantArmor,2377,60;
            case 8:
                callsub S_EnchantArmor,2378,60;
            case 9:
                callsub S_EnchantArmor,2379,60;
            case 10:
                callsub S_EnchantArmor,2380,60;
            case 11:
                callsub S_EnchantArmor,2381,60;
            case 12:
                callsub S_EnchantArmor,2382,60;
            case 13:
                callsub S_EnchantArmor,2387,60;
            case 14:
                callsub S_EnchantArmor,2388,60;
            case 15:
                callsub S_EnchantArmor,2389,60;
            case 16:
                callsub S_EnchantArmor,2390,60;
            }
        case 4:
            mes "[Apprentice Craftsman]";
            mes "Please come back when you have any interest in enchanting your armor.";
            close;
        }
    }
    else {
        mes "[Apprentice Craftsman]";
        mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "If by any chance, you would want to enchant your armor, bring me 400,000 zeny and the armor you want to enchant and you are all set to go.";
        close;
    }

S_EnchantArmor:
    set .@itemid,getarg(0);
    if ((countitem(.@itemid) > 0) && (countitem(.@itemid) < 2)) {
        mes "[Apprentice Craftsman]";
        mes "Socket enchant wil cost you 400,000 zeny. And there will be a random option enchanted. Of course, there is a chance of breaking your armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "First and most importantly.";
        mes "^ff5555Existing Refine Level of the Armor";
        mes "and Cards will be GONE.^000000";
        mes "Do you still want to try an Enchant?";
        next;
        switch(select("Hmm... Let me think it over.:Go ahead.")) {
        case 1:
            mes "[Apprentice Craftsman]";
            mes "Well, I can't blame you. Safety first, Ey?";
            mes "Now you have a nice day.";
            close;
        case 2:
            mes "[Apprentice Craftsman]";
            mes "Quite of an adventurer huh? Well, shall we?";
            close2;
            specialeffect2 EF_MAPPILLAR;
            if (Zeny < 400000) {
                mes "[Apprentice Craftsman]";
                mes "Sorry, but you don't have enough zeny.";
                close;
            }

            set .@enc_ran,1;
            set zeny,zeny-400000;
            delitem .@itemid,1;
            switch(select("Str +3:Int +3:Dex +3:Agi +3:Vit +3:Luk +3:Nevermind"))
            {
            case 1:
                set .@addpart,4702;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 2:
                set .@addpart,4712;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 3:
                set .@addpart,4722;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 4:
                set .@addpart,4732;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 5:
                set .@addpart,4742;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 6:
                set .@addpart,4752;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            default:
                close;
        }
    }
}
    else
        close;

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Posted (edited) · Hidden by Capuche, September 16, 2013 - No reason given
Hidden by Capuche, September 16, 2013 - No reason given

Let me try :)

Edited by Yoona
Link to comment

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Posted · Hidden by Capuche, September 16, 2013 - No reason given
Hidden by Capuche, September 16, 2013 - No reason given

where ?

Link to comment

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Revised script :

//===== eAthena Script =======================================
//= Armor Enchanter
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= eAhena SVN
//===== Description: =========================================
//= [Aegis Conversion]
//= Add a +1, 2, or 3, of a random stat to specified armor.
//===== Additional Comments: =================================
//= 1.0 First version.
//= 1.1 Corrected typo (Sit -> Suit) (bugreport:4586)
//============================================================

poring_c02,176,72,4    script    Apprentice Craftsman    73,{
    if (Zeny > 399999) {
        mes "[Apprentice Craftsman]";
        mes "I've been studying ways to enhance an armor to maximize it's capability.";
        next;
        mes "[Apprentice Craftsman]";
        mes "Enchanting is an awesome skill that infuses a mysterious status power into the armor's hidden socket.";
        next;
        mes "[Apprentice Craftsman]";
        mes "However, you have to keep in mind that if there are two armors of the same kind in your possession, the Enchantment will be applied in the order they are placed in your inventory.";
        next;
        mes "[Apprentice Craftsman]";
        mes "In that case, the Enchantment may be applied to an item which you didn't mean to Enchant. So just bring ^5555ffONE Armor^000000 you want enchanted to be safe..";
        next;
        mes "[Apprentice Craftsman]";
        mes "I'm not responsible for what would happen if you have more than one of the same kind in your inventory.";
        next;
        switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")) {
        case 1:
            switch(select("Mantle:Coat:Chain Mail:Full Plate:Silk Robe:Saint's Robe:Holy Robe:Wooden Mail:Tights:Silver Robe:Mage Coat:Thief Clothes:Legion Plate Armor:Lucius's Fierce Armor of Volcano:Saphien's Armor of Ocean:Aebeccee's Raging Typhoon Armor:Claytos Cracking Earth Armor:Ninja Suit:Chameleon Armor:Glorious Suit:Glorious Popularized Suit:Glorious Mass-Production Suit")) {
            case 1:
                callsub S_EnchantArmor,2307,50;
            case 2:
                callsub S_EnchantArmor,2309,50;
            case 3:
                callsub S_EnchantArmor,2314,50;
            case 4:
                callsub S_EnchantArmor,2316,50;
            case 5:
                callsub S_EnchantArmor,2321,50;
            case 6:
                callsub S_EnchantArmor,2325,50;
            case 7:
                callsub S_EnchantArmor,2327,50;
            case 8:
                callsub S_EnchantArmor,2328,50;
            case 9:
                callsub S_EnchantArmor,2330,50;
            case 10:
                callsub S_EnchantArmor,2332,50;
            case 11:
                callsub S_EnchantArmor,2334,50;
            case 12:
                callsub S_EnchantArmor,2335,50;
            case 13:
                callsub S_EnchantArmor,2341,50;
            case 14:
                callsub S_EnchantArmor,2344,50;
            case 15:
                callsub S_EnchantArmor,2346,50;
            case 16:
                callsub S_EnchantArmor,2348,50;
            case 17:
                callsub S_EnchantArmor,2350,50;
            case 18:
                callsub S_EnchantArmor,2337,50;
            case 19:
                callsub S_EnchantArmor,2386,50;
            case 20:
                callsub S_EnchantArmor,2394,50;
            case 21:
                callsub S_EnchantArmor,2395,50;
            case 22:
                callsub S_EnchantArmor,2396,50;
            }
        case 2:
            switch(select("Mink Coat:Lord's Clothes:Glittering Jacket:Formal Suit:Mantle(1):Coat(1):Chain Mail(1):Full Plate(1):Silk Robe(1):Scapulare(1):Saint's Robe(1):Tights(1):Silver Robe(1):Thief Clothes(1):Legion Plate Armor(1):Lucius's Fierce Armor of Volcano(1):Saphien's Armor of Ocean(1):Aebeccee's Raging Typhoon Armor(1):Claytos Cracking Earth Armor(1)")) {
            case 1:
                callsub S_EnchantArmor,2311,55;
            case 2:
                callsub S_EnchantArmor,2318,55;
            case 3:
                callsub S_EnchantArmor,2319,55;
            case 4:
                callsub S_EnchantArmor,2320,55;
            case 5:
                callsub S_EnchantArmor,2308,55;
            case 6:
                callsub S_EnchantArmor,2310,55;
            case 7:
                callsub S_EnchantArmor,2315,55;
            case 8:
                callsub S_EnchantArmor,2317,55;
            case 9:
                callsub S_EnchantArmor,2322,55;
            case 10:
                callsub S_EnchantArmor,2324,55;
            case 11:
                callsub S_EnchantArmor,2326,55;
            case 12:
                callsub S_EnchantArmor,2331,55;
            case 13:
                callsub S_EnchantArmor,2333,55;
            case 14:
                callsub S_EnchantArmor,2336,55;
            case 15:
                callsub S_EnchantArmor,2342,55;
            case 16:
                callsub S_EnchantArmor,2345,55;
            case 17:
                callsub S_EnchantArmor,2347,55;
            case 18:
                callsub S_EnchantArmor,2349,55;
            case 19:
                callsub S_EnchantArmor,2351,55;
            }
        case 3:
            switch(select("Meteo Plate Armor:Orlean's Gown:Life Link:Diablos Robe:Diablos Armor:Assaulter Plate:Elite Engineer Armor:Assassin Robe:Warlock's Battle Robe:Medic's Robe:Elite Archer Suit:Elite Shooter Suit:Sprint Mail:Kandura:Armor of Naga:Improved Tights")) {
            case 1:
                callsub S_EnchantArmor,2364,60;
            case 2:
                callsub S_EnchantArmor,2365,60;
            case 3:
                callsub S_EnchantArmor,2391,60;
            case 4:
                callsub S_EnchantArmor,2374,60;
            case 5:
                callsub S_EnchantArmor,2375,60;
            case 6:
                callsub S_EnchantArmor,2376,60;
            case 7:
                callsub S_EnchantArmor,2377,60;
            case 8:
                callsub S_EnchantArmor,2378,60;
            case 9:
                callsub S_EnchantArmor,2379,60;
            case 10:
                callsub S_EnchantArmor,2380,60;
            case 11:
                callsub S_EnchantArmor,2381,60;
            case 12:
                callsub S_EnchantArmor,2382,60;
            case 13:
                callsub S_EnchantArmor,2387,60;
            case 14:
                callsub S_EnchantArmor,2388,60;
            case 15:
                callsub S_EnchantArmor,2389,60;
            case 16:
                callsub S_EnchantArmor,2390,60;
            }
        case 4:
            mes "[Apprentice Craftsman]";
            mes "Please come back when you have any interest in enchanting your armor.";
            close;
        }
    }
    else {
        mes "[Apprentice Craftsman]";
        mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "If by any chance, you would want to enchant your armor, bring me 400,000 zeny and the armor you want to enchant and you are all set to go.";
        close;
    }


S_EnchantArmor:
    set .@itemid,getarg(0);
    if (countitem(7227) < 10) {
        mes "[Apprentice Craftsman]";
        mes "I need 10 TCG's";
        close;
    }
    if ((countitem(.@itemid) > 0) && (countitem(.@itemid) < 2)) {
        mes "[Apprentice Craftsman]";
        mes "Socket enchant wil cost you 400,000 zeny. And there will be a random option enchanted. Of course, there is a chance of breaking your armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "First and most importantly.";
        mes "^ff5555Existing Refine Level of the Armor";
        mes "and Cards will be GONE.^000000";
        mes "Do you still want to try an Enchant?";
        next;
        switch(select("Hmm... Let me think it over.:Go ahead.")) {
        case 1:
            mes "[Apprentice Craftsman]";
            mes "Well, I can't blame you. Safety first, Ey?";
            mes "Now you have a nice day.";
            close;
        case 2:
            mes "[Apprentice Craftsman]";
            mes "Quite of an adventurer huh? Well, shall we?";
            close2;
            specialeffect2 EF_MAPPILLAR;
            if (Zeny < 400000) {
                mes "[Apprentice Craftsman]";
                mes "Sorry, but you don't have enough zeny.";
                close;
            }


            set .@enc_ran,1;
            set zeny,zeny-400000;
            delitem .@itemid,1;
            delitem 7227, 10;
            switch(select("Str +3:Int +3:Dex +3:Agi +3:Vit +3:Luk +3:Nevermind"))
            {
            case 1:
                set .@addpart,4702;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 2:
                set .@addpart,4712;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 3:
                set .@addpart,4722;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 4:
                set .@addpart,4732;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 5:
                set .@addpart,4742;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 6:
                set .@addpart,4752;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            default:
                close;
        }
    }
}
    else
        close;
}

Added : 

if (countitem(7227) < 10) {
        mes "[Apprentice Craftsman]";
        mes "I need 10 TCG's";
        close;
}

and : 

delitem 7227, 10;

Change 10 to any number. It is the amount required by the npc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

i will test this



Revised script :

//===== eAthena Script =======================================
//= Armor Enchanter
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= eAhena SVN
//===== Description: =========================================
//= [Aegis Conversion]
//= Add a +1, 2, or 3, of a random stat to specified armor.
//===== Additional Comments: =================================
//= 1.0 First version.
//= 1.1 Corrected typo (Sit -> Suit) (bugreport:4586)
//============================================================

poring_c02,176,72,4    script    Apprentice Craftsman    73,{
    if (Zeny > 399999) {
        mes "[Apprentice Craftsman]";
        mes "I've been studying ways to enhance an armor to maximize it's capability.";
        next;
        mes "[Apprentice Craftsman]";
        mes "Enchanting is an awesome skill that infuses a mysterious status power into the armor's hidden socket.";
        next;
        mes "[Apprentice Craftsman]";
        mes "However, you have to keep in mind that if there are two armors of the same kind in your possession, the Enchantment will be applied in the order they are placed in your inventory.";
        next;
        mes "[Apprentice Craftsman]";
        mes "In that case, the Enchantment may be applied to an item which you didn't mean to Enchant. So just bring ^5555ffONE Armor^000000 you want enchanted to be safe..";
        next;
        mes "[Apprentice Craftsman]";
        mes "I'm not responsible for what would happen if you have more than one of the same kind in your inventory.";
        next;
        switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")) {
        case 1:
            switch(select("Mantle:Coat:Chain Mail:Full Plate:Silk Robe:Saint's Robe:Holy Robe:Wooden Mail:Tights:Silver Robe:Mage Coat:Thief Clothes:Legion Plate Armor:Lucius's Fierce Armor of Volcano:Saphien's Armor of Ocean:Aebeccee's Raging Typhoon Armor:Claytos Cracking Earth Armor:Ninja Suit:Chameleon Armor:Glorious Suit:Glorious Popularized Suit:Glorious Mass-Production Suit")) {
            case 1:
                callsub S_EnchantArmor,2307,50;
            case 2:
                callsub S_EnchantArmor,2309,50;
            case 3:
                callsub S_EnchantArmor,2314,50;
            case 4:
                callsub S_EnchantArmor,2316,50;
            case 5:
                callsub S_EnchantArmor,2321,50;
            case 6:
                callsub S_EnchantArmor,2325,50;
            case 7:
                callsub S_EnchantArmor,2327,50;
            case 8:
                callsub S_EnchantArmor,2328,50;
            case 9:
                callsub S_EnchantArmor,2330,50;
            case 10:
                callsub S_EnchantArmor,2332,50;
            case 11:
                callsub S_EnchantArmor,2334,50;
            case 12:
                callsub S_EnchantArmor,2335,50;
            case 13:
                callsub S_EnchantArmor,2341,50;
            case 14:
                callsub S_EnchantArmor,2344,50;
            case 15:
                callsub S_EnchantArmor,2346,50;
            case 16:
                callsub S_EnchantArmor,2348,50;
            case 17:
                callsub S_EnchantArmor,2350,50;
            case 18:
                callsub S_EnchantArmor,2337,50;
            case 19:
                callsub S_EnchantArmor,2386,50;
            case 20:
                callsub S_EnchantArmor,2394,50;
            case 21:
                callsub S_EnchantArmor,2395,50;
            case 22:
                callsub S_EnchantArmor,2396,50;
            }
        case 2:
            switch(select("Mink Coat:Lord's Clothes:Glittering Jacket:Formal Suit:Mantle(1):Coat(1):Chain Mail(1):Full Plate(1):Silk Robe(1):Scapulare(1):Saint's Robe(1):Tights(1):Silver Robe(1):Thief Clothes(1):Legion Plate Armor(1):Lucius's Fierce Armor of Volcano(1):Saphien's Armor of Ocean(1):Aebeccee's Raging Typhoon Armor(1):Claytos Cracking Earth Armor(1)")) {
            case 1:
                callsub S_EnchantArmor,2311,55;
            case 2:
                callsub S_EnchantArmor,2318,55;
            case 3:
                callsub S_EnchantArmor,2319,55;
            case 4:
                callsub S_EnchantArmor,2320,55;
            case 5:
                callsub S_EnchantArmor,2308,55;
            case 6:
                callsub S_EnchantArmor,2310,55;
            case 7:
                callsub S_EnchantArmor,2315,55;
            case 8:
                callsub S_EnchantArmor,2317,55;
            case 9:
                callsub S_EnchantArmor,2322,55;
            case 10:
                callsub S_EnchantArmor,2324,55;
            case 11:
                callsub S_EnchantArmor,2326,55;
            case 12:
                callsub S_EnchantArmor,2331,55;
            case 13:
                callsub S_EnchantArmor,2333,55;
            case 14:
                callsub S_EnchantArmor,2336,55;
            case 15:
                callsub S_EnchantArmor,2342,55;
            case 16:
                callsub S_EnchantArmor,2345,55;
            case 17:
                callsub S_EnchantArmor,2347,55;
            case 18:
                callsub S_EnchantArmor,2349,55;
            case 19:
                callsub S_EnchantArmor,2351,55;
            }
        case 3:
            switch(select("Meteo Plate Armor:Orlean's Gown:Life Link:Diablos Robe:Diablos Armor:Assaulter Plate:Elite Engineer Armor:Assassin Robe:Warlock's Battle Robe:Medic's Robe:Elite Archer Suit:Elite Shooter Suit:Sprint Mail:Kandura:Armor of Naga:Improved Tights")) {
            case 1:
                callsub S_EnchantArmor,2364,60;
            case 2:
                callsub S_EnchantArmor,2365,60;
            case 3:
                callsub S_EnchantArmor,2391,60;
            case 4:
                callsub S_EnchantArmor,2374,60;
            case 5:
                callsub S_EnchantArmor,2375,60;
            case 6:
                callsub S_EnchantArmor,2376,60;
            case 7:
                callsub S_EnchantArmor,2377,60;
            case 8:
                callsub S_EnchantArmor,2378,60;
            case 9:
                callsub S_EnchantArmor,2379,60;
            case 10:
                callsub S_EnchantArmor,2380,60;
            case 11:
                callsub S_EnchantArmor,2381,60;
            case 12:
                callsub S_EnchantArmor,2382,60;
            case 13:
                callsub S_EnchantArmor,2387,60;
            case 14:
                callsub S_EnchantArmor,2388,60;
            case 15:
                callsub S_EnchantArmor,2389,60;
            case 16:
                callsub S_EnchantArmor,2390,60;
            }
        case 4:
            mes "[Apprentice Craftsman]";
            mes "Please come back when you have any interest in enchanting your armor.";
            close;
        }
    }
    else {
        mes "[Apprentice Craftsman]";
        mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "If by any chance, you would want to enchant your armor, bring me 400,000 zeny and the armor you want to enchant and you are all set to go.";
        close;
    }


S_EnchantArmor:
    set .@itemid,getarg(0);
    if (countitem(7227) < 10) {
        mes "[Apprentice Craftsman]";
        mes "I need 10 TCG's";
        close;
    }
    if ((countitem(.@itemid) > 0) && (countitem(.@itemid) < 2)) {
        mes "[Apprentice Craftsman]";
        mes "Socket enchant wil cost you 400,000 zeny. And there will be a random option enchanted. Of course, there is a chance of breaking your armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "First and most importantly.";
        mes "^ff5555Existing Refine Level of the Armor";
        mes "and Cards will be GONE.^000000";
        mes "Do you still want to try an Enchant?";
        next;
        switch(select("Hmm... Let me think it over.:Go ahead.")) {
        case 1:
            mes "[Apprentice Craftsman]";
            mes "Well, I can't blame you. Safety first, Ey?";
            mes "Now you have a nice day.";
            close;
        case 2:
            mes "[Apprentice Craftsman]";
            mes "Quite of an adventurer huh? Well, shall we?";
            close2;
            specialeffect2 EF_MAPPILLAR;
            if (Zeny < 400000) {
                mes "[Apprentice Craftsman]";
                mes "Sorry, but you don't have enough zeny.";
                close;
            }


            set .@enc_ran,1;
            set zeny,zeny-400000;
            delitem .@itemid,1;
            delitem 7227, 10;
            switch(select("Str +3:Int +3:Dex +3:Agi +3:Vit +3:Luk +3:Nevermind"))
            {
            case 1:
                set .@addpart,4702;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 2:
                set .@addpart,4712;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 3:
                set .@addpart,4722;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 4:
                set .@addpart,4732;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 5:
                set .@addpart,4742;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 6:
                set .@addpart,4752;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            default:
                close;
        }
    }
}
    else
        close;
}

Added : 

if (countitem(7227) < 10) {
        mes "[Apprentice Craftsman]";
        mes "I need 10 TCG's";
        close;
}

and : 

delitem 7227, 10;

Change 10 to any number. It is the amount required by the npc

its not working still getting my zeny only not the item currency

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Here, all I did was delete anything having to deal with zeny. And left in Patskie's changes.

//===== eAthena Script =======================================
//= Armor Enchanter
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= eAhena SVN
//===== Description: =========================================
//= [Aegis Conversion]
//= Add a +1, 2, or 3, of a random stat to specified armor.
//===== Additional Comments: =================================
//= 1.0 First version.
//= 1.1 Corrected typo (Sit -> Suit) (bugreport:4586)
//============================================================

poring_c02,176,72,4    script    Apprentice Craftsman    73,{
        mes "[Apprentice Craftsman]";
        mes "I've been studying ways to enhance an armor to maximize it's capability.";
        next;
        mes "[Apprentice Craftsman]";
        mes "Enchanting is an awesome skill that infuses a mysterious status power into the armor's hidden socket.";
        next;
        mes "[Apprentice Craftsman]";
        mes "However, you have to keep in mind that if there are two armors of the same kind in your possession, the Enchantment will be applied in the order they are placed in your inventory.";
        next;
        mes "[Apprentice Craftsman]";
        mes "In that case, the Enchantment may be applied to an item which you didn't mean to Enchant. So just bring ^5555ffONE Armor^000000 you want enchanted to be safe..";
        next;
        mes "[Apprentice Craftsman]";
        mes "I'm not responsible for what would happen if you have more than one of the same kind in your inventory.";
        next;
        switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")) {
        case 1:
            switch(select("Mantle:Coat:Chain Mail:Full Plate:Silk Robe:Saint's Robe:Holy Robe:Wooden Mail:Tights:Silver Robe:Mage Coat:Thief Clothes:Legion Plate Armor:Lucius's Fierce Armor of Volcano:Saphien's Armor of Ocean:Aebeccee's Raging Typhoon Armor:Claytos Cracking Earth Armor:Ninja Suit:Chameleon Armor:Glorious Suit:Glorious Popularized Suit:Glorious Mass-Production Suit")) {
            case 1:
                callsub S_EnchantArmor,2307,50;
            case 2:
                callsub S_EnchantArmor,2309,50;
            case 3:
                callsub S_EnchantArmor,2314,50;
            case 4:
                callsub S_EnchantArmor,2316,50;
            case 5:
                callsub S_EnchantArmor,2321,50;
            case 6:
                callsub S_EnchantArmor,2325,50;
            case 7:
                callsub S_EnchantArmor,2327,50;
            case 8:
                callsub S_EnchantArmor,2328,50;
            case 9:
                callsub S_EnchantArmor,2330,50;
            case 10:
                callsub S_EnchantArmor,2332,50;
            case 11:
                callsub S_EnchantArmor,2334,50;
            case 12:
                callsub S_EnchantArmor,2335,50;
            case 13:
                callsub S_EnchantArmor,2341,50;
            case 14:
                callsub S_EnchantArmor,2344,50;
            case 15:
                callsub S_EnchantArmor,2346,50;
            case 16:
                callsub S_EnchantArmor,2348,50;
            case 17:
                callsub S_EnchantArmor,2350,50;
            case 18:
                callsub S_EnchantArmor,2337,50;
            case 19:
                callsub S_EnchantArmor,2386,50;
            case 20:
                callsub S_EnchantArmor,2394,50;
            case 21:
                callsub S_EnchantArmor,2395,50;
            case 22:
                callsub S_EnchantArmor,2396,50;
            }
        case 2:
            switch(select("Mink Coat:Lord's Clothes:Glittering Jacket:Formal Suit:Mantle(1):Coat(1):Chain Mail(1):Full Plate(1):Silk Robe(1):Scapulare(1):Saint's Robe(1):Tights(1):Silver Robe(1):Thief Clothes(1):Legion Plate Armor(1):Lucius's Fierce Armor of Volcano(1):Saphien's Armor of Ocean(1):Aebeccee's Raging Typhoon Armor(1):Claytos Cracking Earth Armor(1)")) {
            case 1:
                callsub S_EnchantArmor,2311,55;
            case 2:
                callsub S_EnchantArmor,2318,55;
            case 3:
                callsub S_EnchantArmor,2319,55;
            case 4:
                callsub S_EnchantArmor,2320,55;
            case 5:
                callsub S_EnchantArmor,2308,55;
            case 6:
                callsub S_EnchantArmor,2310,55;
            case 7:
                callsub S_EnchantArmor,2315,55;
            case 8:
                callsub S_EnchantArmor,2317,55;
            case 9:
                callsub S_EnchantArmor,2322,55;
            case 10:
                callsub S_EnchantArmor,2324,55;
            case 11:
                callsub S_EnchantArmor,2326,55;
            case 12:
                callsub S_EnchantArmor,2331,55;
            case 13:
                callsub S_EnchantArmor,2333,55;
            case 14:
                callsub S_EnchantArmor,2336,55;
            case 15:
                callsub S_EnchantArmor,2342,55;
            case 16:
                callsub S_EnchantArmor,2345,55;
            case 17:
                callsub S_EnchantArmor,2347,55;
            case 18:
                callsub S_EnchantArmor,2349,55;
            case 19:
                callsub S_EnchantArmor,2351,55;
            }
        case 3:
            switch(select("Meteo Plate Armor:Orlean's Gown:Life Link:Diablos Robe:Diablos Armor:Assaulter Plate:Elite Engineer Armor:Assassin Robe:Warlock's Battle Robe:Medic's Robe:Elite Archer Suit:Elite Shooter Suit:Sprint Mail:Kandura:Armor of Naga:Improved Tights")) {
            case 1:
                callsub S_EnchantArmor,2364,60;
            case 2:
                callsub S_EnchantArmor,2365,60;
            case 3:
                callsub S_EnchantArmor,2391,60;
            case 4:
                callsub S_EnchantArmor,2374,60;
            case 5:
                callsub S_EnchantArmor,2375,60;
            case 6:
                callsub S_EnchantArmor,2376,60;
            case 7:
                callsub S_EnchantArmor,2377,60;
            case 8:
                callsub S_EnchantArmor,2378,60;
            case 9:
                callsub S_EnchantArmor,2379,60;
            case 10:
                callsub S_EnchantArmor,2380,60;
            case 11:
                callsub S_EnchantArmor,2381,60;
            case 12:
                callsub S_EnchantArmor,2382,60;
            case 13:
                callsub S_EnchantArmor,2387,60;
            case 14:
                callsub S_EnchantArmor,2388,60;
            case 15:
                callsub S_EnchantArmor,2389,60;
            case 16:
                callsub S_EnchantArmor,2390,60;
            }
        case 4:
            mes "[Apprentice Craftsman]";
            mes "Please come back when you have any interest in enchanting your armor.";
            close;
        }
    else {
        mes "[Apprentice Craftsman]";
        mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "If by any chance, you would want to enchant your armor, bring me 400,000 zeny and the armor you want to enchant and you are all set to go.";
        close;
    }


S_EnchantArmor:
    set .@itemid,getarg(0);
    if (countitem(7227) < 10) {
        mes "[Apprentice Craftsman]";
        mes "I need 10 TCG's";
        close;
    }
    if ((countitem(.@itemid) > 0) && (countitem(.@itemid) < 2)) {
        mes "[Apprentice Craftsman]";
        mes "Socket enchant wil cost you 400,000 zeny. And there will be a random option enchanted. Of course, there is a chance of breaking your armor.";
        next;
        mes "[Apprentice Craftsman]";
        mes "First and most importantly.";
        mes "^ff5555Existing Refine Level of the Armor";
        mes "and Cards will be GONE.^000000";
        mes "Do you still want to try an Enchant?";
        next;
        switch(select("Hmm... Let me think it over.:Go ahead.")) {
        case 1:
            mes "[Apprentice Craftsman]";
            mes "Well, I can't blame you. Safety first, Ey?";
            mes "Now you have a nice day.";
            close;
        case 2:
            mes "[Apprentice Craftsman]";
            mes "Quite of an adventurer huh? Well, shall we?";
            close2;
            specialeffect2 EF_MAPPILLAR;


            set .@enc_ran,1;
            delitem .@itemid,1;
            delitem 7227, 10;
            switch(select("Str +3:Int +3:Dex +3:Agi +3:Vit +3:Luk +3:Nevermind"))
            {
            case 1:
                set .@addpart,4702;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 2:
                set .@addpart,4712;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 3:
                set .@addpart,4722;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 4:
                set .@addpart,4732;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 5:
                set .@addpart,4742;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            case 6:
                set .@addpart,4752;
                getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
                close;
            default:
                close;
        }
    }
}
    else
        close;
}
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...