Jump to content

Recommended Posts

Posted

I have seen the @dance command somewhere here at the forums but now it doesn't support the latest SVN revision of rAthena due to the changes of the structure for player commands.

Here is the update to support the latest SVN revision for rAthena

On your atcommand.c, find the function:

ACMD_FUNC(partyrecall)

Below its closing brace '}'

Add this function

/*==========================================
* @dance by OnNplay
* inspired by Anarchist
* Updated by Kaito_Kid to support the latest rev. for rAthena
* => Special effects with dance style
*------------------------------------------
*/
ACMD_FUNC(dance)
{
  nullpo_retr(-1, sd);
  if (!message || !*message) {
clif_displaymessage(fd, "usage: @dance 1-9");
return -1;
  }
  if ( atoi(message) == 1 ) {
clif_specialeffect(&sd->bl, 413, ALL_CLIENT);
  } else if ( atoi(message) == 2 ) {
clif_specialeffect(&sd->bl, 414, ALL_CLIENT);
  } else if ( atoi(message) == 3 ) {
clif_specialeffect(&sd->bl, 415, ALL_CLIENT);
  } else if ( atoi(message) == 4 ) {
clif_specialeffect(&sd->bl, 426, ALL_CLIENT);
  } else if ( atoi(message) == 5 ) {
clif_specialeffect(&sd->bl, 458, ALL_CLIENT);
  } else if ( atoi(message) == 6 ) {
clif_specialeffect(&sd->bl, 466, ALL_CLIENT);
  } else if ( atoi(message) == 7 ) {
clif_specialeffect(&sd->bl, 501, ALL_CLIENT);
  } else if ( atoi(message) == 8 ) {
clif_specialeffect(&sd->bl, 540, ALL_CLIENT);
  } else if ( atoi(message) == 9 ) {
clif_specialeffect(&sd->bl, 550, ALL_CLIENT);
  }
  return 0;
}

Then find the line

ACMD_DEF2("newmount", new_mount),

and then place this line of code below

ACMD_DEF(dance),

Then recompile your source code. :)

NOTE: I didn't create a diff file cause I don't know how to make one ;P, if someone can then it would be helpful :)

  • Upvote 4
  • Like 1
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...