Jump to content
  • 0
IsabelaFernandez

class suit help

Question

Hi everyone.
I have a little problem with this script. the baby transformation isn't working on some and the ninja class and the Gunslinger aren't catching either. I would like a solution, thanks.

 

Spoiler

//####################################################
//#                              ™ #
//#   ####### ######  ###   ### ###   ### ###   ###  #
//#   ###    ###  ###  ### ###   ### ###   ### ###   #
//#   #####  ###  ###   ####      ####      #####    #
//#   ##     ###  ###  ### ###   ### ###     ###     #
//#   ##      ######  ###   ### ###   ###   ###      #
//#                                                  #
//####################################################
//v1.0: Allows changing suits to 3rd classes;        #
//v1.1: Added Xmas and Summer suits;                 #
//v1.2: Added support to baby 3rd class suits.       #
//####################################################
que_temsky,49,133,5    script    Class Suits    485,{

OnCommand:

    if(!vip_status(VIP_STATUS_ACTIVE)) {
        message strcharinfo(0),"This service is only avaiaible to VIP players.";
        end;
    }

    mes "[^00FF00Acesso VIP^000000]";
    mes "Então, deseja mudar sua aparência?";
    menu "Mudar para aparência 3rd.",thirdclass,"Mudar para aparência 3rd baby.",babythirdclass,"Second class",secondclass,"Voltar para o normal.",reset;

thirdclass:
    [email protected] = eaclass();
    [email protected]_class = roclass([email protected]|EAJL_THIRD);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

babythirdclass:
    [email protected] = eaclass();
    [email protected]_class = roclass([email protected]|EAJL_THIRD|EAJL_BABY);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

secondclass:

    [email protected] = eaclass();
    if(Upper)
        [email protected]_class = roclass([email protected]&EAJ_UPPERMASK);
    else
        [email protected]_class = roclass([email protected]|JOBL_2_1);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

reset:
    changebase Class;
    close;

miscsuits:
    next;
    mes "[Suit Provider]";
    mes "Which of the suits would you like to use?";
    menu "Xmas suit",xmas,"Summer suit",summer;

xmas:
    changebase 26;
    close;

summer:
    changebase 27;
    close;

OnInit:

    bindatcmd "visual","Class Suits::OnCommand";
    end;

}

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

I didnt quite understand some things, but I believe this is it.

Quote

//####################################################
//#                              ™ #
//#   ####### ######  ###   ### ###   ### ###   ###  #
//#   ###    ###  ###  ### ###   ### ###   ### ###   #
//#   #####  ###  ###   ####      ####      #####    #
//#   ##     ###  ###  ### ###   ### ###     ###     #
//#   ##      ######  ###   ### ###   ###   ###      #
//#                                                  #
//####################################################
//v1.0: Allows changing suits to 3rd classes;        #
//v1.1: Added Xmas and Summer suits;                 #
//v1.2: Added support to baby 3rd class suits.       #
//####################################################
que_temsky,49,133,5    script    Class Suits    485,{

OnCommand:

    if(!vip_status(VIP_STATUS_ACTIVE)) {
        message strcharinfo(0),"This service is only avaiaible to VIP players.";
        end;
    }
    
    mes "[^00FF00Acesso VIP^000000]";
    mes "Então, deseja mudar sua aparência?";
    menu "Mudar para aparência 3rd.",thirdclass,"Mudar para aparência 3rd baby.",babythirdclass,"Second class",secondclass,"Voltar para o normal.",reset;

thirdclass:
    [email protected] = eaclass();
    if([email protected] == 10){
        [email protected]_class = (Sex? 4211:4212);
    } else
        if([email protected] == 9) [email protected]_class = 4215;
    else
    [email protected]_class = roclass([email protected]|EAJL_THIRD);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

babythirdclass:
    [email protected] = eaclass();
    [email protected]_class = roclass([email protected]|EAJL_2_1|EAJL_THIRD|EAJL_BABY);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

secondclass:

    [email protected] = eaclass();
    if(Upper)
        [email protected]_class = roclass([email protected]&EAJ_UPPERMASK);
    else
        [email protected]_class = roclass([email protected]|JOBL_2_1);
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

reset:
    changebase Class;
    close;

miscsuits:
    next;
    mes "[Suit Provider]";
    mes "Which of the suits would you like to use?";
    menu "Xmas suit",xmas,"Summer suit",summer;

xmas:
    changebase 26;
    close;

summer:
    changebase 27;
    close;

OnInit:

    bindatcmd "visual","Class Suits::OnCommand";
    end;

}
 

 

Link to comment
Share on other sites

  • 0
4 hours ago, Mahiro said:

I didnt quite understand some things, but I believe this is it.

 

3rd baby appearance is not working from any class =(

Link to comment
Share on other sites

  • 0

Olha o que o Mahiro fez na third class, e copia isso pra baby. com os ID's corretos pras classes que sex faz diferença.

Link to comment
Share on other sites

  • 0
10 hours ago, IsabelaFernandez said:

3rd baby appearance is not working from any class =(

Be clearer. Which classes exactly are not working correctly. For me it works fine on all.

Link to comment
Share on other sites

  • 0
3 hours ago, Mahiro said:

Be clearer. Which classes exactly are not working correctly. For me it works fine on all.

all. the transformation to 3rd and second classes ok but for the baby none works...

class.png

Link to comment
Share on other sites

  • 0

In this case you need to do similar to the case above:

Spoiler

    if(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

you need to identify the ID of the baby you want and repeat the process.

Edited by Mahiro
Link to comment
Share on other sites

  • 0
On 4/4/2022 at 1:33 PM, ChokituBR said:

Olha o que o Mahiro fez na third class, e copia isso pra baby. com os ID's corretos pras classes que sex faz diferença.

could you give an example of any class for me to copy and apply to all the others?

 

On 4/5/2022 at 5:15 AM, Mahiro said:

In this case you need to do similar to the case above:

  Reveal hidden contents

    if(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

you need to identify the ID of the baby you want and repeat the process.

could you give an example of any class for me to copy and apply to all the others?

Link to comment
Share on other sites

  • 0
13 hours ago, IsabelaFernandez said:

could you give an example of any class for me to copy and apply to all the others?

f(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here

if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here

 

in red job name, and in blue baby 3rd class id.

The line is the same just copy one of them and repeat below until the desired result.

Link to comment
Share on other sites

  • 0
On 4/5/2022 at 11:51 PM, Mahiro said:

f(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here

if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here

 

in red job name, and in blue baby 3rd class id.

The line is the same just copy one of them and repeat below until the desired result.

Spoiler

babythirdclass:
    [email protected] = eaclass();
    [email protected]_class = roclass([email protected]|EAJL_THIRD|EAJL_BABY);
    if([email protected]_class >= 0)
        changebase [email protected]_class;

f(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here

if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here

    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

like this?

 

On 4/5/2022 at 5:15 AM, Mahiro said:

In this case you need to do similar to the case above:

  Hide contents

    if(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

you need to identify the ID of the baby you want and repeat the process.

ok, it worked thanks. but a question for classes that have two names for example Assassin Cross, High Wizard I type without space?

Link to comment
Share on other sites

  • 0
4 hours ago, IsabelaFernandez said:
  Hide contents

babythirdclass:
    [email protected] = eaclass();
    [email protected]_class = roclass([email protected]|EAJL_THIRD|EAJL_BABY);
    if([email protected]_class >= 0)
        changebase [email protected]_class;

f(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here

if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here

    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

like this?

Quote

babythirdclass:
    if(BaseJob == Job_Blacksmith){ [email protected]_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ [email protected]_class = 4107; } // here
    if([email protected]_class >= 0)
        changebase [email protected]_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

 

 

4 hours ago, IsabelaFernandez said:

ok, it worked thanks. but a question for classes that have two names for example Assassin Cross, High Wizard I type without space?

Job_Wizard and Job_Assassin

what comes after is already identified, unless you want to specify then use _.

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.