Jump to content

@dance command


KaitoKid

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

is this working for a latest revision?

Edited by Brynner
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

Yes it works for the latest revision.

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

×
×
  • Create New...