KaitoKid Posted March 30, 2012 Posted March 30, 2012 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 4 1 Quote
Brynner Posted June 24, 2012 Posted June 24, 2012 (edited) is this working for a latest revision? Edited June 24, 2012 by Brynner Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.