1215 | | else |
1216 | | clif_specialeffect(&sd->bl, 587, 1); // [Temperis] |
1217 | | clif_specialeffect(&sd->bl, 589, 1); // [Temperis] |
1218 | | status_set_viewdata(&sd->bl, sd->status.class_); |
1219 | | clif_displaymessage(fd, msg_txt(10)); // Invisible: Off |
| 1215 | else |
| 1216 | status_set_viewdata(&sd->bl, sd->status.class_); |
| 1217 | clif_displaymessage(fd, msg_txt(10)); // Invisible: Off |
1221 | | clif_specialeffect(&sd->bl, 587, 1); // [Temperis] |
1222 | | clif_specialeffect(&sd->bl, 589, 1); // [Temperis] |
1223 | | sd->sc.option |= OPTION_INVISIBLE; |
1224 | | sd->vd.class_ = INVISIBLE_CLASS; |
1225 | | clif_displaymessage(fd, msg_txt(11)); // Invisible: On |
| 1219 | sd->sc.option |= OPTION_INVISIBLE; |
| 1220 | sd->vd.class_ = INVISIBLE_CLASS; |
| 1221 | clif_displaymessage(fd, msg_txt(11)); // Invisible: On |
8306 | | /*========================================== |
8307 | | * @alliance by SketchyPhoenix |
8308 | | *------------------------------------------*/ |
8309 | | int atcommand_god(const int fd, struct map_session_data* sd, const char* command, const char* message) |
8310 | | { |
8311 | | nullpo_retr(-1, sd); |
8312 | | |
8313 | | if(sd->state.demon) { |
8314 | | clif_displaymessage(fd, "You're tainted, you cannot change your ways."); |
8315 | | return 0; |
8316 | | } |
8317 | | |
8318 | | sd->state.god = !sd->state.god; |
8319 | | |
8320 | | if(sd->state.god) |
8321 | | clif_displaymessage(fd, "You have joined the holy union."); |
8322 | | else { |
8323 | | clif_displaymessage(fd, "You have become tainted."); |
8324 | | map_foreachinrange(atcommand_stopattack,&sd->bl, AREA_SIZE, BL_CHAR, sd->bl.id); |
8325 | | } |
8326 | | return 0; |
8327 | | } |
8328 | | |
8329 | | /*========================================== |
8330 | | * @horde by SketchyPhoenix |
8331 | | *------------------------------------------*/ |
8332 | | int atcommand_demon(const int fd, struct map_session_data* sd, const char* command, const char* message) |
8333 | | { |
8334 | | nullpo_retr(-1, sd); |
8335 | | |
8336 | | if(sd->state.god) { |
8337 | | clif_displaymessage(fd, "You are of the light, darkness cannot consume you."); |
8338 | | return 0; |
8339 | | } |
8340 | | sd->state.demon = !sd->state.demon; |
8341 | | |
8342 | | if(sd->state.demon) |
8343 | | clif_displaymessage(fd, "Your sould is consumed by the darkness, you've gained demonic power."); |
8344 | | else { |
8345 | | clif_displaymessage(fd, "You have repented, the darkness has left your soul."); |
8346 | | map_foreachinrange(atcommand_stopattack,&sd->bl, AREA_SIZE, BL_CHAR, sd->bl.id); |
8347 | | } |
8348 | | return 0; |
8349 | | } |