Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.01 KB | None | 0 0
  1. void do_shakkahou( CHAR_DATA * ch, char *argument )
  2. {
  3. CHAR_DATA *victim;
  4.  
  5. if( IS_NPC( ch ) && IS_AFFECTED( ch, AFF_CHARM ) )
  6. {
  7. send_to_char( "You can't concentrate enough for that.\n\r", ch );
  8. return;
  9. }
  10. if( !IS_NPC( ch ) && ch->exp < skill_table[gsn_shakkahou]->skill_level[ch->class] )
  11. {
  12. send_to_char( "You better leave the martial arts to fighters.\n\r", ch );
  13. return;
  14. }
  15.  
  16. if( ( victim = who_fighting( ch ) ) == NULL )
  17. {
  18. send_to_char( "You aren't fighting anyone.\n\r", ch );
  19. return;
  20. }
  21.  
  22. if( !IS_NPC( ch ) && ch->mana < skill_table[gsn_shakkahou]->min_mana )
  23. {
  24. send_to_char( "You don't have enough energy.\n\r", ch );
  25. return;
  26. }
  27. if( ch->focus < skill_table[gsn_shakkahou]->focus )
  28. {
  29. send_to_char( "You need to focus more.\n\r", ch );
  30. return;
  31. }
  32. else
  33. ch->focus -= skill_table[gsn_shakkahou]->focus;
  34.  
  35. WAIT_STATE( ch, skill_table[gsn_shakkahou]->beats );
  36.  
  37. if( !is_android_h( ch ) )
  38. ch->mana -= skill_table[gsn_shakkahou]->min_mana;
  39.  
  40. if( can_use_skill( ch, number_percent( ), gsn_shakkahou ) )
  41. {
  42. act( AT_RED, "Closing your eyes you begin to chant 'Open, oh, flames of hell and begin", ch, NULL, victim, TO_CHAR );
  43. act( AT_RED, "to spin around my body. Enhance my power; help me dispose of my foe! Art", ch, NULL, victim, TO_CHAR );
  44. act( AT_RED, "of the demon! Skill 21! Errupt! ' You toss your hand out and the aura", ch, NULL, victim, TO_CHAR );
  45. act( AT_RED, "around your body explodes into that of a red flame the ground begins to", ch, NULL, victim, TO_CHAR );
  46. act( AT_RED, "rumble with energy. Suddenly a spiraling red ball forms in your palm.", ch, NULL, victim, TO_CHAR );
  47. act( AT_RED, "Tossing your arm out the ball begins to glow. Your eyes begin to nerrow", ch, NULL, victim, TO_CHAR );
  48. act( AT_RED, "upon your enemy. The blast ejects as a red beam crashing directly into $N.", ch, NULL, victim, TO_CHAR );
  49.  
  50. act( AT_RED, "$n closes $s eyes and begins to chant 'Open, oh, flames of hell and begin", ch, NULL, victim, TO_NOTVICT );
  51. act( AT_RED, "to spin around my body. Enhance my power; help me dispose of my foe! Art", ch, NULL, victim,
  52. TO_NOTVICT );
  53. act( AT_RED, "of the demon! Skill 21! Errupt!' $n toss $s hand out and the aura", ch, NULL, victim, TO_NOTVICT );
  54. act( AT_RED, "around their body explodes into that of a red flame the ground begins to", ch, NULL, victim, TO_NOTVICT );
  55. act( AT_RED, "rumble with energy. Suddenly a spiraling red ball forms in $s palm. ", ch, NULL, victim, TO_NOTVICT );
  56. act( AT_RED, "Tossing their arm out the ball begins to glow. $n's eyes begin to nerrow", ch, NULL, victim, TO_NOTVICT );
  57. act( AT_RED, "upon their enemy. The blast ejects as a red beam crashing directly into $N.", ch, NULL, victim,
  58. TO_NOTVICT );
  59.  
  60. act( AT_RED, "$n closes $s eyes and begins to chant 'Open, oh, flames of hell and begin", ch, NULL, victim, TO_VICT );
  61. act( AT_RED, "to spin around my body. Enhance my power; help me dispose of my foe! Art", ch, NULL, victim, TO_VICT );
  62. act( AT_RED, "of the demon! Skill 21! Errupt!' $n toss $s hand out and the aura", ch, NULL, victim, TO_VICT );
  63. act( AT_RED, "around their body explodes into that of a red flame the ground begins to", ch, NULL, victim, TO_VICT );
  64. act( AT_RED, "rumble with energy. Suddenly a spiraling red ball forms in $s palm. ", ch, NULL, victim, TO_VICT );
  65. act( AT_RED, "Tossing their arm out the ball begins to glow. $n's eyes begin to nerrow", ch, NULL, victim, TO_VICT );
  66. act( AT_RED, "upon you. The blast ejects as a red beam crashing directly into you.", ch, NULL, victim, TO_VICT );
  67.  
  68. learn_from_success( ch, gsn_shakkahou );
  69. global_retcode = damage( ch, victim, ( get_attmod( ch, victim ) * number_range( 8, 12 ) ), gsn_shakkahou );
  70. }
  71. else
  72. {
  73. act( AT_RED, "Chanting franticly you mess up the wording, causing your tounge to slip and your beam to miss your enemy.",
  74. ch, NULL, victim, TO_CHAR );
  75. act( AT_RED, "Chanting franticly $n mess up the wording, causing their tounge to slip and the red beam to miss you.", ch,
  76. NULL, victim, TO_VICT );
  77. act( AT_RED, "Chanting franticly $n mess up the wording, causing their tounge to slip and the red beam to miss $N.", ch,
  78. NULL, victim, TO_NOTVICT );
  79. learn_from_failure( ch, gsn_shakkahou );
  80. global_retcode = damage( ch, victim, 0, gsn_shakkahou );
  81. }
  82. return;
  83. }
  84. void do_raizou( CHAR_DATA * ch, char *argument )
  85. {
  86. CHAR_DATA *victim;
  87.  
  88. if( IS_NPC( ch ) && IS_AFFECTED( ch, AFF_CHARM ) )
  89. {
  90. send_to_char( "You can't concentrate enough for that.\n\r", ch );
  91. return;
  92. }
  93. if( !IS_NPC( ch ) && ch->exp < skill_table[gsn_raizou]->skill_level[ch->class] )
  94. {
  95. send_to_char( "You better leave the martial arts to fighters.\n\r", ch );
  96. return;
  97. }
  98.  
  99. if( ( victim = who_fighting( ch ) ) == NULL )
  100. {
  101. send_to_char( "You aren't fighting anyone.\n\r", ch );
  102. return;
  103. }
  104.  
  105. if( !IS_NPC( ch ) && ch->mana < skill_table[gsn_raizou]->min_mana )
  106. {
  107. send_to_char( "You don't have enough energy.\n\r", ch );
  108. return;
  109. }
  110. if( ch->focus < skill_table[gsn_raizou]->focus )
  111. {
  112. send_to_char( "You need to focus more.\n\r", ch );
  113. return;
  114. }
  115. else
  116. ch->focus -= skill_table[gsn_raizou]->focus;
  117.  
  118. WAIT_STATE( ch, skill_table[gsn_raizou]->beats );
  119.  
  120. if( !is_android_h( ch ) )
  121. ch->mana -= skill_table[gsn_raizou]->min_mana;
  122.  
  123. if( can_use_skill( ch, number_percent( ), gsn_raizou ) )
  124. {
  125. act( AT_YELLOW, "Closing your eyes you and begins to chant ' Sky, earth, planet, lend me", ch, NULL, victim, TO_CHAR );
  126. act( AT_YELLOW, "the energy to dispose of my foe. Surround me with your most powerful", ch, NULL, victim, TO_CHAR );
  127. act( AT_YELLOW, "element, lightning! Art of the demon! Skill 19! Roar!' You toss your", ch, NULL, victim, TO_CHAR );
  128. act( AT_YELLOW, "hands into the air as clouds surround the area and a storm begins to brew. ", ch, NULL, victim,
  129. TO_CHAR );
  130. act( AT_YELLOW, "Lightning crashes and rain begins to pour. Several flashes of thunder", ch, NULL, victim, TO_CHAR );
  131. act( AT_YELLOW, "crash into the ground scaring it, thunder roars and rocks the air around", ch, NULL, victim, TO_CHAR );
  132. act( AT_YELLOW, "you and $N. One very large strike crashes into you forcing $N to jump", ch, NULL, victim, TO_CHAR );
  133. act( AT_YELLOW, "back. After you reappears you have a ball of lightning in your palm,", ch, NULL, victim, TO_CHAR );
  134. act( AT_YELLOW, "crackling with the element of lightning. You grin wildly as you thrust", ch, NULL, victim, TO_CHAR );
  135. act( AT_YELLOW, "your hand, with the lightning, into the ground. The ground breaks in two", ch, NULL, victim, TO_CHAR );
  136. act( AT_YELLOW, "and you screams 'Raizou Ikazuchi wo utte!!!' from the ground the strike of", ch, NULL, victim,
  137. TO_CHAR );
  138. act( AT_YELLOW, "lightning flys back into the sky through $N's body causing them to scream", ch, NULL, victim, TO_CHAR );
  139. act( AT_YELLOW, "in pain.", ch, NULL, victim, TO_CHAR );
  140.  
  141. act( AT_YELLOW, "$n closes thier eyes and begins to chant 'Sky, earth, planet, lend me", ch, NULL, victim, TO_NOTVICT );
  142. act( AT_YELLOW, "the energy to dispose of my foe. Surround me with your most powerful", ch, NULL, victim, TO_NOTVICT );
  143. act( AT_YELLOW, "element, lightning! Art of the demon! Skill 19! Roar!' $n toss their", ch, NULL, victim,
  144. TO_NOTVICT );
  145. act( AT_YELLOW, "hands into the air as clouds surround the area and a storm begins to brew. ", ch, NULL, victim,
  146. TO_NOTVICT );
  147. act( AT_YELLOW, "Lightning crashes and rain begins to pour. Several flashes of thunder", ch, NULL, victim, TO_NOTVICT );
  148. act( AT_YELLOW, "crash into the ground scaring it, thunder roars and rocks the air around", ch, NULL, victim,
  149. TO_NOTVICT );
  150. act( AT_YELLOW, "the two fighters one very large strike crashes into $n forcing $N to jump", ch, NULL, victim,
  151. TO_NOTVICT );
  152. act( AT_YELLOW, "back. After $n reappears they have a ball of lightning in their palm,", ch, NULL, victim, TO_NOTVICT );
  153. act( AT_YELLOW, "crackling with the element of lightning. $n grins wildly as they thrust", ch, NULL, victim,
  154. TO_NOTVICT );
  155. act( AT_YELLOW, "their hand, with the lightning, into the ground. The ground breaks in two", ch, NULL, victim,
  156. TO_NOTVICT );
  157. act( AT_YELLOW, "and $n screams 'Raizou Ikazuchi wo utte!!!' from the ground the strike of", ch, NULL, victim,
  158. TO_NOTVICT );
  159. act( AT_YELLOW, "lightning flys back into the sky through $N's body ccausing them to scream", ch, NULL, victim,
  160. TO_NOTVICT );
  161. act( AT_YELLOW, "in pain.", ch, NULL, victim, TO_NOTVICT );
  162.  
  163. act( AT_YELLOW, "$n closes their eyes and begins to chant 'Sky, earth, planet, lend me", ch, NULL, victim, TO_VICT );
  164. act( AT_YELLOW, "the energy to dispose of my foe. Surround me with your most powerful", ch, NULL, victim, TO_VICT );
  165. act( AT_YELLOW, "element, lightning! Art of the demon! Skill 19! Roar!' $n toss $s", ch, NULL, victim, TO_VICT );
  166. act( AT_YELLOW, "hands into the air as clouds surround the area and a storm begins to brew. ", ch, NULL, victim,
  167. TO_VICT );
  168. act( AT_YELLOW, "Lightning crashes and rain begins to pour. Several flashes of thunder", ch, NULL, victim, TO_VICT );
  169. act( AT_YELLOW, "crash into the ground scaring it, thunder roars and rocks the air around", ch, NULL, victim, TO_VICT );
  170. act( AT_YELLOW, "$n and yourself. One very large strike crashes into you forcing you to", ch, NULL, victim, TO_VICT );
  171. act( AT_YELLOW, "jump back. After $n reappears $n has a ball of lightning in $s palm,", ch, NULL, victim, TO_VICT );
  172. act( AT_YELLOW, "crackling with the element of lightning. $n grins wildly as they thrust", ch, NULL, victim, TO_VICT );
  173. act( AT_YELLOW, "their hand, with the lightning, into the ground. The ground breaks in two", ch, NULL, victim,
  174. TO_VICT );
  175. act( AT_YELLOW, "and $n screams 'Raizou Ikazuchi wo utte!!!' from the ground the strike of", ch, NULL, victim, TO_VICT );
  176. act( AT_YELLOW, "lightning flys back into the sky through your body causing you to scream", ch, NULL, victim, TO_VICT );
  177. act( AT_YELLOW, "in pain.", ch, NULL, victim, TO_VICT );
  178. learn_from_success( ch, gsn_raizou );
  179. global_retcode = damage( ch, victim, ( get_attmod( ch, victim ) * number_range( 8, 12 ) ), gsn_raizou );
  180. }
  181. else
  182. {
  183. act( AT_RED,
  184. "Chanting franticly you mess up the wording, causing your tounge to slip and your storm to miss your enemy.", ch,
  185. NULL, victim, TO_CHAR );
  186. act( AT_RED, "Chanting franticly $n mess up the wording, causing their tounge to slip and the storm to miss you.", ch,
  187. NULL, victim, TO_VICT );
  188. act( AT_RED, "Chanting franticly $n mess up the wording, causing their tounge to slip and the storm to miss $N.", ch,
  189. NULL, victim, TO_NOTVICT );
  190. learn_from_failure( ch, gsn_raizou );
  191. global_retcode = damage( ch, victim, 0, gsn_raizou );
  192. }
  193. return;
  194. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement