Автор: ZzAQ: Дата: 06.10.2008
src\map\atcommand.c
/*==========================================
* @dance X by Anarchist
* => Special effects with dance style
*------------------------------------------
*/
int atcommand_dance(
const int fd, struct map_session_data* sd,
const char* command, const char* message)
{
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, 0);
} else if ( atoi(message) == 2 ) {
clif_specialeffect(&sd->bl, 414, 0);
} else if ( atoi(message) == 3 ) {
clif_specialeffect(&sd->bl, 415, 0);
} else if ( atoi(message) == 4 ) {
clif_specialeffect(&sd->bl, 426, 0);
} else if ( atoi(message) == 5 ) {
clif_specialeffect(&sd->bl, 458, 0);
} else if ( atoi(message) == 6 ) {
clif_specialeffect(&sd->bl, 466, 0);
} else if ( atoi(message) == 7 ) {
clif_specialeffect(&sd->bl, 501, 0);
} else if ( atoi(message) == 8 ) {
clif_specialeffect(&sd->bl, 540, 0);
} else if ( atoi(message) == 9 ) {
clif_specialeffect(&sd->bl, 550, 0);
}
return 0;
}
{ "@dance", 1, atcommand_dance }, // Anarchist
Автор: : Дата: 01.01.1970