Changeset 19 for src/map/atcommand.c

Show
Ignore:
Timestamp:
07/02/08 12:20:18 (17 years ago)
Author:
jinshiro
Message:

Now Compiles with Cygwin GCC

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/map/atcommand.c

    r5 r19  
    12131213                if (sd->disguise) 
    12141214                        status_set_viewdata(&sd->bl, sd->disguise); 
    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 
    12201218        } else { 
    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 
    12261222        } 
    12271223        clif_changeoption(&sd->bl); 
     
    12671263                        { "supernovice",        23 }, 
    12681264                        { "gunslinger", 24 }, 
    1269                         { "gunner",     24 }, 
    1270                         { "ninja",      25 }, 
    1271                         //Begin custom Job (blackmagic) 
    12721265                        { "adept",      30 },//New job classes [Brainstorm] 
    12731266                        { "necromancer",        31 }, 
    12741267                        { "necro",      31 }, 
    12751268                        { "warlock",    32 }, 
    1276                         //End Custom Job 
     1269                        { "gunner",     24 }, 
     1270                        { "ninja",      25 }, 
    12771271                        { "high novice",        4001 }, 
    12781272                        { "swordsman high",     4002 }, 
     
    43784372        if (map[m_id].flag.guildlock) 
    43794373                strcat(atcmd_output, "GuildLock | "); 
    4380         if (map[m_id].flag.hostile) 
    4381         strcat(atcmd_output, "Hostile | "); 
    43824374        clif_displaymessage(fd, atcmd_output); 
    43834375 
     
    78227814        return 0; 
    78237815} 
    7824 //Begin Custom Jobs (black magic) 
    78257816//@showsummon [Brainstorm] 
    78267817int atcommand_showsummon(const int fd, struct map_session_data* sd, const char* command, const char* message) 
     
    78337824 
    78347825        sd->state.showsummon = 1; 
    7835         clif_displaymessage(fd, "Summon Stats is now shown."); 
    7836         return 0; 
    7837 } 
    7838 //End Custom Jobs 
     7826        clif_displaymessage(fd, "Summon Stats are now shown."); 
     7827        return 0; 
     7828} 
     7829 
     7830 
    78397831/*========================================== 
    78407832 * Barricade Build 
     
    83048296} 
    83058297 
    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 } 
    83508298/*========================================== 
    83518299 * atcommand_info[] structure definition 
     
    86438591        { "barricade",         60,     atcommand_barricade }, 
    86448592        { "killbarricade",     60,     atcommand_barricade_destroy }, 
    8645         //Bwgin Custom Jobs (blackmagic) 
    86468593        //Vanaheim Commands 
    86478594        { "showsummon",  0, atcommand_showsummon}, //Brainstorm 
    8648         //End Custom Jobs 
    8649         { "god",                                60,             atcommand_god }, 
    8650         { "demon",                              60,             atcommand_demon }, 
    86518595}; 
    86528596