Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ================================
- *
- * src\map\status.c
- *
- * --------------------------------*/
- // -----------------
- // FIND ------------
- // -----------------
- tick = 1000;
- }
- break;
- case SC_HIDING:
- val2 = tick/1000;
- tick = 1000;
- val3 = 0; // unused, previously speed adjustment
- val4 = val1+3; //Seconds before SP substraction happen.
- break;
- // -----------------
- // BECOMES ---------
- // -----------------
- tick = 1000;
- }
- break;
- case SC_HIDING:
- //Aura System
- if (sd && sd->status.aura1 > 0){
- sd->status.aura1 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- if (sd && sd->status.aura2 > 0){
- sd->status.aura2 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- val2 = tick/1000;
- tick = 1000;
- val3 = 0; // unused, previously speed adjustment
- val4 = val1+3; //Seconds before SP substraction happen.
- break;
- // -----------------
- // FIND ------------
- // -----------------
- val4 = val1+3; //Seconds before SP substraction happen.
- break;
- case SC_CHASEWALK:
- val2 = tick>0?tick:10000; //Interval at which SP is drained.
- val3 = 35 - 5 * val1; //Speed adjustment.
- // -----------------
- // BECOMES ---------
- // -----------------
- val4 = val1+3; //Seconds before SP substraction happen.
- break;
- case SC_CHASEWALK:
- //Aura System
- if (sd && sd->status.aura1 > 0){
- sd->status.aura1 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- if (sd && sd->status.aura2 > 0){
- sd->status.aura2 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- val2 = tick>0?tick:10000; //Interval at which SP is drained.
- val3 = 35 - 5 * val1; //Speed adjustment.
- // -----------------
- // FIND ------------
- // -----------------
- if (map_flag_gvg(bl->m) || map[bl->m].flag.battleground) val4 *= 5;
- break;
- case SC_CLOAKING:
- if (!sd) //Monsters should be able to walk with no penalties. [Skotlex]
- val1 = 10;
- val2 = tick>0?tick:60000; //SP consumption rate.
- // -----------------
- // BECOMES ---------
- // -----------------
- if (map_flag_gvg(bl->m) || map[bl->m].flag.battleground) val4 *= 5;
- break;
- case SC_CLOAKING:
- //Aura System
- if (sd && sd->status.aura1 > 0){
- sd->status.aura1 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- if (sd && sd->status.aura2 > 0){
- sd->status.aura2 *= -1;
- clif_clearunit_area(&sd->bl, 4);
- clif_getareachar_char2(sd, &sd->bl);
- }
- if (!sd) //Monsters should be able to walk with no penalties. [Skotlex]
- val1 = 10;
- val2 = tick>0?tick:60000; //SP consumption rate.
- // -----------------
- // FIND ------------
- // -----------------
- case SC_SIGNUMCRUCIS:
- case SC_CHAOS:
- sc->opt2 &= ~OPT2_SIGNUMCRUCIS;
- break;
- case SC_HIDING:
- sc->option &= ~OPTION_HIDE;
- opt_flag|= 2|4; //Check for warp trigger + AoE trigger
- break;
- case SC_CLOAKING:
- case SC_CLOAKINGEXCEED:
- case SC__INVISIBILITY:
- sc->option &= ~OPTION_CLOAK;
- opt_flag|= 2;
- break;
- case SC_CHASEWALK:
- sc->option &= ~(OPTION_CHASEWALK|OPTION_CLOAK);
- opt_flag|= 2;
- break;
- // -----------------
- // BECOMES ---------
- // -----------------
- case SC_SIGNUMCRUCIS:
- case SC_CHAOS:
- sc->opt2 &= ~OPT2_SIGNUMCRUCIS;
- break;
- case SC_HIDING:
- //Aura System
- if (sd && sd->status.aura1 < 0){
- sd->status.aura1 *= -1;
- clif_sendauras1(sd, AREA_WOS);
- }
- if (sd && sd->status.aura2 < 0){
- sd->status.aura2 *= -1;
- clif_sendauras2(sd, AREA_WOS);
- }
- sc->option &= ~OPTION_HIDE;
- opt_flag|= 2|4; //Check for warp trigger + AoE trigger
- break;
- case SC_CLOAKING:
- case SC_CLOAKINGEXCEED:
- case SC__INVISIBILITY:
- //Aura System
- if (sd && sd->status.aura1 < 0){
- sd->status.aura1 *= -1;
- clif_sendauras1(sd, AREA_WOS);
- }
- if (sd && sd->status.aura2 < 0){
- sd->status.aura2 *= -1;
- clif_sendauras2(sd, AREA_WOS);
- }
- sc->option &= ~OPTION_CLOAK;
- opt_flag|= 2;
- break;
- case SC_CHASEWALK:
- //Aura System
- if (sd && sd->status.aura1 < 0){
- sd->status.aura1 *= -1;
- clif_sendauras1(sd, AREA_WOS);
- }
- if (sd && sd->status.aura2 < 0){
- sd->status.aura2 *= -1;
- clif_sendauras2(sd, AREA_WOS);
- }
- sc->option &= ~(OPTION_CHASEWALK|OPTION_CLOAK);
- opt_flag|= 2;
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement