Advertisement
Guest User

Untitled

a guest
Jun 7th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. /* ================================
  2. *
  3. * src\map\status.c
  4. *
  5. * --------------------------------*/
  6. // -----------------
  7. // FIND ------------
  8. // -----------------
  9. tick = 1000;
  10. }
  11. break;
  12. case SC_HIDING:
  13. val2 = tick/1000;
  14. tick = 1000;
  15. val3 = 0; // unused, previously speed adjustment
  16. val4 = val1+3; //Seconds before SP substraction happen.
  17. break;
  18. // -----------------
  19. // BECOMES ---------
  20. // -----------------
  21. tick = 1000;
  22. }
  23. break;
  24. case SC_HIDING:
  25. //Aura System
  26. if (sd && sd->status.aura1 > 0){
  27. sd->status.aura1 *= -1;
  28. clif_clearunit_area(&sd->bl, 4);
  29. clif_getareachar_char2(sd, &sd->bl);
  30. }
  31. if (sd && sd->status.aura2 > 0){
  32. sd->status.aura2 *= -1;
  33. clif_clearunit_area(&sd->bl, 4);
  34. clif_getareachar_char2(sd, &sd->bl);
  35. }
  36.  
  37. val2 = tick/1000;
  38. tick = 1000;
  39. val3 = 0; // unused, previously speed adjustment
  40. val4 = val1+3; //Seconds before SP substraction happen.
  41. break;
  42.  
  43. // -----------------
  44. // FIND ------------
  45. // -----------------
  46. val4 = val1+3; //Seconds before SP substraction happen.
  47. break;
  48. case SC_CHASEWALK:
  49. val2 = tick>0?tick:10000; //Interval at which SP is drained.
  50. val3 = 35 - 5 * val1; //Speed adjustment.
  51.  
  52. // -----------------
  53. // BECOMES ---------
  54. // -----------------
  55. val4 = val1+3; //Seconds before SP substraction happen.
  56. break;
  57. case SC_CHASEWALK:
  58. //Aura System
  59. if (sd && sd->status.aura1 > 0){
  60. sd->status.aura1 *= -1;
  61. clif_clearunit_area(&sd->bl, 4);
  62. clif_getareachar_char2(sd, &sd->bl);
  63. }
  64. if (sd && sd->status.aura2 > 0){
  65. sd->status.aura2 *= -1;
  66. clif_clearunit_area(&sd->bl, 4);
  67. clif_getareachar_char2(sd, &sd->bl);
  68. }
  69. val2 = tick>0?tick:10000; //Interval at which SP is drained.
  70. val3 = 35 - 5 * val1; //Speed adjustment.
  71.  
  72. // -----------------
  73. // FIND ------------
  74. // -----------------
  75. if (map_flag_gvg(bl->m) || map[bl->m].flag.battleground) val4 *= 5;
  76. break;
  77. case SC_CLOAKING:
  78. if (!sd) //Monsters should be able to walk with no penalties. [Skotlex]
  79. val1 = 10;
  80. val2 = tick>0?tick:60000; //SP consumption rate.
  81. // -----------------
  82. // BECOMES ---------
  83. // -----------------
  84. if (map_flag_gvg(bl->m) || map[bl->m].flag.battleground) val4 *= 5;
  85. break;
  86. case SC_CLOAKING:
  87. //Aura System
  88. if (sd && sd->status.aura1 > 0){
  89. sd->status.aura1 *= -1;
  90. clif_clearunit_area(&sd->bl, 4);
  91. clif_getareachar_char2(sd, &sd->bl);
  92. }
  93. if (sd && sd->status.aura2 > 0){
  94. sd->status.aura2 *= -1;
  95. clif_clearunit_area(&sd->bl, 4);
  96. clif_getareachar_char2(sd, &sd->bl);
  97. }
  98. if (!sd) //Monsters should be able to walk with no penalties. [Skotlex]
  99. val1 = 10;
  100. val2 = tick>0?tick:60000; //SP consumption rate.
  101.  
  102. // -----------------
  103. // FIND ------------
  104. // -----------------
  105. case SC_SIGNUMCRUCIS:
  106. case SC_CHAOS:
  107. sc->opt2 &= ~OPT2_SIGNUMCRUCIS;
  108. break;
  109.  
  110. case SC_HIDING:
  111. sc->option &= ~OPTION_HIDE;
  112. opt_flag|= 2|4; //Check for warp trigger + AoE trigger
  113. break;
  114. case SC_CLOAKING:
  115. case SC_CLOAKINGEXCEED:
  116. case SC__INVISIBILITY:
  117. sc->option &= ~OPTION_CLOAK;
  118. opt_flag|= 2;
  119. break;
  120. case SC_CHASEWALK:
  121. sc->option &= ~(OPTION_CHASEWALK|OPTION_CLOAK);
  122. opt_flag|= 2;
  123. break;
  124. // -----------------
  125. // BECOMES ---------
  126. // -----------------
  127. case SC_SIGNUMCRUCIS:
  128. case SC_CHAOS:
  129. sc->opt2 &= ~OPT2_SIGNUMCRUCIS;
  130. break;
  131.  
  132. case SC_HIDING:
  133. //Aura System
  134. if (sd && sd->status.aura1 < 0){
  135. sd->status.aura1 *= -1;
  136. clif_sendauras1(sd, AREA_WOS);
  137. }
  138. if (sd && sd->status.aura2 < 0){
  139. sd->status.aura2 *= -1;
  140. clif_sendauras2(sd, AREA_WOS);
  141. }
  142. sc->option &= ~OPTION_HIDE;
  143. opt_flag|= 2|4; //Check for warp trigger + AoE trigger
  144. break;
  145. case SC_CLOAKING:
  146. case SC_CLOAKINGEXCEED:
  147. case SC__INVISIBILITY:
  148. //Aura System
  149. if (sd && sd->status.aura1 < 0){
  150. sd->status.aura1 *= -1;
  151. clif_sendauras1(sd, AREA_WOS);
  152. }
  153. if (sd && sd->status.aura2 < 0){
  154. sd->status.aura2 *= -1;
  155. clif_sendauras2(sd, AREA_WOS);
  156. }
  157. sc->option &= ~OPTION_CLOAK;
  158. opt_flag|= 2;
  159. break;
  160. case SC_CHASEWALK:
  161. //Aura System
  162. if (sd && sd->status.aura1 < 0){
  163. sd->status.aura1 *= -1;
  164. clif_sendauras1(sd, AREA_WOS);
  165. }
  166. if (sd && sd->status.aura2 < 0){
  167. sd->status.aura2 *= -1;
  168. clif_sendauras2(sd, AREA_WOS);
  169. }
  170. sc->option &= ~(OPTION_CHASEWALK|OPTION_CLOAK);
  171. opt_flag|= 2;
  172. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement