Jump to content
  • 0

@bodystyle to 2nd class


Lullaby

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/06/20
  • Last Seen:  

Hi, guys!
I've been looking for source edit to able transclass costumes...
I want to open up the possibility for the player can choose his bodystyle to 3rd (original) and new 3rd (alternative) 

image.thumb.png.a540013637e54c75b137aefdb2aabd9b.png

image.png.c39ee1b584835c2f3a1b34941acdca03.png

I've added the sprites at costume_1 and costume_2, rename to 2nd class, and made a grf... DATA.INI is reading grf costume before data.grf.
When I use @bodystyle at my server, the command reports that have no costume to 2nd class.

I think the problem is atcommand source, but I don't know how to edit and able 2nd class costume.

Can anyone help me with this edit? Sorry for bad English.
Thank you!

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

This can easily be done thru scripting.
Use this as reference

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/06/20
  • Last Seen:  

10 minutes ago, Start_ said:

I made my costume folders based in this tutorial. When I use bodystyle with 3rd classes, I can change to 3rd alternative, but I want to put this system on 2nd classes
I want to choose Lord Knight sprite to Rune Knight (original) sprite or Rune Knight (alternative) sprite, for example.
My server is only 2nd classes, but I want to put 3rd sprites as costume.
Thanks for comment! ❤️

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

I see, there should be config on src folders (Try to find bodystyle cap). and made it had 2 bodystyle.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/06/20
  • Last Seen:  

12 hours ago, Start_ said:

I see, there should be config on src folders (Try to find bodystyle cap). and made it had 2 bodystyle.

I did it, but the source read bodystyle atcommand only to 3rd, in other words, 2nd classes is not able to use @bodystyle.

I don't know how edit atcommand source to open up the possibility to use 2nd classes bodystyle... ?

Thanks for reply!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

You need to bind an atcommand to call the function:

setlook LOOK_BODY,1;

Or 

setlook LOOK_BODY,2;

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/06/20
  • Last Seen:  

9 minutes ago, iraciz said:

You need to bind an atcommand to call the function:

setlook LOOK_BODY,1;

Or 

setlook LOOK_BODY,2;

 

 

Spoiler

ACMD_FUNC(bodystyle)
{
    int body_style = 0;
    nullpo_retr(-1, sd);

    memset(atcmd_output, '\0', sizeof(atcmd_output));

    if (!(sd->class_&JOBL_THIRD)) {
        clif_displaymessage(fd, msg_txt(sd,740));    // This job has no alternate body styles.
        return -1;
    }

    if (!message || !*message || sscanf(message, "%d", &body_style) < 1) {
        sprintf(atcmd_output, msg_txt(sd,739), MIN_BODY_STYLE, MAX_BODY_STYLE);        // Please enter a body style (usage: @bodystyle <body ID: %d-%d>).
        clif_displaymessage(fd, atcmd_output);
        return -1;
    }

    if (body_style >= MIN_BODY_STYLE && body_style <= MAX_BODY_STYLE) {
        pc_changelook(sd, LOOK_BODY2, body_style);
        clif_displaymessage(fd, msg_txt(sd,36)); // Appearence changed.
    } else {
        clif_displaymessage(fd, msg_txt(sd,37)); // An invalid number was specified.
        return -1;
    }

    return 0;
}

I need to set lookbody in this source? map/atcommand.cpp
I don't know how to do this, I'm newbie with source editting, sorry.

Can you help me?

Thanks for reply!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  04/06/20
  • Last Seen:  

On 4/27/2020 at 4:47 PM, Mabuhay said:

This can easily be done thru scripting.
Use this as reference

 

Thanks for suggestion!

There is a way to include jRO costume to 2nd classes on this NPC?

2nd classes are able to change to first, second or third look classes, but they cannot change to jRO costume.

I've been tried to edit this script, but was unsuccessfully...

This NPC only change look to jRO costume if you are a 3rd class.

Thanks for reply and support! ❤️

 

-- EDIT --

I was trying to change jRO costume classes that were not active on NPC script (Rune Knight, Sura, Sorcerer and Shadow Chaser)...
This NPC is ok to use!

Thanks for help, me! You solved my problem! Amazing! ❤️

 

-- EDIT 2 --

There is a way to add Expanded Classes costume? Rebelion, Oboro, Star Emperor and Soul Reaper...?

Edited by tecapeteca
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Yes, you have to add them as per how the script does it. Please mark my post as best answer so that other ppl who are encountering the same issue would find this easier. Thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  44
  • Reputation:   0
  • Joined:  02/14/22
  • Last Seen:  

On 4/27/2020 at 8:15 AM, Lullaby said:

Hi, guys!
I've been looking for source edit to able transclass costumes...
I want to open up the possibility for the player can choose his bodystyle to 3rd (original) and new 3rd (alternative) 

image.thumb.png.a540013637e54c75b137aefdb2aabd9b.png

image.png.c39ee1b584835c2f3a1b34941acdca03.png

I've added the sprites at costume_1 and costume_2, rename to 2nd class, and made a grf... DATA.INI is reading grf costume before data.grf.
When I use @bodystyle at my server, the command reports that have no costume to 2nd class.

I think the problem is atcommand source, but I don't know how to edit and able 2nd class costume.

Can anyone help me with this edit? Sorry for bad English.
Thank you!

Hi guys this is nice idea. is it solved aldy ?
i have same problem with u, have any solution ?

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...