Advertisement
Guest User

Untitled

a guest
Nov 10th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. guild_vs5,50,50,5 script Stage Game 437,{
  2. // Monster ID / Amount Initiating ( Check db/Mob_db.txt || db/Mob_db2.txt )
  3. setarray .Stage[0],
  4. 1315,40, // Stage 1 + Amount
  5. 1830,30, // Stage 2 + Amount
  6. 1831,35, // Stage 3 + Amount
  7. 1710,30, // Stage 4 + Amount
  8. 1711,30, // etc......
  9. 1833,30, //
  10. 1832,1; // Final Stage ( Max. ~64 Rounds )
  11.  
  12. // Reward ID / Amount Initiating ( Check db/Item_db.txt || db/Item_db2.txt )
  13. setarray .Reward[0],
  14. 20000,2, // Reward 1 + Amount
  15. 20001,2, // Reward 2 + Amount
  16. 20002,2, // etc......
  17. 20003,2, // etc......
  18. 20004,2, // etc......
  19. 20005,2, // etc......
  20. 7179,5; // Last Reward 1 ( Max. ~64 Items )
  21.  
  22. // MapFlags Initiating ( Check db/Cont.txt )
  23. setarray .MapFlags[0],0,1,2,3,4,5,11,13,14,15,22,29,30,31,32,33,34,35,38,41,43,44,47,49;
  24.  
  25. for( set .@mf,0; .@mf < getarraysize( .MapFlags ); set .@mf,.@mf + 1 )
  26. {
  27. setmapflag strcharinfo(3),.MapFlags[.@mf];
  28. }
  29. if( mobcount( strcharinfo(3),"all" ) > 0 || .Level > 0)
  30. {
  31. dispbottom "Just Kill All the Monster to Win the Game...";
  32. end;
  33. }
  34. set .Level,0;
  35. announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC;
  36. monster strcharinfo(3),0,0,"[Slave] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnMobKill";
  37. delwaitingroom;
  38. waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" )+"] Monster",0;
  39. end;
  40.  
  41. OnMobKill:
  42. delwaitingroom;
  43. if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" ) == 0 && .Level < ( getarraysize( .Stage ) - 5 ) )
  44. {
  45. set .Level,.Level + 2;
  46. waitingroom "["+((( getarraysize( .Stage )/2 ) - .Level/2) - 1)+"] Rounds to Go.",0;
  47. for( set .@t,5; .@t > 0; set .@t,.@t - 1 )
  48. {
  49. announce "[Level "+( (.Level/2)+1 )+"] in "+.@t+" Seconds",bc_map,0x4EEE94,0,35;
  50. sleep2 1000;
  51. }
  52. announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC;
  53. monster strcharinfo(3),0,0,"[Slave] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnMobKill";
  54. }
  55. if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" ) == 0 && .Level >= ( getarraysize( .Stage ) - 5 ) )
  56. {
  57. set .Level,.Level + 2;
  58. announce "BOSS Stage",bc_map,0xFF0000,0,90;
  59. specialeffect 563;
  60. sleep2 2000;
  61. for( set .@t,5; .@t > 0; set .@t,.@t - 1 )
  62. {
  63. specialeffect 563;
  64. announce "BOSS STAGE in "+.@t+" Seconds",bc_map,0xFF0000,0,60;
  65. sleep2 1000;
  66. }
  67. announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC;
  68. monster strcharinfo(3),0,0,"[BOSS] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnBossKill";
  69. }
  70. delwaitingroom;
  71. waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::On"+( ( .Level-2 ) > ( getarraysize( .Stage ) - 5 ) ? "BossKill":"MobKill") )+"] Monster",0;
  72. end;
  73.  
  74. OnBossKill:
  75. delwaitingroom;
  76. if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnBossKill" ) > 0 )
  77. {
  78. waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::OnBossKill")+"] Monster",0;
  79. end;
  80. }else{
  81. delwaitingroom;
  82. waitingroom "REWARD TIME",0;
  83. specialeffect 709;
  84. announce "Congratulation to Team [ "+getpartyname( getcharid(1) )+" ] who had just finished the Stage Game. ",0;
  85. getpartymember getcharid(1),1;
  86. getpartymember getcharid(1),2;
  87. set .@Location$,strcharinfo(3);
  88. for ( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
  89. {
  90. if ( isloggedin($@partymemberaid[.@i]) )
  91. {
  92. attachrid $@partymemberaid[.@i];
  93. if( strcharinfo(3) == .@Location$ )
  94. {
  95. unittalk getcharid(3),"Yeehaaa !! We Beat ALL the Monster !!!";
  96. unitemote getcharid(3),e_heh;
  97. specialeffect2 709;
  98. for( set .@a,0; .@a < getarraysize( .Reward ); set .@a,.@a + 2 )
  99. getitem .Reward[.@a],.Reward[.@a+1], $@partymemberaid[.@i];
  100. dispbottom "Gained those items as Reward for Finishing Stage Game";
  101. }
  102. }
  103. }
  104. sleep2 5000;
  105. mapwarp strcharinfo(3),"prontera",155,180;
  106. set .Level,0;
  107. delwaitingroom;
  108. }
  109. OnInit:
  110. waitingroom "Click Me",0;
  111. end;
  112. }
  113.  
  114.  
  115. prontera,160,157,5 script Stage Game#Register 794,{
  116. if (agitcheck()){ mes @header$; mes "War of Emperium is ongoing!"; close;}
  117.  
  118. while(1){
  119. mes "Hello, i am ^FF0000Stage Game Manager^000000. How can i help you ?";
  120. mes "Hello, ^FF0000do not AFK in map.or u will be kicked^000000.";
  121. mes "^0000FFRegistration Status^000000 : "+( getmapusers(.Map$) > 0 ?"^FF0000OFF":"^00FF00ON")+"^000000";
  122. mes "(^FF0000Only Leader can Register^000000)";
  123. mes "";
  124. mes "It is In ^FF0000BETA Test^000000.";
  125. next;
  126. switch(select("^00FF00Stage Game Information^000000",
  127. ( getmapusers(.Map$) > 0 || getcharid(0) != getpartyleader( getcharid(1),2 ) )?"":"^0000FFRegister for Stage Game^000000",
  128. ( getmapusers(.Map$) < 1 || getgmlevel() < 60 )?"":"^FF0000Reset Stage Game^000000")) {
  129.  
  130. Case 1:
  131. mes "^FF0000Stage Game^000000 is a small game that have alot of monster to be kill from round to round.";
  132. mes "With every increase or round you manage to reach, the monster could be stronger than before.";
  133. next;
  134. mes "You could win up some ^0000FFUnique^000000 prize upon you finished the whole ^FF0000Stage Game^000000";
  135. next;
  136. mes "In order to ^0000FFRegister^000000 for ^FF0000Stage Game^000000, all your party member must meet the ^0000FFRequirements^000000";
  137. next;
  138. mes "[ ^00FF00Requirements^000000 ]";
  139. mes "^0000FFBase Level^000000 : "+.Level+" Level";
  140. mes "^0000FFZeny^000000 : "+.Zeny+" Zeny ";
  141. mes "^0000FFParty Members^000000 : "+.PartyMember+" Members";
  142. mes "(^FF0000Level / Zeny only Applied on Leader ^000000 )";
  143. next;
  144. break;
  145. Case 2:
  146. // if( getgmlevel() < 80 ){
  147. // mes "Stage Game is under Debugging Development. Simple Game but Hard ";
  148. // close;
  149. // }
  150. getpartymember getcharid(1),1;
  151. getpartymember getcharid(1),2;
  152. set @Count,0;
  153. for ( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ){
  154. if ( isloggedin($@partymemberaid[.@i]) ){
  155. set @Count,@Count+1;
  156. }
  157. }
  158. if( @Count < .PartyMember || BaseLevel < .Level || Zeny < .Zeny ){
  159. mes "[ ^00FF00Requirements^000000 ]";
  160. mes "^0000FFBase Level^000000 : "+.Level+" Level";
  161. mes "^0000FFZeny^000000 : "+.Zeny+" Zeny ";
  162. mes "^0000FFParty Members^000000 : "+.PartyMember+" Members";
  163. mes "(^FF0000Level / Zeny only Applied on Leader ^000000 )";
  164. close;
  165. }else{
  166. set Zeny, Zeny - .Zeny;
  167. mes "Your party will now be warped into the Destination to start the Game.";
  168. dispbottom "Click on the NPC inside to start the game.";
  169. delwaitingroom "Stage Game";
  170. close2;
  171. announce "Team [ "+getpartyname( getcharid(1) )+"] has joined STAGE GAME.",0;
  172. warpparty .Map$,0,0,getcharid(1);
  173. killmonster .Map$,"All";
  174. set getvariableofnpc(.Level,"Stage Game"),0;
  175. end;
  176. }
  177. Case 3:
  178. mes "The Game has been Reset.";
  179. killmonster .Map$,"All";
  180. mapwarp .Map$,"prontera",155,180;
  181. announce "A GM has RESET the Stage Game, Sorry for the Incovenience.",0;
  182. set getvariableofnpc(.Level,"Stage Game"),0;
  183. delwaitingroom "Stage Game";
  184. next;
  185. break;
  186. }
  187. }
  188. close;
  189.  
  190. OnInit:
  191. waitingroom "Stage Game",0;
  192. OnWhisperGlobal:
  193. set .Level,1;
  194. set .Zeny,0;
  195. set .PartyMember,1;
  196. set .Map$,"guild_vs5";
  197. while(sleep2(1000))
  198. {
  199. delwaitingroom;
  200. waitingroom ( getmapusers(.Map$) > 0 ? " NOT":" " )+" Available",0;
  201. }
  202. end;
  203. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement