diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-06 17:33:37 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-06 17:33:37 +0000 |
commit | c77b5e802c13a0bfaf1ca2d5983ae4154529ad38 (patch) | |
tree | 5a2e749cb40d01f479cb53da8d66b5b54eb3edaf /npc/battleground/bg_tierra_02.txt | |
parent | 8335fed5747108c69a9bb210a500c39107fb3cc2 (diff) | |
download | hercules-c77b5e802c13a0bfaf1ca2d5983ae4154529ad38.tar.gz hercules-c77b5e802c13a0bfaf1ca2d5983ae4154529ad38.tar.bz2 hercules-c77b5e802c13a0bfaf1ca2d5983ae4154529ad38.tar.xz hercules-c77b5e802c13a0bfaf1ca2d5983ae4154529ad38.zip |
- Release of Battleground Tierra Valley scripts 1 and 2.
- I put them on custom because it's not based on Aegis scripts, but most of the work is based on official dialogs and information.
- Thanks to UEAUP Team for most of the information from official servers.
- I will release Flavius 1/2 and Kreiger Von Midgard some days later (already done).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13568 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/battleground/bg_tierra_02.txt')
-rw-r--r-- | npc/battleground/bg_tierra_02.txt | 610 |
1 files changed, 610 insertions, 0 deletions
diff --git a/npc/battleground/bg_tierra_02.txt b/npc/battleground/bg_tierra_02.txt new file mode 100644 index 000000000..310176272 --- /dev/null +++ b/npc/battleground/bg_tierra_02.txt @@ -0,0 +1,610 @@ +// ==============================================================================
+// BattleGround System - Tierra Valley 2
+// ==============================================================================
+
+// Registration NPC's
+// *********************************************************************
+
+bat_room,85,97,4 script Registration::TV2R_Guillaume 418,{
+ end;
+OnInit:
+ waitingroom "Battle Station 10 Players",10,"Tierra_BG2::OnGuillaumeJoin",1;
+ end;
+OnEnterBG:
+ set $@TierraBG2_id1, waitingroom2bg("bat_a02",50,374,0,"Tierra_BG2::OnGuillaumeQuit","");
+ end;
+}
+
+bat_room,85,74,0 script Registration::TV2R_Croix 414,{
+ end;
+OnInit:
+ waitingroom "Battle Station 10 Players",10,"Tierra_BG2::OnCroixJoin",1;
+ end;
+OnEnterBG:
+ set $@TierraBG2_id2, waitingroom2bg("bat_a02",42,16,1,"Tierra_BG2::OnCroixQuit","");
+ end;
+}
+
+// Battleground Engine
+// *********************************************************************
+
+- script Tierra_BG2 -1,{
+ end;
+
+OnInit:
+ disablenpc "Tierra Neutral#lion2";
+ disablenpc "Tierra Neutral#eagle2";
+ disablenpc "Croix Vintenar#tv2";
+ disablenpc "Guillaume Vintenar#tv2";
+ disablenpc "Therapist in battle#tv21";
+ disablenpc "Therapist in battle#tv22";
+ end;
+
+OnGuillaumeQuit:
+OnCroixQuit:
+ set BG_Delay_Tick, gettimetick(2) + 1200;
+ end;
+
+OnGuillaumeJoin:
+OnCroixJoin:
+ if( $@TierraBG2 == 0 )
+ donpcevent "Tierra_BG2::OnReadyCheck";
+ end;
+
+OnReadyCheck:
+ if( $@TierraBG2 )
+ end;
+ set .@Guillaume, getwaitingroomstate(0,"TV2R_Guillaume");
+ set .@Croix, getwaitingroomstate(0,"TV2R_Croix");
+
+ if( .@Guillaume < 10 || .@Croix < 10 )
+ {
+ mapannounce "bat_room","Battleground -- Tierra Valley [80-99] G: " + .@Guillaume + "/10, C: " + .@Croix + "/10",1,0xF4A460;
+ end;
+ }
+
+ set $@TierraBG2, 1;
+ donpcevent "TV2R_Croix::OnEnterBG";
+ donpcevent "TV2R_Guillaume::OnEnterBG";
+ donpcevent "Guillaume_TV2B::OnBuild";
+ donpcevent "Croix_TV2B::OnBuild";
+ bg_monster $@TierraBG2_id1,"bat_a02",176,345,"Food Depot",1909,"Tierra_BG2::OnGuillaumeBreak";
+ bg_monster $@TierraBG2_id2,"bat_a02",167,50,"Food Storage",1910,"Tierra_BG2::OnCroixBreak";
+ bg_monster 0,"bat_a02",273,204,"Neutrality Flag",1911,"Tierra_BG2::OnNeutralBreak";
+ set $@TierraBG2_Base, 0;
+ set $@TierraBG2_Victory, 0;
+ enablenpc "Therapist in battle#tv21";
+ enablenpc "Therapist in battle#tv22";
+ disablenpc "Croix Vintenar#tv2";
+ disablenpc "Guillaume Vintenar#tv2";
+ // Respawner
+ donpcevent "#gtv2_respawn::OnBGStart";
+ donpcevent "#ctv2_respawn::OnBGStart";
+ // Warp Teams
+ announce "Battleground -- Tierra Valley [80-99] has started!",0,0xF4A460;
+ bg_warp $@TierraBG2_id1,"bat_a02",353,344;
+ bg_warp $@TierraBG2_id2,"bat_a02",353,52;
+ // Final Messages
+ sleep 6000;
+ mapannounce "bat_a02","Guillaume Vintenar Axl Rose : Let's attack to burn down Croix's food storage",1,0x0000FF;
+ sleep 2000;
+ mapannounce "bat_a02","Croix Vintenar Swandery : Master of Valhalla! Let us be gifted with unfailing faith and courage",1,0xFF0000;
+
+ initnpctimer;
+ end;
+
+OnNeutralBreak:
+ if( Bat_Team == 1 )
+ {
+ mapannounce "bat_a02","Guillaume obtained a neurality banner, so they have an advantage.",1,0x0000FF;
+ setnpcdisplay("Tierra Neutral#lion2","Guillaume Base",973);
+ enablenpc "Tierra Neutral#lion2";
+ bg_monster $@TierraBG2_id1,"bat_a02",28,185,"Guillaume Camp Guardian",1949,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id1,"bat_a02",287,203,"Guillaume Camp Guardian",1950,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id1,"bat_a02",268,204,"Guillaume Camp Guardian",1949,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id1,"bat_a02",280,233,"Guillaume Camp Guardian",1950,"Tierra_BG2::OnGuardian";
+ }
+ else if( Bat_Team == 2 )
+ {
+ mapannounce "bat_a02","Croix obtained a neutrality banner, so they have an advantage.",1,0xFF0000;
+ setnpcdisplay("Tierra Neutral#eagle2","Croix Base",974);
+ enablenpc "Tierra Neutral#eagle2";
+ bg_monster $@TierraBG2_id2,"bat_a02",28,185,"Croix Camp Guardian",1949,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id2,"bat_a02",287,203,"Croix Camp Guardian",1950,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id2,"bat_a02",268,204,"Croix Camp Guardian",1949,"Tierra_BG2::OnGuardian";
+ bg_monster $@TierraBG2_id2,"bat_a02",280,233,"Croix Camp Guardian",1950,"Tierra_BG2::OnGuardian";
+ }
+ else end; // Should not happend
+ set $@TierraBG2_Base, Bat_Team;
+ end;
+
+OnGuardian:
+ end;
+
+OnGuillaumeBreak:
+ set $@TierraBG2_Victory, 2;
+ mapannounce "bat_a02","Croix Vintenar Swandery: We destroyed Guillaume's food storehause. We won that! Wow!",1,0xFF0000;
+ donpcevent "Tierra_BG2::OnStop";
+ end;
+
+OnCroixBreak:
+ set $@TierraBG2_Victory, 1;
+ mapannounce "bat_a02","Guillaume Vintenar Axl Rose: We destroyed Croix's food storehause. We won that! Wow!",1,0x0000FF;
+ donpcevent "Tierra_BG2::OnStop";
+ end;
+
+OnTimer2400000:
+ mapannounce "bat_a02","Battle of Tierra Gorge will ends in 5 minutes",1,0xF4A460;
+ end;
+OnTimer2640000:
+ mapannounce "bat_a02","Battle of Tierra Gorge will ends in 1 minute",1,0xF4A460;
+ end;
+
+OnTimer2700000:
+ set $@TierraBG2_Victory, 3; // Draw Game
+ mapannounce "bat_a02","Battle of Tierra Gorge is over. The time is out, this is a Tie",1,0xF4A460;
+ donpcevent "Tierra_BG2::OnStop";
+ end;
+
+OnStop:
+ set $@TierraBG2, 2;
+ disablenpc "Therapist in battle#tv21";
+ disablenpc "Therapist in battle#tv22";
+ donpcevent "#gtv2_respawn::OnBGStop";
+ donpcevent "#ctv2_respawn::OnBGStop";
+ enablenpc "Croix Vintenar#tv2";
+ enablenpc "Guillaume Vintenar#tv2";
+ killmonster "bat_a02","Tierra_BG2::OnGuillaumeBreak";
+ killmonster "bat_a02","Tierra_BG2::OnCroixBreak";
+ killmonster "bat_a02","Tierra_BG2::OnNeutralBreak";
+ killmonster "bat_a02","Tierra_BG2::OnGuardian";
+ stopnpctimer;
+ sleep 3000;
+ bg_warp $@TierraBG2_id1,"bat_a02",50,374;
+ bg_warp $@TierraBG2_id2,"bat_a02",42,16;
+ sleep 3000;
+ mapannounce "bat_a02","Battle of Tierra Gorge will close in 1 minute!",1,0xF4A460;
+ initnpctimer;
+ end;
+
+OnTimer30000:
+ if( $@TierraBG2 == 2 )
+ mapannounce "bat_a02","Battle of Tierra Valley will close in 30 seconds!",1,0xF4A460;
+ end;
+OnTimer50000:
+ if( $@TierraBG2 == 2 )
+ mapannounce "bat_a02","Battle of Tierra Valley will close in 10 seconds!",1,0xF4A460;
+ end;
+
+OnTimer60000:
+ if( $@TierraBG2 != 2 )
+ end;
+OnReset:
+ stopnpctimer;
+ set $@TierraBG2_Base, 0;
+ disablenpc "Tierra Neutral#lion2";
+ disablenpc "Tierra Neutral#eagle2";
+ disablenpc "Croix Vintenar#tv2";
+ disablenpc "Guillaume Vintenar#tv2";
+ disablenpc "Therapist in battle#tv21";
+ disablenpc "Therapist in battle#tv22";
+ donpcevent "#gtv2_respawn::OnBGStop";
+ donpcevent "#ctv2_respawn::OnBGStop";
+
+ killmonster "bat_a02","Tierra_BG2::OnGuillaumeBreak";
+ killmonster "bat_a02","Tierra_BG2::OnCroixBreak";
+ killmonster "bat_a02","Tierra_BG2::OnNeutralBreak";
+ killmonster "bat_a02","Tierra_BG2::OnGuardian";
+ donpcevent "Guillaume_TV2B::OnDestroy";
+ donpcevent "Croix_TV2B::OnDestroy";
+
+ set $@TierraBG2_Victory, 0;
+ if( $@TierraBG2_id1 ) { bg_destroy $@TierraBG2_id1; set $@TierraBG2_id1, 0; }
+ if( $@TierraBG2_id2 ) { bg_destroy $@TierraBG2_id2; set $@TierraBG2_id2, 0; }
+ sleep 1000;
+ mapwarp "bat_a02","bat_room",155,150;
+ sleep 2000;
+ maprespawnguildid "bat_a02",0,3; // Just in case someone else
+ sleep 2000;
+ set $@TierraBG2, 0;
+ donpcevent "Tierra_BG2::OnReadyCheck"; // Maybe a game is ready to start
+ end;
+}
+
+// MapFlags
+// *********************************************************************
+
+bat_a02 mapflag battleground
+bat_a02 mapflag nomemo
+bat_a02 mapflag nosave SavePoint
+bat_a02 mapflag noteleport
+bat_a02 mapflag nowarp
+bat_a02 mapflag nowarpto
+bat_a02 mapflag noreturn
+bat_a02 mapflag nobranch
+bat_a02 mapflag nopenalty
+
+// Neutral Point Flags
+// *********************************************************************
+
+bat_a02,273,204,1 script Tierra Neutral#lion2 973,{ end; }
+bat_a02,273,204,1 script Tierra Neutral#eagle2 974,{ end; }
+
+// Other Flags
+// *********************************************************************
+
+bat_a02,148,85,1 duplicate(Croix camp#bat) Croix camp#bat22 974
+bat_a02,155,85,1 duplicate(Croix camp#bat) Croix camp#bat23 974
+bat_a02,357,75,1 duplicate(Croix camp#bat) Croix camp#bat24 974
+bat_a02,348,74,1 duplicate(Croix camp#bat) Croix camp#bat25 974
+bat_a02,199,49,1 duplicate(Croix camp#bat) Croix camp#bat26 974
+bat_a02,168,16,1 duplicate(Croix camp#bat) Croix camp#bat27 974
+bat_a02,138,12,1 duplicate(Croix camp#bat) Croix camp#bat28 974
+bat_a02,108,35,1 duplicate(Croix camp#bat) Croix camp#bat29 974
+bat_a02,164,308,1 duplicate(Guillaume camp#bat) Guillaume camp#bat23 973
+bat_a02,157,308,1 duplicate(Guillaume camp#bat) Guillaume camp#bat24 973
+bat_a02,359,327,1 duplicate(Guillaume camp#bat) Guillaume camp#bat25 973
+bat_a02,350,326,1 duplicate(Guillaume camp#bat) Guillaume camp#bat26 973
+bat_a02,209,344,1 duplicate(Guillaume camp#bat) Guillaume camp#bat27 973
+bat_a02,173,380,1 duplicate(Guillaume camp#bat) Guillaume camp#bat28 973
+bat_a02,150,380,1 duplicate(Guillaume camp#bat) Guillaume camp#bat29 973
+bat_a02,118,357,1 duplicate(Guillaume camp#bat) Guillaume camp#bat30 973
+bat_a02,119,336,1 duplicate(Guillaume camp#bat) Guillaume camp#bat31 973
+
+// Barricades
+// *********************************************************************
+
+- script Guillaume_TV2B -1,{
+ end;
+
+OnBuild:
+ bg_monster $@TierraBG2_id1,"bat_a02",160,380,"Barricade",1906,"Guillaume_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id1,"bat_a02",161,380,"Barricade",1906,"Guillaume_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id1,"bat_a02",162,380,"Barricade",1906,"Guillaume_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id1,"bat_a02",163,380,"Barricade",1906,"Guillaume_TV2B::OnWall1";
+ setwall "bat_a02",160,380,4,6,0,"bat_a02_g1";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",160,363,"Barricade",1906,"Guillaume_TV2B::OnWall2";
+ bg_monster $@TierraBG2_id1,"bat_a02",161,363,"Barricade",1906,"Guillaume_TV2B::OnWall2";
+ bg_monster $@TierraBG2_id1,"bat_a02",162,363,"Barricade",1906,"Guillaume_TV2B::OnWall2";
+ setwall "bat_a02",160,363,3,6,0,"bat_a02_g2";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",119,344,"Barricade",1906,"Guillaume_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id1,"bat_a02",119,345,"Barricade",1906,"Guillaume_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id1,"bat_a02",119,346,"Barricade",1906,"Guillaume_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id1,"bat_a02",119,347,"Barricade",1906,"Guillaume_TV2B::OnWall3";
+ setwall "bat_a02",119,344,4,0,0,"bat_a02_g3";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",134,345,"Barricade",1906,"Guillaume_TV2B::OnWall4";
+ bg_monster $@TierraBG2_id1,"bat_a02",134,346,"Barricade",1906,"Guillaume_TV2B::OnWall4";
+ bg_monster $@TierraBG2_id1,"bat_a02",134,347,"Barricade",1906,"Guillaume_TV2B::OnWall4";
+ setwall "bat_a02",134,345,3,0,0,"bat_a02_g4";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",159,311,"Barricade",1906,"Guillaume_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id1,"bat_a02",160,311,"Barricade",1906,"Guillaume_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id1,"bat_a02",161,311,"Barricade",1906,"Guillaume_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id1,"bat_a02",162,311,"Barricade",1906,"Guillaume_TV2B::OnWall5";
+ setwall "bat_a02",159,311,4,6,0,"bat_a02_g5";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",159,327,"Barricade",1906,"Guillaume_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id1,"bat_a02",160,327,"Barricade",1906,"Guillaume_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id1,"bat_a02",161,327,"Barricade",1906,"Guillaume_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id1,"bat_a02",162,327,"Barricade",1906,"Guillaume_TV2B::OnWall6";
+ setwall "bat_a02",159,327,4,6,0,"bat_a02_g6";
+
+ bg_monster $@TierraBG2_id1,"bat_a02",163,344,"Barricade",1906,"Guillaume_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id1,"bat_a02",163,345,"Barricade",1906,"Guillaume_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id1,"bat_a02",163,346,"Barricade",1906,"Guillaume_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id1,"bat_a02",163,347,"Barricade",1906,"Guillaume_TV2B::OnWall7";
+ setwall "bat_a02",163,344,4,0,0,"bat_a02_g7";
+
+ setarray .MyMobCount[1],4,3,4,3,4,4,4;
+ end;
+
+OnDestroy:
+ for( set .@i, 1; .@i < 8; set .@i, .@i + 1 )
+ {
+ killmonster "bat_a02","Guillaume_TV2B::OnWall" + .@i + "";
+ delwall "bat_a02_g" + .@i + "";
+ }
+
+ setarray .MyMobCount[1],0,0,0,0,0,0,0;
+ end;
+
+OnWall1:
+ if( set(.MyMobCount[1],.MyMobCount[1] - 1) < 1 )
+ {
+ delwall "bat_a02_g1";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall2:
+ if( set(.MyMobCount[2],.MyMobCount[2] - 1) < 1 )
+ {
+ delwall "bat_a02_g2";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall3:
+ if( set(.MyMobCount[3],.MyMobCount[3] - 1) < 1 )
+ {
+ delwall "bat_a02_g3";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall4:
+ if( set(.MyMobCount[4],.MyMobCount[4] - 1) < 1 )
+ {
+ delwall "bat_a02_g4";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall5:
+ if( set(.MyMobCount[5],.MyMobCount[5] - 1) < 1 )
+ {
+ delwall "bat_a02_g5";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall6:
+ if( set(.MyMobCount[6],.MyMobCount[6] - 1) < 1 )
+ {
+ delwall "bat_a02_g6";
+ mapannounce "bat_a02","Guillaume Camp : A Gate has been Destroy!!",1,0xffb85d;
+ }
+ end;
+OnWall7:
+ if( set(.MyMobCount[7],.MyMobCount[7] - 1) < 1 )
+ {
+ delwall "bat_a02_g7";
+ mapannounce "bat_a02","Guillaume Camp : Main Gate has been Destroy, our Food Storehouse is unprotected!!",1,0xffb85d;
+ }
+ end;
+}
+
+- script Croix_TV2B -1,{
+ end;
+
+OnBuild:
+ bg_monster $@TierraBG2_id2,"bat_a02",150,83,"Barricade",1906,"Croix_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id2,"bat_a02",151,83,"Barricade",1906,"Croix_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id2,"bat_a02",152,83,"Barricade",1906,"Croix_TV2B::OnWall1";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,83,"Barricade",1906,"Croix_TV2B::OnWall1";
+ setwall "bat_a02",150,83,4,6,0,"bat_a02_c1";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",150,67,"Barricade",1906,"Croix_TV2B::OnWall2";
+ bg_monster $@TierraBG2_id2,"bat_a02",151,67,"Barricade",1906,"Croix_TV2B::OnWall2";
+ bg_monster $@TierraBG2_id2,"bat_a02",152,67,"Barricade",1906,"Croix_TV2B::OnWall2";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,67,"Barricade",1906,"Croix_TV2B::OnWall2";
+ setwall "bat_a02",150,67,4,6,0,"bat_a02_c2";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",109,47,"Barricade",1906,"Croix_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id2,"bat_a02",109,48,"Barricade",1906,"Croix_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id2,"bat_a02",109,49,"Barricade",1906,"Croix_TV2B::OnWall3";
+ bg_monster $@TierraBG2_id2,"bat_a02",109,50,"Barricade",1906,"Croix_TV2B::OnWall3";
+ setwall "bat_a02",109,47,4,0,0,"bat_a02_c3";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",127,47,"Barricade",1906,"Croix_TV2B::OnWall4";
+ bg_monster $@TierraBG2_id2,"bat_a02",127,48,"Barricade",1906,"Croix_TV2B::OnWall4";
+ bg_monster $@TierraBG2_id2,"bat_a02",127,49,"Barricade",1906,"Croix_TV2B::OnWall4";
+ bg_monster $@TierraBG2_id2,"bat_a02",127,50,"Barricade",1906,"Croix_TV2B::OnWall4";
+ setwall "bat_a02",127,47,4,0,0,"bat_a02_c4";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",152,13,"Barricade",1906,"Croix_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,13,"Barricade",1906,"Croix_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id2,"bat_a02",154,13,"Barricade",1906,"Croix_TV2B::OnWall5";
+ bg_monster $@TierraBG2_id2,"bat_a02",155,13,"Barricade",1906,"Croix_TV2B::OnWall5";
+ setwall "bat_a02",152,13,4,6,0,"bat_a02_c5";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",152,32,"Barricade",1906,"Croix_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,32,"Barricade",1906,"Croix_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id2,"bat_a02",154,32,"Barricade",1906,"Croix_TV2B::OnWall6";
+ bg_monster $@TierraBG2_id2,"bat_a02",155,32,"Barricade",1906,"Croix_TV2B::OnWall6";
+ setwall "bat_a02",152,32,4,6,0,"bat_a02_c6";
+
+ bg_monster $@TierraBG2_id2,"bat_a02",153,48,"Barricade",1906,"Croix_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,49,"Barricade",1906,"Croix_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,50,"Barricade",1906,"Croix_TV2B::OnWall7";
+ bg_monster $@TierraBG2_id2,"bat_a02",153,51,"Barricade",1906,"Croix_TV2B::OnWall7";
+ setwall "bat_a02",153,48,4,0,0,"bat_a02_c7";
+
+ setarray .MyMobCount[1],4,4,4,4,4,4,4;
+ end;
+
+OnDestroy:
+ for( set .@i, 1; .@i < 8; set .@i, .@i + 1 )
+ {
+ killmonster "bat_a02","Croix_TV2B::OnWall" + .@i + "";
+ delwall "bat_a02_c" + .@i + "";
+ }
+
+ setarray .MyMobCount[1],0,0,0,0,0,0,0;
+ end;
+
+OnWall1:
+ if( set(.MyMobCount[1],.MyMobCount[1] - 1) < 1 )
+ {
+ delwall "bat_a02_c1";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall2:
+ if( set(.MyMobCount[2],.MyMobCount[2] - 1) < 1 )
+ {
+ delwall "bat_a02_c2";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall3:
+ if( set(.MyMobCount[3],.MyMobCount[3] - 1) < 1 )
+ {
+ delwall "bat_a02_c3";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall4:
+ if( set(.MyMobCount[4],.MyMobCount[4] - 1) < 1 )
+ {
+ delwall "bat_a02_c4";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall5:
+ if( set(.MyMobCount[5],.MyMobCount[5] - 1) < 1 )
+ {
+ delwall "bat_a02_c5";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall6:
+ if( set(.MyMobCount[6],.MyMobCount[6] - 1) < 1 )
+ {
+ delwall "bat_a02_c6";
+ mapannounce "bat_a02","Croix Camp : A Gate has been Destroy!!",1,0xff9fa1;
+ }
+ end;
+OnWall7:
+ if( set(.MyMobCount[7],.MyMobCount[7] - 1) < 1 )
+ {
+ delwall "bat_a02_c7";
+ mapannounce "bat_a02","Croix Camp : Main Gate has been Destroy, our Food Storehouse is unprotected!!",1,0xff9fa1;
+ }
+ end;
+}
+
+// Battleground rewards
+// *********************************************************************
+
+bat_a02,45,19,3 script Croix Vintenar#tv2 415,{
+ if( $@TierraBG2_Victory )
+ {
+ if( $@TierraBG2_Victory == Bat_Team )
+ { // Victory
+ set .@Reward, 3;
+ mes "[Swandery]";
+ mes "Blessed Croax!!";
+ mes "Let's enjoy our glorious victory!";
+ mes "" + strcharinfo(0) + ", its a sign reflecting victory";
+ close2;
+ }
+ else
+ { //
+ set .@Reward, 1;
+ mes "[Swandery]";
+ mes "Oh, " + strcharinfo(0) + ". Don't be sad.";
+ mes "Even though we didn't win, we did our best.";
+ mes "This is a Royal gift from Croix, and please don't forget this battle. We can win the next.";
+ close2;
+ }
+
+ set Tierra_BG_Tick, gettimetick(2) + 300;
+ getitem 7828, .@Reward;
+ bg_leave;
+ warp "bat_room",155,150;
+ end;
+ }
+ end;
+}
+
+bat_a02,53,377,3 script Guillaume Vintenar#tv2 419,{
+ if( $@TierraBG2_Victory )
+ {
+ if( $@TierraBG2_Victory == Bat_Team )
+ { // Victory
+ set .@Reward, 3;
+ mes "[Swandery]";
+ mes "Blessed Guillaume!!";
+ mes "Let's enjoy our glorious victory!";
+ mes "" + strcharinfo(0) + ", its a sign reflecting victory";
+ close2;
+ }
+ else
+ { //
+ set .@Reward, 1;
+ mes "[Swandery]";
+ mes "You lost, but you're dedicated to this battle.";
+ mes "This is a reward for your great dedication by Guillaume Marollo!";
+ mes "Just take this defeat a lesson, and later you would definitely learn.";
+ close2;
+ }
+
+ set Tierra_BG_Tick, gettimetick(2) + 300;
+ getitem 7828, .@Reward;
+ bg_leave;
+ warp "bat_room",155,150;
+ end;
+ }
+ end;
+}
+
+// Battleground Therapist
+// *********************************************************************
+
+bat_a02,53,377,3 script Therapist in battle#tv22 95,{
+ mes "[Therapist in battle]";
+ mes "Just close your eyes, and take a deep breathe.";
+ mes "You can be free from pain.";
+ specialeffect2 312;
+ close;
+}
+
+bat_a02,45,18,3 script Therapist in battle#tv21 95,{
+ mes "[Therapist in battle]";
+ mes "Just close your eyes, and take a deep breathe.";
+ mes "You can be free from pain.";
+ specialeffect2 312;
+ close;
+}
+
+// Battleground Respawn
+// *********************************************************************
+
+bat_a02,50,374,0 script #gtv2_respawn 139,{
+ end;
+
+OnBGStart:
+ initnpctimer;
+ end;
+
+OnBGStop:
+ stopnpctimer;
+ end;
+
+OnTimer24000:
+ misceffect 83;
+ end;
+
+OnTimer25000:
+ areapercentheal "bat_a02",46,370,54,378,100,100;
+ if( $@TierraBG2_Base == 1 )
+ areawarp "bat_a02",46,370,54,378,"bat_a02",285,226;
+ else
+ areawarp "bat_a02",46,370,54,378,"bat_a02",354,340;
+ initnpctimer;
+ end;
+}
+
+bat_a02,42,16,0 script #ctv2_respawn 139,{
+ end;
+
+OnBGStart:
+ initnpctimer;
+ end;
+
+OnBGStop:
+ stopnpctimer;
+ end;
+
+OnTimer24000:
+ misceffect 83;
+ end;
+
+OnTimer25000:
+ areapercentheal "bat_a02",38,12,47,21,100,100;
+ if( $@TierraBG2_Base == 2 )
+ areawarp "bat_a02",38,12,47,21,"bat_a02",260,183;
+ else
+ areawarp "bat_a02",38,12,47,21,"bat_a02",354,57;
+ initnpctimer;
+ end;
+}
|