yuhsing

Untitled

Aug 23rd, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.14 KB | None | 0 0
  1.  
  2. /*
  3. // add this into your db/mob_db2.txt
  4.  
  5. 2990,SIROMA,Ice Siroma,Ice Siroma,98,11910,1,1827,1369,1,389,489,64,38,83,43,50,70,80,60,10,12,0,0,61,0x83,180,432,648,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  6. 2991,RAYDRIC,Ice Raydric,Ice Raydric,115,18408,1,2770,2076,1,572,668,89,15,129,87,55,32,76,27,10,12,2,7,47,0x3095,150,824,780,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  7. 2992,SEYREN,Ice Lord Knight Seyren,Ice Lord Knight Seyren,160,4680000,1,4642560,3481920,1,4290,6632,567,155,303,165,181,110,178,66,10,12,1,7,83,0x37B5,100,76,384,288,2321280,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  8. 2993,HARWORD,Ice Whitesmith Harword,Ice Whitesmith Howard,160,6750000,1,3555000,2664000,1,3500,4965,301,106,275,148,156,72,177,60,10,12,1,7,82,0x37B5,100,76,384,288,1777500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  9. 2994,SHECIL,Ice Sniper Shecil,Ice Sniper Cecil,160,4140000,1,4106880,3080160,14,2770,4320,178,135,176,258,155,132,309,95,10,12,1,7,84,0x37B5,100,76,384,288,2053440,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  10. 2995,KATRINN,Ice High Wizard Katrinn,Ice High Wizard Kathryne,160,4500000,1,3240000,2430000,1,1398,6652,215,456,165,190,142,236,199,93,10,12,1,7,68,0x37B5,150,1152,384,288,1620000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  11. 2996,IFRIT,Ice Ifrit,Ice Ifrit,146,6935000,1,6696000,4860000,3,5375,8764,436,218,180,201,156,190,199,77,10,12,2,0,83,0x37B5,130,212,384,360,3348000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  12. 2997,CRESENTLORD,Cresent Lord,Cresent Lord,160,4230000,1,4185000,3147120,1,4055,5433,445,98,211,181,114,83,225,60,10,12,1,7,85,0x37B5,100,76,384,288,2092500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  13.  
  14. // add this into your db/mob_avail.txt
  15.  
  16. // Ice Dungeon Instance
  17. 2990,1776 // Siroma
  18. 2991,1163 // Raydric
  19. 2992,1646 // Seyren
  20. 2993,1648 // Harword
  21. 2994,1650 // Shecil
  22. 2995,1651 // Katrinn
  23. 2996,1832 // Ifrit
  24. 2997,1647 // Eremes
  25.  
  26.  
  27. // load the script below...
  28.  
  29. */
  30.  
  31.  
  32.  
  33. prontera,155,181,5 script Cresent Lord Nest 757,{
  34. .@party_id = getcharid(1);
  35.  
  36. mes "Required a Party which have at least "+.min_party_member+" Member with at least level "+.min_party_lv+" ~ "+.max_party_lv;
  37.  
  38. if( select( "Enter ^FF0000"+$@instance_name$+"^000000","Cancel",( instance_id() != -1 )?"Destroy":"" ) == 1 ){
  39. if( has_instance( .map$ ) == "" ){
  40.  
  41. if( !.@party_id || !instance_check_party( .@party_id,.min_party_member,.min_party_lv,.max_party_lv ) ) close;
  42.  
  43. if( getcharid(0) != getpartyleader( .@party_id,2 ) ){
  44. mes "I only talk with Party Leader.";
  45. close;
  46. }
  47.  
  48. set .@instance,instance_create( $@instance_name$ ,.@party_id );
  49.  
  50. if( .@instance < 0 ){
  51. switch( .@instance ){
  52. Case -2: mes "Invalid Party ID"; break;
  53. Case -3: mes "Max Instances Exceed."; break;
  54. Case -4: warpparty has_instance( .map$ ),158,13,.@party_id; break;
  55. Case -1:
  56. default:
  57. mes "Failed to Create an Instances.";
  58. }
  59.  
  60. }else{
  61. for( .@i = 0; .@i < .map_size; .@i++ )
  62. if( instance_attachmap( .map$[.@i],.@instance ) == "" ){
  63. mes "Failed, please try again.";
  64. instance_destroy( .@instance );
  65. close;
  66. }
  67. instance_set_timeout ( .alive_timeout * 60 ),( .idle_timeout * 60 ),.@instance;
  68. instance_init .@instance;
  69. instance_attach .@instance;
  70. warpparty has_instance( .map$ ),158,13,.@party_id;
  71. donpcevent instance_npcname( "CLN_floor#0",instance_id() )+"::OnInstanceInit";
  72. disablenpc instance_npcname( "CLN_floor#1",instance_id() );
  73. disablenpc instance_npcname( "CLN_floor#2",instance_id() );
  74. end;
  75. }
  76.  
  77. }else{
  78. warp has_instance( .map$ ),158,13;
  79. }
  80. }else if( @menu == 3 ){
  81. instance_destroy( instance_id() );
  82. mes "Destroyed.";
  83. }
  84. close;
  85.  
  86. OnInit:
  87. // 3 instances maps of the ice dungeon.
  88. setarray .map$,
  89. "1@iced",
  90. "2@iced",
  91. "3@iced";
  92.  
  93. // name of the instance
  94. $@instance_name$ = strnpcinfo(0);
  95.  
  96. // party setting
  97. .min_party_member = 1;
  98. .min_party_lv = 90;
  99. .max_party_lv = 150;
  100.  
  101. // instance timeout and duration
  102. .alive_timeout = 60;
  103. .idle_timeout = 1;
  104.  
  105.  
  106. .map_size = getarraysize( .map$ );
  107. for( .@i = 0; .@i < .map_size; .@i++ ){
  108. setmapflagnosave .map$[.@i],"prontera",155,181;
  109. setmapflag .map$[.@i],mf_nocommand,90;
  110. }
  111. end;
  112.  
  113. }
  114.  
  115. 1@iced,147,162,4 script CLN_floor#0 45,2,2,{
  116. end;
  117.  
  118. OnTouch_:
  119. .@mob_count = mobcount( .map$,"all" );
  120. if( !.@mob_count ){
  121. warp has_instance( getvariableofnpc( .map$[ atoi( strnpcinfo(2) )+1 ],$@instance_name$ ) ),150,278;
  122. }
  123. end;
  124.  
  125. OnInstanceInit:
  126. .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
  127. .npc_name$ = strnpcinfo(0);
  128. hideonnpc instance_npcname( .npc_name$, instance_id() );
  129.  
  130. monster .map$,0,0,"--ja--",2990,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2990";
  131. monster .map$,0,0,"--ja--",2992,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2992";
  132. monster .map$,0,0,"--ja--",2993,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2993";
  133. monster .map$,0,0,"--ja--",2994,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2994";
  134. monster .map$,0,0,"--ja--",2995,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2995";
  135. sleep 3000;
  136. instance_announce -1,"Kill all the monsters and proceed to next level.",bc_map|bc_blue;
  137. end;
  138.  
  139. OnMyMobDead2990: // reward drop by Siroma
  140. setarray .@drop_item,607;
  141. setarray .@drop_qty,1;
  142. goto OnMobLeft;
  143.  
  144. OnMyMobDead2992: // reward drop by Seyren ( drop 1 randomly )
  145. setarray .@drop_item,607,608,609,610;
  146. setarray .@drop_qty,1,2,3,4;
  147. goto OnMobLeft;
  148.  
  149. OnMyMobDead2993: // reward drop by Harword ( drop 1 randomly )
  150. setarray .@drop_item,607,608,609,610;
  151. setarray .@drop_qty,1,2,3,4;
  152. goto OnMobLeft;
  153.  
  154. OnMyMobDead2994: // reward drop by Shecil ( drop 1 randomly )
  155. setarray .@drop_item,607,608,609,610;
  156. setarray .@drop_qty,1,2,3,4;
  157. goto OnMobLeft;
  158.  
  159. OnMyMobDead2995: // reward drop by Katrinn ( drop 1 randomly )
  160. setarray .@drop_item,607,608,609,610;
  161. setarray .@drop_qty,1,2,3,4;
  162. goto OnMobLeft;
  163.  
  164. OnMobLeft:
  165. .@drop_item_index = rand( getarraysize( .@drop_item ) );
  166. getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
  167.  
  168. .@mob_count = mobcount( .map$,"all" );
  169. if( .@mob_count ){
  170. instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
  171. }else{
  172. instance_announce -1,"All monsters cleared, proceed to next level.",bc_map|bc_blue;
  173. hideoffnpc instance_npcname( .npc_name$,instance_id() );
  174. enablenpc instance_npcname( "CLN_floor#1",instance_id() );
  175. donpcevent instance_npcname( "CLN_floor#1",instance_id() )+"::OnInstanceInit";
  176. }
  177. end;
  178. }
  179.  
  180.  
  181. 2@iced,151,151,4 script CLN_floor#1 45,2,2,{
  182. end;
  183.  
  184. OnTouch_:
  185. .@mob_count = mobcount( .map$,"all" );
  186. if( !.@mob_count ){
  187. warp has_instance( getvariableofnpc( .map$[ atoi( strnpcinfo(2) )+1 ],$@instance_name$ ) ),148,35;
  188. }
  189. end;
  190.  
  191. OnInstanceInit:
  192. .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
  193. .npc_name$ = strnpcinfo(0);
  194. hideonnpc instance_npcname( .npc_name$,instance_id() );
  195.  
  196. monster .map$,0,0,"--ja--",2991,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2991";
  197. sleep 3000;
  198. instance_announce -1,"Kill all the monsters and proceed to next level.",bc_map|bc_blue;
  199. end;
  200.  
  201. OnMyMobDead2991: // reward drop by Raydric
  202. setarray .@drop_item,607;
  203. setarray .@drop_qty,1;
  204. goto OnMobLeft;
  205.  
  206. OnMobLeft:
  207. .@drop_item_index = rand( getarraysize( .@drop_item ) );
  208. getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
  209.  
  210. .@mob_count = mobcount( .map$,"all" );
  211. if( .@mob_count ){
  212. instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
  213. }else{
  214. monster .map$,151,151,"--ja--",2996,1,instance_npcname( .npc_name$,instance_id() )+"::OnBossDead";
  215. instance_announce -1,"Boss Ifrit appeared.",bc_map|bc_blue;
  216. }
  217. end;
  218.  
  219. OnBossDead:
  220. // reward drop by boss ifrit ( drop 1 randomly )
  221. setarray .@drop_item,607,608,609,610;
  222. setarray .@drop_qty,1,2,3,4;
  223.  
  224. .@drop_item_index = rand( getarraysize( .@drop_item ) );
  225. getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
  226.  
  227. .@mob_count = mobcount( .map$,"all" );
  228. if( !.@mob_count ){
  229. instance_announce -1,"All monsters cleared, proceed to next level.",bc_map|bc_blue;
  230. hideoffnpc instance_npcname( .npc_name$,instance_id() );
  231. enablenpc instance_npcname( "CLN_floor#2",instance_id() );
  232. donpcevent instance_npcname( "CLN_floor#2",instance_id() )+"::OnInstanceInit";
  233. }
  234. end;
  235. }
  236.  
  237.  
  238. 3@iced,150,136,4 script CLN_floor#2 45,2,2,{
  239. end;
  240.  
  241. OnTouch_:
  242. .@mob_count = mobcount( .map$,"all" );
  243. if( !.@mob_count ){
  244. warpparty "prontera",155,181,getcharid(1);
  245. sleep2 1000;
  246. instance_destroy( instance_id() );
  247. }
  248. end;
  249.  
  250. OnInstanceInit:
  251. .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
  252. .npc_name$ = strnpcinfo(0);
  253. hideonnpc instance_npcname( .npc_name$,instance_id() );
  254.  
  255. monster .map$,0,0,"--ja--",2990,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2990";
  256. monster .map$,0,0,"--ja--",2992,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2992";
  257. monster .map$,0,0,"--ja--",2993,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2993";
  258. monster .map$,0,0,"--ja--",2994,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2994";
  259. monster .map$,0,0,"--ja--",2995,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2995";
  260. sleep 3000;
  261. instance_announce -1,"Kill all the monsters and lure out the Cresent Lord.",bc_map|bc_blue;
  262. end;
  263.  
  264. OnMyMobDead2990: // reward drop by Siroma
  265. setarray .@drop_item,607;
  266. setarray .@drop_qty,1;
  267. goto OnMobLeft;
  268.  
  269. OnMyMobDead2992: // reward drop by Seyren ( drop 1 randomly )
  270. setarray .@drop_item,607,608,609,610;
  271. setarray .@drop_qty,1,2,3,4;
  272. goto OnMobLeft;
  273.  
  274. OnMyMobDead2993: // reward drop by Harword ( drop 1 randomly )
  275. setarray .@drop_item,607,608,609,610;
  276. setarray .@drop_qty,1,2,3,4;
  277. goto OnMobLeft;
  278.  
  279. OnMyMobDead2994: // reward drop by Shecil ( drop 1 randomly )
  280. setarray .@drop_item,607,608,609,610;
  281. setarray .@drop_qty,1,2,3,4;
  282. goto OnMobLeft;
  283.  
  284. OnMyMobDead2995: // reward drop by Katrinn ( drop 1 randomly )
  285. setarray .@drop_item,607,608,609,610;
  286. setarray .@drop_qty,1,2,3,4;
  287. goto OnMobLeft;
  288.  
  289. OnMobLeft:
  290. .@drop_item_size = getarraysize( .@drop_item );
  291. getitem .@drop_item[ rand( .@drop_item_size ) ],1;
  292.  
  293. .@mob_count = mobcount( .map$,"all" );
  294. if( .@mob_count ){
  295. instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
  296. }else{
  297. instance_announce -1,"Cresent Lord appeared at the center of the dungeon ....",bc_map|bc_blue;
  298. monster .map$,150,129,"--ja--",2997,1,instance_npcname( .npc_name$,instance_id() )+"::OnBossDead";
  299. }
  300. end;
  301.  
  302. OnBossDead:
  303. // reward drop by boss eremes ( drop 1 randomly )
  304. setarray .@drop_item,607,608,609,610;
  305. setarray .@drop_qty,1,2,3,4;
  306.  
  307. .@drop_item_index = rand( getarraysize( .@drop_item ) );
  308. getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
  309.  
  310. .@mob_count = mobcount( .map$,"all" );
  311. if( !.@mob_count ){
  312. announce "Congratulation, team "+getpartyname( getcharid(1) )+" defeated the Cresent Lord.",0;
  313. hideoffnpc instance_npcname( .npc_name$,instance_id() );
  314. }
  315. end;
  316.  
  317. }
Advertisement
Add Comment
Please, Sign In to add comment