Автор: DarkSke: Дата: 07.27.2009
@dance X (by Anarchist)
Спецэффекты в стиле танца. Номера: 1-9
srcmapatcommand.c
ACMD_FUNC(dance); // Anarchist
{ AtCommand_Dance, * *"@dance", * * *1, atcommand_dance }, // Anarchist
В старых сборках ещё добавить:/*==========================================
* @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;
}
srcmapatcommand.h
AtCommand_Dance, // Anarchist
Автор: nomn: Дата: 07.27.2009
/*==========================================
* @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", 0,0, atcommand_dance }, // Anarchist
Автор: DarkSke: Дата: 07.27.2009
/*==========================================
* @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", 0,0, atcommand_dance }, // Anarchist
Автор: nomn: Дата: 07.27.2009
оО нет, на бумажечке написать и просунуть в щель в системном блоке компьютера :horse: :clap_1:
Автор: DarkSke: Дата: 07.27.2009
:DDDD оке....спасибо! :drinks_cheers: :clap_1: