Advertisement
Guest User

Untitled

a guest
Nov 11th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.06 KB | None | 0 0
  1.  
  2. // ==============================================================================
  3.  
  4. // BattleGround System - Flavius TD - Flavius Team Deathmatch
  5.  
  6. // ==============================================================================
  7.  
  8. // By Suke / s4zuk3
  9.  
  10. // ==============================================================================
  11.  
  12. // Registration NPC's
  13.  
  14. // *********************************************************************
  15.  
  16.  
  17. bat_room,151,159,4 script Registration::Fl1R_Guillaume 418,{
  18. end;
  19.  
  20. OnInit:
  21.  
  22. waitingroom "BG DeathMatch",5,"Flavius_BG1::OnGuillaumeJoin",1;
  23.  
  24. end;
  25.  
  26. OnEnterBG:
  27.  
  28. set $@FlaviusBG1_id1, waitingroom2bg("bat_b01",390,10,"Flavius_BG1::OnGuillaumeQuit","");
  29.  
  30. end;
  31.  
  32. }
  33.  
  34.  
  35. bat_room,158,159,4 script Registration::Fl1R_Croix 414,{
  36.  
  37. end;
  38.  
  39. OnInit:
  40.  
  41. waitingroom "BG DeathMatch",5,"Flavius_BG1::OnCroixJoin",1;
  42.  
  43. end;
  44.  
  45. OnEnterBG:
  46.  
  47. set $@FlaviusBG1_id2, waitingroom2bg("bat_b01",10,290,"Flavius_BG1::OnCroixQuit","");
  48.  
  49. end;
  50.  
  51. }
  52.  
  53.  
  54. // Battleground Engine
  55.  
  56. // *********************************************************************
  57.  
  58.  
  59. - script Flavius_BG1 -1,{
  60.  
  61. end;
  62.  
  63.  
  64. OnInit:
  65.  
  66. disablenpc "Guillaume Vintenar#fl1";
  67.  
  68. disablenpc "Croix Vintenar#fl1";
  69.  
  70. disablenpc "Therapist in battle#fl11";
  71.  
  72. disablenpc "Therapist in battle#fl12";
  73.  
  74. end;
  75.  
  76.  
  77. OnGuillaumeQuit:
  78.  
  79. OnCroixQuit:
  80.  
  81. if($@FlaviusBG1 != 1) {end;}
  82.  
  83. if(Bat_Team == 2) {
  84.  
  85. for(set .@i,0; .@i < getarraysize($@bg_red$); set .@i,.@i+1){
  86.  
  87. if($@bg_red$[.@i] == strcharinfo(0)) {break;}
  88.  
  89. }
  90.  
  91. deletearray $@bg_red$[.@i],1;
  92.  
  93. set $@td_a,$@td_a-1;
  94.  
  95. end;
  96.  
  97. } else if(Bat_Team == 1) {
  98.  
  99. for(set .@i,0; .@i < getarraysize($@bg_blue$); set .@i,.@i+1){
  100.  
  101. if($@bg_blue$[.@i] == strcharinfo(0)) {break;}
  102.  
  103. }
  104.  
  105. deletearray $@bg_blue$[.@i],1;
  106.  
  107. set $@td_b,$@td_b-1;
  108.  
  109. end;
  110.  
  111. }
  112.  
  113. else { end; }
  114.  
  115. end;
  116.  
  117.  
  118. OnGuillaumeJoin:
  119.  
  120. OnCroixJoin:
  121.  
  122. if( $@FlaviusBG1 == 1 ){
  123.  
  124. if( $@Guill < 30 && $@Croi < 30){
  125.  
  126. set .@Guillaume, getwaitingroomstate(0,"Fl1R_Guillaume");
  127.  
  128. set .@Croix, getwaitingroomstate(0,"Fl1R_Croix");
  129.  
  130. if (.@Guillaume!=0 && .@Croix!=0){
  131.  
  132. set $@Guill, ($@Guill + 1);
  133.  
  134. set $@Croi, ($@Croi + 1);
  135.  
  136. waitingroom2bg_single($@FlaviusBG1_id1,"bat_b01",311,224,"Fl1R_Guillaume");
  137.  
  138. waitingroom2bg_single($@FlaviusBG1_id2,"bat_b01",87,75,"Fl1R_Croix");
  139.  
  140. mapannounce "bat_room","Battleground -- Flavius Team Deathmatch [80-99] G: " + $@Guill + "/30, C: " + $@Croi + "/30 in Progress!!",1,0x006400;
  141.  
  142. end;
  143.  
  144. }
  145.  
  146. }
  147.  
  148. }
  149.  
  150.  
  151. if( $@FlaviusBG1 == 0 ){
  152.  
  153. donpcevent "Flavius_BG1::OnReadyCheck";
  154.  
  155. end;
  156.  
  157. }
  158.  
  159.  
  160. OnReadyCheck:
  161.  
  162. if( $@FlaviusBG1 )
  163.  
  164. end;
  165.  
  166. set .@Guillaume, getwaitingroomstate(0,"Fl1R_Guillaume");
  167.  
  168. set .@Croix, getwaitingroomstate(0,"Fl1R_Croix");
  169.  
  170.  
  171. if( .@Guillaume < 1 || .@Croix < 1 ){
  172.  
  173.  
  174. if( .@Guillaume >=4 && .@Croix >=4 && !agitcheck() && $@FLTD_Flood < gettimetick(2) )
  175.  
  176. {
  177.  
  178. announce "Battleground -- Flavius Team Deathmatch [80-99] G: " + .@Guillaume + "/10, C: " + .@Croix + "/10",bc_all,0x006400;
  179.  
  180. set $@FLTD_Flood, gettimetick(2) + 15;
  181.  
  182. end;
  183.  
  184. }
  185.  
  186. mapannounce "bat_room","Battleground -- Flavius Team Deathmatch [80-99] G: " + .@Guillaume + "/10, C: " + .@Croix + "/10",1,0x006400;
  187.  
  188. end;
  189.  
  190. }
  191.  
  192. //
  193.  
  194.  
  195. // BG Variables
  196.  
  197. set $@FlaviusBG1, 1;
  198.  
  199. set $@FlaviusBG1_Victory, 0;
  200.  
  201. set .Guillaume_Score, 25;
  202.  
  203. set .Croix_Score, 25;
  204.  
  205. // Prepare NPC
  206.  
  207. donpcevent "#gfl1_respawn::OnBGStart";
  208.  
  209. donpcevent "#cfl1_respawn::OnBGStart";
  210.  
  211. donpcevent "#fltd_regroup::OnBGStart";
  212.  
  213. enablenpc "Therapist in battle#fl11";
  214.  
  215. enablenpc "Therapist in battle#fl12";
  216.  
  217. disablenpc "Guillaume Vintenar#fl1";
  218.  
  219. disablenpc "Croix Vintenar#fl1";
  220.  
  221. // Build and Warp Teams
  222.  
  223. donpcevent "Fl1R_Guillaume::OnEnterBG";
  224.  
  225. donpcevent "Fl1R_Croix::OnEnterBG";
  226.  
  227. // Vamos contando :3
  228.  
  229. set $@Guill, 10;
  230.  
  231. set $@Croi, 10;
  232.  
  233. announce "Battleground -- Flavius Team Deathmatch [80-99] has started!",0,0x006400;
  234.  
  235. initnpctimer;
  236.  
  237. // Death!!
  238.  
  239.  
  240. OnRoundStart:
  241.  
  242. if( $@FlaviusBG1 != 1 ) end;
  243.  
  244. bg_updatescore "bat_b01",.Guillaume_Score,.Croix_Score;
  245.  
  246. areapercentheal "bat_b01",382,2,397,17,100,100;
  247.  
  248. areapercentheal "bat_b01",2,282,17,297,100,100;
  249.  
  250. bg_warp $@FlaviusBG1_id1,"bat_b01",311,224;
  251.  
  252. bg_warp $@FlaviusBG1_id2,"bat_b01",87,75;
  253.  
  254. sleep 2000;
  255.  
  256. if( $@FlaviusBG1 != 1 ) end;
  257.  
  258. mapannounce "bat_b01","The Battle of Flavius Team Deathmatch has begun!!",1,0x006400;
  259.  
  260. bg_updatescore "bat_b01",.Guillaume_Score,.Croix_Score;
  261.  
  262. end;
  263.  
  264.  
  265. OnPCDieEvent:
  266.  
  267. if( $@FlaviusBG1 == 1 )
  268.  
  269. {
  270.  
  271. getmapxy (mapname$,.@mapx,.@mapy,0,strcharinfo(0));
  272.  
  273. if ( mapname$ != "bat_b01") end;
  274.  
  275. if( Bat_Team == 1) {
  276.  
  277. set .Croix_Score, .Croix_Score -1;
  278.  
  279. bg_updatescore "bat_b01",.Guillaume_Score,.Croix_Score;
  280.  
  281. if (.Croix_Score < 1) donpcevent "Flavius_BG1::OnCroixTDWin";
  282.  
  283. end;
  284.  
  285. }
  286.  
  287. if ( Bat_Team == 2) {
  288.  
  289. set .Guillaume_Score, .Guillaume_Score -1;
  290.  
  291. bg_updatescore "bat_b01",.Guillaume_Score,.Croix_Score;
  292.  
  293. if (.Guillaume_Score < 1) donpcevent "Flavius_BG1::OnGuillaumeTDWin";
  294.  
  295. end;
  296.  
  297. }
  298.  
  299. }
  300.  
  301. end;
  302.  
  303.  
  304. OnGuillaumeTDWin:
  305.  
  306. set $@FlaviusBG1, 2;
  307.  
  308. set $@FlaviusBG1_Victory, 1;
  309.  
  310. mapannounce "bat_b01","The Guillaume Army has won the battle of Flavius Team Deathmatch",1,0x0000FF;
  311.  
  312. stopnpctimer;
  313.  
  314. sleep 2000;
  315.  
  316. donpcevent "Flavius_BG1::OnMatchEnd";
  317.  
  318. end;
  319.  
  320.  
  321. OnCroixTDWin:
  322.  
  323. set $@FlaviusBG1, 2;
  324.  
  325. set $@FlaviusBG1_Victory, 2;
  326.  
  327. mapannounce "bat_b01","The Croix Army has won the battle of Flavius Team Deathmatch",1,0xFF0000;
  328.  
  329. stopnpctimer;
  330.  
  331. sleep 2000;
  332.  
  333. donpcevent "Flavius_BG1::OnMatchEnd";
  334.  
  335. end;
  336.  
  337.  
  338. OnTimer900000:
  339.  
  340. if ($@FlaviusBG1 != 1) end;
  341.  
  342. mapannounce "bat_b01","Battle of Flavius Team Deathmatch will ends in 5 minutes",1,0x006400;
  343.  
  344. end;
  345.  
  346. OnTimer1140000:
  347.  
  348. if ($@FlaviusBG1 != 1) end;
  349.  
  350. mapannounce "bat_b01","Battle of Flavius Team Deathmatch will ends in 1 minute",1,0x006400;
  351.  
  352. end;
  353.  
  354.  
  355. OnTimer1200000:
  356.  
  357. if ($@FlaviusBG1 != 1) end;
  358.  
  359. if( .Croix_Score > .Guillaume_Score )
  360.  
  361. {
  362.  
  363. mapannounce "bat_b01","The Croix army has won the Battle of Flavius Team Deathmatch!",1,0xFF0000;
  364.  
  365. donpcevent "Flavius_BG1::OnCroixTDWin";
  366.  
  367. }
  368.  
  369. else if( .Croix_Score < .Guillaume_Score )
  370.  
  371. {
  372.  
  373. mapannounce "bat_b01","The Guillaume army has won the Battle of Flavius Team Deathmatch!",1,0x0000FF;
  374.  
  375. donpcevent "Flavius_BG1::OnGuillaumeTDWin";
  376.  
  377. }
  378.  
  379. else
  380.  
  381. {
  382.  
  383. mapannounce "bat_b01","The Battle of Flavius Team Deathmatch is over. The time is out, this is a Tie",1,0x006400;
  384.  
  385. set $@FlaviusBG1, 2;
  386.  
  387. set $@FlaviusBG1_Victory, 3;
  388.  
  389. stopnpctimer;
  390.  
  391. sleep 2000;
  392.  
  393. }
  394.  
  395.  
  396. OnMatchEnd:
  397.  
  398. donpcevent "#gfl1_respawn::OnBGStop";
  399.  
  400. donpcevent "#cfl1_respawn::OnBGStop";
  401.  
  402. donpcevent "#fltd_regroup::OnBGStop";
  403.  
  404. disablenpc "Therapist in battle#fl11";
  405.  
  406. disablenpc "Therapist in battle#fl12";
  407.  
  408. enablenpc "Guillaume Vintenar#fl1";
  409.  
  410. enablenpc "Croix Vintenar#fl1";
  411.  
  412. bg_warp $@FlaviusBG1_id1,"bat_b01",390,10;
  413.  
  414. bg_warp $@FlaviusBG1_id2,"bat_b01",10,290;
  415.  
  416. deletearray $@bg_red$;
  417.  
  418. deletearray $@bg_blue$;
  419.  
  420. set $@td_a,0;
  421.  
  422. set $@td_b,0;
  423.  
  424. sleep 3000;
  425.  
  426. mapannounce "bat_b01","Battle of Flavius Team Deathmatch will close in 1 minute!",1,0x006400;
  427.  
  428. initnpctimer;
  429.  
  430. end;
  431.  
  432.  
  433. OnTimer30000:
  434.  
  435. if( $@FlaviusBG1 == 2 )
  436.  
  437. mapannounce "bat_b01","Battle of Flavius Team Deathmatch will close in 30 seconds!",1,0x006400;
  438.  
  439. end;
  440.  
  441. OnTimer50000:
  442.  
  443. if( $@FlaviusBG1 == 2 )
  444.  
  445. mapannounce "bat_b01","Battle of Flavius Team Deathmatch will close in 10 seconds!",1,0x006400;
  446.  
  447. end;
  448.  
  449.  
  450. OnTimer60000:
  451.  
  452. if( $@FlaviusBG1 != 2 ) end;
  453.  
  454.  
  455. OnReset:
  456.  
  457. stopnpctimer;
  458.  
  459. set .Guillaume_Score, 25;
  460.  
  461. set .Croix_Score, 25;
  462.  
  463. set $@FlaviusBG1_Victory, 0;
  464.  
  465. // NPC's
  466.  
  467. disablenpc "Guillaume Vintenar#fl1";
  468.  
  469. disablenpc "Croix Vintenar#fl1";
  470.  
  471. disablenpc "Therapist in battle#fl11";
  472.  
  473. disablenpc "Therapist in battle#fl12";
  474.  
  475. if( $@FlaviusBG1_id1 ) { bg_destroy $@FlaviusBG1_id1; set $@FlaviusBG1_id1, 0; }
  476.  
  477. if( $@FlaviusBG1_id2 ) { bg_destroy $@FlaviusBG1_id2; set $@FlaviusBG1_id2, 0; }
  478.  
  479. sleep 1000;
  480.  
  481. mapwarp "bat_b01","bat_room",155,150;
  482.  
  483. sleep 2000;
  484.  
  485. bg_updatescore "bat_b01",.Guillaume_Score,.Croix_Score;
  486.  
  487. set $@FlaviusBG1, 0;
  488.  
  489. donpcevent "Flavius_BG1::OnReadyCheck";
  490.  
  491. end;
  492.  
  493. }
  494.  
  495.  
  496.  
  497. // View oponentes en el mapa <3
  498.  
  499. - script viewtd - ,{
  500.  
  501. end;
  502.  
  503. OnPCLoadMapEvent:
  504.  
  505. if($@FlaviusBG1 != 1) {end;}
  506.  
  507. if(Bat_Team == 2) {
  508.  
  509. getmapxy .@MAPNAME$,.@X,.@Y,0,strcharinfo(0);
  510.  
  511. while(.@MAPNAME$ == "bat_b01"){
  512.  
  513. if($@FlaviusBG1 != 1) {end;}
  514.  
  515. getmapxy .@MAPNAME$,.@X,.@Y,0,strcharinfo(0);
  516.  
  517. if(.@MAPNAME$ != "bat_b01") { end;}
  518.  
  519. for(set .@i,0; .@i < getarraysize($@bg_red$); set .@i,.@i+1){
  520.  
  521. if($@bg_red$[.@i] == strcharinfo(0)) { set .@ontd,1; break;}
  522.  
  523. }
  524.  
  525. if(.@ontd != 1) {
  526.  
  527. setarray $@bg_red$[$@td_a],strcharinfo(0);
  528.  
  529. set $@td_a,$@td_a+1; }
  530.  
  531. set .@j,0;
  532.  
  533. for (set .@i,0; .@i < getarraysize($@bg_blue$); set .@i,.@i+1){
  534.  
  535. set .@j,.@j+1;
  536.  
  537. getmapxy(.mapES$, .xI, .yI,0,$@bg_blue$[.@i]);
  538.  
  539. viewpoint 1,.xI,.yI,.@j,0x0000ff;
  540.  
  541. } // cierre for
  542.  
  543. sleep2 1000;
  544.  
  545. } // cierre while
  546.  
  547. } else if(Bat_Team == 1) {
  548.  
  549. getmapxy .@MAPNAME$,.@X,.@Y,0,strcharinfo(0);
  550.  
  551. while(.@MAPNAME$ == "bat_b01"){
  552.  
  553. if($@FlaviusBG1 != 1) {end;}
  554.  
  555. getmapxy .@MAPNAME$,.@X,.@Y,0,strcharinfo(0);
  556.  
  557. if(.@MAPNAME$ != "bat_b01") { end;}
  558.  
  559. for(set .@i,0; .@i < getarraysize($@bg_blue$); set .@i,.@i+1){
  560.  
  561. if($@bg_blue$[.@i] == strcharinfo(0)) { set .@ontd,1; break;}
  562.  
  563. }
  564.  
  565. if(.@ontd != 1) {
  566.  
  567. setarray $@bg_blue$[$@td_b],strcharinfo(0);
  568.  
  569. set $@td_b,$@td_b+1; }
  570.  
  571. set .@j,0;
  572.  
  573. for (set .@i,0; .@i < getarraysize($@bg_red$); set .@i,.@i+1){
  574.  
  575. set .@j,.@j+1;
  576.  
  577. getmapxy(.mapES$, .xE, .yE,0,$@bg_red$[.@i]);
  578.  
  579. viewpoint 1,.xE,.yE,.@j,0xff0000;
  580.  
  581. } // cierre for
  582.  
  583. sleep2 1000;
  584.  
  585. } // cierre while
  586.  
  587. }
  588.  
  589. else { end; }
  590.  
  591. }
  592.  
  593.  
  594. // Battleground rewards
  595.  
  596. // *********************************************************************
  597.  
  598.  
  599. bat_b01,390,13,5 script Guillaume Vintenar#fl1 419,{
  600.  
  601. if( $@FlaviusBG1_Victory )
  602.  
  603. {
  604.  
  605. if( $@FlaviusBG1_Victory == Bat_Team )
  606.  
  607. { // Victory
  608.  
  609. mes "[Swandery]";
  610.  
  611. mes "Blessed Guillaume!!";
  612.  
  613. mes "Let's enjoy our glorious victory!";
  614.  
  615. mes "" + strcharinfo(0) + ", its a sign reflecting victory";
  616.  
  617. close2;
  618.  
  619. set .@Reward,18;
  620.  
  621. }
  622.  
  623. else
  624.  
  625. { // Derrota
  626.  
  627. mes "[Swandery]";
  628.  
  629. mes "You lost, but you're dedicated to this battle.";
  630.  
  631. mes "This is a reward for your great dedication by Guillaume Marollo!";
  632.  
  633. mes "Just take this defeat a lesson, and later you would definitely learn.";
  634.  
  635. close2;
  636.  
  637. set .@Reward,6;
  638.  
  639. }
  640.  
  641.  
  642. set Flavius_BG_Tick, gettimetick(2) + 300; //setquest 2070;
  643.  
  644. getitem 7829, .@Reward;
  645.  
  646. set .@ontd,0;
  647.  
  648. bg_leave;
  649.  
  650. warp "bat_room",155,150;
  651.  
  652. end;
  653.  
  654. }
  655.  
  656. end;
  657.  
  658. }
  659.  
  660.  
  661. bat_b01,10,293,5 script Croix Vintenar#fl1 415,{
  662.  
  663. if( $@FlaviusBG1_Victory )
  664.  
  665. {
  666.  
  667. if( $@FlaviusBG1_Victory == Bat_Team )
  668.  
  669. { // Victory
  670.  
  671. mes "[Swandery]";
  672.  
  673. mes "Blessed Croax!!";
  674.  
  675. mes "Let's enjoy our glorious victory!";
  676.  
  677. mes "" + strcharinfo(0) + ", its a sign reflecting victory";
  678.  
  679. close2;
  680.  
  681. set .@Reward, 18;
  682.  
  683. }
  684.  
  685. else
  686.  
  687. { // Derrota
  688.  
  689. mes "[Swandery]";
  690.  
  691. mes "Oh, " + strcharinfo(0) + ". Don't be sad.";
  692.  
  693. mes "Even though we didn't win, we did our best.";
  694.  
  695. mes "This is a Royal gift from Croix, and please don't forget this battle. We can win the next.";
  696.  
  697. close2;
  698.  
  699. set .@Reward, 6;
  700.  
  701. }
  702.  
  703.  
  704. set Flavius_BG_Tick, gettimetick(2) + 300; //setquest 2070;
  705.  
  706. getitem 7829, .@Reward;
  707.  
  708. set .@ontd,0;
  709.  
  710. bg_leave;
  711.  
  712. warp "bat_room",155,150;
  713.  
  714. end;
  715.  
  716. }
  717.  
  718. end;
  719.  
  720. }
  721.  
  722.  
  723. // Battleground Therapist
  724.  
  725. // *********************************************************************
  726.  
  727.  
  728. bat_b01,390,13,5 script Therapist in battle#fl12 95,{
  729.  
  730. mes "[Therapist in battle]";
  731.  
  732. mes "Just close your eyes, and take a deep breathe.";
  733.  
  734. mes "You can be free from pain.";
  735.  
  736. specialeffect2 312;
  737.  
  738. if (select("Close:Repairman")==1){
  739.  
  740. close;
  741.  
  742. }
  743.  
  744. next;
  745.  
  746. callfunc "repairmain","Repairman";
  747.  
  748. end;
  749.  
  750. }
  751.  
  752.  
  753. bat_b01,10,293,5 script Therapist in battle#fl11 95,{
  754.  
  755. mes "[Therapist in battle]";
  756.  
  757. mes "Just close your eyes, and take a deep breathe.";
  758.  
  759. mes "You can be free from pain.";
  760.  
  761. specialeffect2 312;
  762.  
  763. if (select("Close:Repairman")==1){
  764.  
  765. close;
  766.  
  767. }
  768.  
  769. next;
  770.  
  771. callfunc "repairmain","Repairman";
  772.  
  773. end;
  774.  
  775. }
  776.  
  777.  
  778. // Battleground Respawn and Regroup
  779.  
  780. // *********************************************************************
  781.  
  782.  
  783. - script #fltd_regroup -1,{
  784.  
  785. end;
  786.  
  787.  
  788. OnBGStart:
  789.  
  790. initnpctimer;
  791.  
  792. end;
  793.  
  794. OnBGStop:
  795.  
  796. stopnpctimer;
  797.  
  798. end;
  799.  
  800. OnTimer150000:
  801.  
  802. mapannounce "bat_b01","Regroup Team in 30 Seconds...",1,0x006400;
  803.  
  804. end;
  805.  
  806. OnTimer175000:
  807.  
  808. mapannounce "bat_b01","Regroup Team in 5 Seconds...",1,0x006400;
  809.  
  810. end;
  811.  
  812. OnTimer180000:
  813.  
  814. mapannounce "bat_b01","Regroup Team!!",1,0x006400;
  815.  
  816. bg_warp $@FlaviusBG1_id1,"bat_b01",328,150;
  817.  
  818. bg_warp $@FlaviusBG1_id2,"bat_b01",62,150;
  819.  
  820. initnpctimer;
  821.  
  822. end;
  823.  
  824. }
  825.  
  826.  
  827. bat_b01,390,10,0 script #gfl1_respawn 139,{
  828.  
  829. end;
  830.  
  831.  
  832. OnBGStart:
  833.  
  834. initnpctimer;
  835.  
  836. end;
  837.  
  838.  
  839. OnBGStop:
  840.  
  841. stopnpctimer;
  842.  
  843. end;
  844.  
  845.  
  846. OnTimer9000:
  847.  
  848. misceffect 83;
  849.  
  850. end;
  851.  
  852.  
  853. OnTimer10000:
  854.  
  855. areapercentheal "bat_b01",382,2,397,17,100,100;
  856.  
  857. set .@mapx,rand(309,327);
  858.  
  859. set .@mapy,rand(141,159);
  860.  
  861. areawarp "bat_b01",382,2,397,17,"bat_b01",.@mapx,.@mapy;
  862.  
  863. initnpctimer;
  864.  
  865. end;
  866.  
  867. }
  868.  
  869.  
  870. bat_b01,10,290,0 script #cfl1_respawn 139,{
  871.  
  872. end;
  873.  
  874.  
  875. OnBGStart:
  876.  
  877. initnpctimer;
  878.  
  879. end;
  880.  
  881.  
  882. OnBGStop:
  883.  
  884. stopnpctimer;
  885.  
  886. end;
  887.  
  888.  
  889. OnTimer9000:
  890.  
  891. misceffect 83;
  892.  
  893. end;
  894.  
  895.  
  896. OnTimer10000:
  897.  
  898. areapercentheal "bat_b01",2,282,17,297,100,100;
  899.  
  900. set .@mapx,rand(72,91);
  901.  
  902. set .@mapy,rand(141,159);
  903.  
  904. areawarp "bat_b01",2,282,17,297,"bat_b01",.@mapx,.@mapy;
  905.  
  906. initnpctimer;
  907.  
  908. end;
  909.  
  910. }
  911.  
  912.  
  913. // Flags
  914.  
  915. // *********************************************************************
  916.  
  917. /*
  918. bat_b01,304,231,1 duplicate(Guillaume camp#bat) Guillaume camp#bat1 973
  919.  
  920. bat_b01,319,231,1 duplicate(Guillaume camp#bat) Guillaume camp#bat2 973
  921.  
  922. bat_b01,304,218,1 duplicate(Guillaume camp#bat) Guillaume camp#bat3 973
  923.  
  924. bat_b01,319,218,1 duplicate(Guillaume camp#bat) Guillaume camp#bat4 973
  925.  
  926. bat_b01,304,231,1 duplicate(Guillaume camp#bat) Guillaume camp#bat5 973
  927.  
  928. bat_b01,304,231,1 duplicate(Guillaume camp#bat) Guillaume camp#bat6 973
  929.  
  930. bat_b01,335,142,1 duplicate(Guillaume camp#bat) Guillaume camp#bat7 973
  931.  
  932. bat_b01,335,157,1 duplicate(Guillaume camp#bat) Guillaume camp#bat8 973
  933.  
  934. bat_b01,390,16,1 duplicate(Guillaume camp#bat) Guillaume camp#bat9 973
  935.  
  936. bat_b01,292,163,1 duplicate(Guillaume camp#bat) Guillaume camp#bat19 973
  937.  
  938. bat_b01,292,136,1 duplicate(Guillaume camp#bat) Guillaume camp#bat20 973
  939.  
  940. bat_b01,241,185,1 duplicate(Guillaume camp#bat) Guillaume camp#bat21 973
  941.  
  942. bat_b01,247,179,1 duplicate(Guillaume camp#bat) Guillaume camp#bat22 973
  943.  
  944.  
  945. bat_b01,96,81,1 duplicate(Croix camp#bat) Croix camp#bat1 974
  946.  
  947. bat_b01,96,68,1 duplicate(Croix camp#bat) Croix camp#bat2 974
  948.  
  949. bat_b01,79,81,1 duplicate(Croix camp#bat) Croix camp#bat3 974
  950.  
  951. bat_b01,79,68,1 duplicate(Croix camp#bat) Croix camp#bat4 974
  952.  
  953. bat_b01,96,81,1 duplicate(Croix camp#bat) Croix camp#bat5 974
  954.  
  955. bat_b01,96,81,1 duplicate(Croix camp#bat) Croix camp#bat6 974
  956.  
  957. bat_b01,59,164,1 duplicate(Croix camp#bat) Croix camp#bat7 974
  958.  
  959. bat_b01,59,137,1 duplicate(Croix camp#bat) Croix camp#bat8 974
  960.  
  961. bat_b01,10,296,1 duplicate(Croix camp#bat) Croix camp#bat9 974
  962.  
  963. bat_b01,110,162,1 duplicate(Croix camp#bat) Croix camp#bat18 974
  964.  
  965. bat_b01,110,137,1 duplicate(Croix camp#bat) Croix camp#bat19 974
  966.  
  967. bat_b01,152,120,1 duplicate(Croix camp#bat) Croix camp#bat20 974
  968.  
  969. bat_b01,158,114,1 duplicate(Croix camp#bat) Croix camp#bat21 974
  970. */
  971.  
  972. // MapFlags
  973.  
  974. // *********************************************************************
  975.  
  976.  
  977. bat_b01 mapflag battleground 2
  978.  
  979. bat_b01 mapflag nomemo
  980.  
  981. bat_b01 mapflag nosave SavePoint
  982.  
  983. bat_b01 mapflag noteleport
  984.  
  985. bat_b01 mapflag nowarp
  986.  
  987. bat_b01 mapflag nowarpto
  988.  
  989. bat_b01 mapflag noreturn
  990.  
  991. bat_b01 mapflag nobranch
  992.  
  993. bat_b01 mapflag nopenalty
  994.  
  995. bat_b01 mapflag loadevent
  996.  
  997.  
  998. // ***********************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement