Jump to content
  • 0

class suit help


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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:
    .@eac = eaclass();
    .@to_class = roclass(.@eac|EAJL_THIRD);
    if(.@to_class >= 0)
        changebase .@to_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

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

secondclass:

    .@eac = eaclass();
    if(Upper)
        .@to_class = roclass(.@eac&EAJ_UPPERMASK);
    else
        .@to_class = roclass(.@eac|JOBL_2_1);
    if(.@to_class >= 0)
        changebase .@to_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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

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:
    .@eac = eaclass();
    if(.@eac == 10){
        .@to_class = (Sex? 4211:4212);
    } else
        if(.@eac == 9) .@to_class = 4215;
    else
    .@to_class = roclass(.@eac|EAJL_THIRD);
    if(.@to_class >= 0)
        changebase .@to_class;
    else
        mes "[Suit Provider]", "I'm sorry, but your class is not supported.";
    close;

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

secondclass:

    .@eac = eaclass();
    if(Upper)
        .@to_class = roclass(.@eac&EAJ_UPPERMASK);
    else
        .@to_class = roclass(.@eac|JOBL_2_1);
    if(.@to_class >= 0)
        changebase .@to_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

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  11/16/14
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

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

Spoiler

    if(BaseJob == Job_Blacksmith){ .@to_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ .@to_class = 4107; } // here
    if(.@to_class >= 0)
        changebase .@to_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

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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){ .@to_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ .@to_class = 4107; } // here
    if(.@to_class >= 0)
        changebase .@to_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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

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){ .@to_class = 4100; } // here

if(BaseJob == Job_Alchemist){ .@to_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

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

f(BaseJob == Job_Blacksmith){ .@to_class = 4100; } // here

if(BaseJob == Job_Alchemist){ .@to_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:
    .@eac = eaclass();
    .@to_class = roclass(.@eac|EAJL_THIRD|EAJL_BABY);
    if(.@to_class >= 0)
        changebase .@to_class;

f(BaseJob == Job_Blacksmith){ .@to_class = 4100; } // here

if(BaseJob == Job_Alchemist){ .@to_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){ .@to_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ .@to_class = 4107; } // here
    if(.@to_class >= 0)
        changebase .@to_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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   10
  • Joined:  08/02/18
  • Last Seen:  

4 hours ago, IsabelaFernandez said:
  Hide contents

babythirdclass:
    .@eac = eaclass();
    .@to_class = roclass(.@eac|EAJL_THIRD|EAJL_BABY);
    if(.@to_class >= 0)
        changebase .@to_class;

f(BaseJob == Job_Blacksmith){ .@to_class = 4100; } // here

if(BaseJob == Job_Alchemist){ .@to_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){ .@to_class = 4100; } // here
    if(BaseJob == Job_Alchemist){ .@to_class = 4107; } // here
    if(.@to_class >= 0)
        changebase .@to_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...