Jump to content
  • 0
DevilSupremeRO

Changelook

Question

i want this to have like an item that is needed to convert your character looks into fourth or 3rd job

guild_vs1,54,54,6    script    Stylist#custom_stylist    2_M_DYEINGER,{
OnTalk:
    setarray [email protected][1],
        getbattleflag("max_cloth_color"),
        getbattleflag("max_hair_style"),
        getbattleflag("max_hair_color");
    setarray [email protected][1],
        LOOK_CLOTHES_COLOR,
        LOOK_HAIR,
        LOOK_HAIR_COLOR;
    mes .npc$;
    mes "Hey ^008aff"+strcharinfo(0)+"^000000. Im a super stylist. Want to try out my services?";
    mes "I can customize your character's appearance in a hand full of ways.";
    next;
    set [email protected], select(.bcor$+"Cloth color:"+.bcor$+"Hairstyle:"+.bcor$+"Hair color:"+.bcor$+"Dress Room");
    if([email protected] == 4){
        callfunc "F_DRESSROOM";
        close;
    }
    if([email protected] == 1){
    if (( getlook(LOOK_BODY2) == 5 ) || ( getlook(LOOK_BODY2) == 2 ) || ( getlook(LOOK_BODY2) == 3 ) || ( getlook(LOOK_BODY2) == 4 )) {
        setlook    LOOK_CLOTHES_COLOR,0;
        mes .npc$;
        mes "Cloathes color not available for Body Custom.";
        close;
        }
    }
    if(Class == Job_Summoner){
    setarray [email protected][1],
        3,//max_cloth_color
        10,//max_hair_style
        8;//max_hair_color
    }else{
    setarray [email protected][1],
        getbattleflag("max_cloth_color"),
        getbattleflag("max_hair_style"),
        getbattleflag("max_hair_color");
            }

    set [email protected], getlook([email protected][[email protected]]);
    set [email protected],1;
    while(1) {
        setlook [email protected][[email protected]], [email protected];
        message strcharinfo(0),"This is style #"[email protected]+".";
        switch(select(.bcor$+"Next (^0055FF"+(([email protected][email protected][[email protected]])[email protected]+1:0)+"^000000):"+.bcor$+"Previous (^0055FF"+(([email protected]!=0)[email protected]:[email protected][[email protected]])+"^000000):"+.bcor$+"Jump to...:"+.rcor$+"Revert to original (^0055FF"[email protected]+"^000000)")){

        case 1:
            set [email protected], (([email protected] != [email protected][[email protected]]) ? [email protected]+1 : 0);
            break;
        case 2:
            set [email protected], (([email protected] != 0) ? [email protected] : [email protected][[email protected]]);
            break;
        case 3:
            message strcharinfo(0),"Choose a style between 1 - "[email protected][[email protected]]+".";
            input [email protected],0,[email protected][[email protected]];
            if ([email protected])
                set [email protected], rand(1,[email protected][[email protected]]);
            break;
        case 4:
            set [email protected], [email protected];
            setlook [email protected][[email protected]], [email protected];
            break;
        }
    }

OnInit:
    .npc$ = "^FF7F00[ Super Stylist ]^000000";        // Name of NPC;
    .bcor$ = "^008aff[>]^000000 ";                // Option Button Symbol;
    .rcor$ = "^ff0000[>]^000000 ";                // Cancel button symbol;
    end;
    }

 

Edited by Mael
Use codebox
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.