Jump to content
  • 0
DEsMOn

Need to add Pods requirement in this Script

Question

Hello Everyone...

Can some one guide me to add Proof of donation requirement in this script.

For Each Enchant Zeny required 400k

& Item required Item id- 7179

Thank you in advance...!!

prontera,165,71,2    script    Costume Craftsman    483,{
    disable_items;
    mes "[Costume Craftsman]";
    if (Zeny >= 400000) {
        mes "I've been studying ways to enhance an armor to maximize its capability.";
        next;
        mes "[Costume Craftsman]";
        mes "Enchanting is an awesome skill that infuses a mysterious status powers into the armor's hidden socket.";
        next;
        mes "[Costume 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 "[Costume 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 "[Costume 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("Costumes.:Maybe next time.")) {
        
        case 1:
            setarray [email protected][0],2780,42116,42117,42118,42119;
            set [email protected],60;
            break;
        case 2:
            mes "[Costume Craftsman]";
            mes "Please come back when you have any interest in enchanting your armor.";
            close;
        }
        set [email protected]$,"";
        for(set [email protected],0; [email protected]<getarraysize([email protected]); set [email protected],[email protected]+1)
            set [email protected]$, [email protected]$+getitemname([email protected][[email protected]])+(([email protected])?" [1]":"")+":";
        callsub S_EnchantArmor, [email protected][select([email protected]$)-1], [email protected];
        end;
    }
    mes "I am in charge of Enchanting Armors. Simply put, I've been studying ways to power-up armor.";
    next;
    mes "[Costume 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 [email protected],getarg(0);
    set [email protected],getarg(1);
    mes "[Costume Craftsman]";
    if (countitem([email protected]) == 1) {
        mes "Socket enchant will 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 "[Costume 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;
        if(select("Hmm... Let me think it over.:Go ahead.") == 1) {
            mes "[Costume Craftsman]";
            mes "Well, I can't blame you. Safety first, eh?";
            mes "Now you have a nice day.";
            close;
        }
        mes "[Costume Craftsman]";
        mes "Quite of an adventurer huh? Well, shall we?";
        close2;
        specialeffect2 EF_MAPPILLAR;
        if (Zeny < 400000) {
            mes "[Costume Craftsman]";
            mes "Sorry, but you don't have enough zeny.";
            close;
        }
        progressbar "ffff00",7;
        set Zeny, Zeny-400000;
        delitem [email protected],1;
        switch (rand(1,[email protected])) {
            case 1: set [email protected],4702;break;
            case 2: set [email protected],4712;break;
            case 3: set [email protected],4722;break;
            case 4: set [email protected],4732;break;
            case 5: set [email protected],4742;break;
            case 6: set [email protected],4752;break;
            case 7:
            case 8: set [email protected],4701;break;
            case 9:
            case 10: set [email protected],4711;break;
            case 11:
            case 12: set [email protected],4721;break;
            case 13:
            case 14: set [email protected],4731;break;
            case 15:
            case 16: set [email protected],4741;break;
            case 17:
            case 18: set [email protected],4751;break;
            case 19:
            case 20:
            case 21: set [email protected],4700;break;
            case 22:
            case 23:
            case 24: set [email protected],4710;break;
            case 25:
            case 26:
            case 27: set [email protected],4720;break;
            case 28:
            case 29:
            case 30: set [email protected],4730;break;
            case 31:
            case 32:
            case 33: set [email protected],4740;break;
            case 34:
            case 35:
            case 36: set [email protected],4750;break;
            default:
                specialeffect2 EF_PHARMACY_FAIL;
                mes "[Costume Craftsman]";
                mes "Well that's too bad.";
                mes "The requested equipment has failed to enchant.";
                close;
        }
        getitem2 [email protected], 1, 1, 0, 0, 0, 0, 0, [email protected];
    }
    else {
        mes "Hmm? There's nothing to be enchanted!";
        mes "Please come back with just ONE equipment to be enchanted.";
        close;
    }
}
Edited by Mael
Use codebox
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Change This

On 11/17/2021 at 2:22 PM, DEsMOn said:

if (Zeny >= 400000) {

To This

if (Zeny >= 400000 || countitem(7179) >= 1) {

 

Edited by mR L
  • Love 1
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.