summaryrefslogtreecommitdiff
path: root/npc/custom/battleground/bg_tierra_01.txt
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2016-10-09 14:46:30 +0100
committerAsheraf <acheraf1998@gmail.com>2016-10-16 12:51:22 +0100
commit062f2cf4235cf07481ecaf58682f37f2ad8928f8 (patch)
tree30fd352940f19ba058705ca338a61339e10e4ead /npc/custom/battleground/bg_tierra_01.txt
parent9c777dfc4ce6d84e7da89d896baa05786e574a99 (diff)
downloadhercules-062f2cf4235cf07481ecaf58682f37f2ad8928f8.tar.gz
hercules-062f2cf4235cf07481ecaf58682f37f2ad8928f8.tar.bz2
hercules-062f2cf4235cf07481ecaf58682f37f2ad8928f8.tar.xz
hercules-062f2cf4235cf07481ecaf58682f37f2ad8928f8.zip
Change *getcharid to use constants
Diffstat (limited to 'npc/custom/battleground/bg_tierra_01.txt')
-rw-r--r--npc/custom/battleground/bg_tierra_01.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/custom/battleground/bg_tierra_01.txt b/npc/custom/battleground/bg_tierra_01.txt
index bab80916b..56a505356 100644
--- a/npc/custom/battleground/bg_tierra_01.txt
+++ b/npc/custom/battleground/bg_tierra_01.txt
@@ -99,13 +99,13 @@ OnReadyCheck:
end;
OnNeutralBreak:
- if( getcharid(4) == $@TierraBG1_id1 )
+ if( getcharid(CHAR_ID_BG) == $@TierraBG1_id1 )
{
mapannounce "bat_a01","Guillaume obtained a neurality banner, so they have an advantage.",1,0x0000FF;
bg_team_setxy $@TierraBG1_id2,42,16;
areawarp "bat_a01",52,208,61,217,"bat_a01",42,16;
}
- else if( getcharid(4) == $@TierraBG1_id2 )
+ else if( getcharid(CHAR_ID_BG) == $@TierraBG1_id2 )
{
mapannounce "bat_a01","Croix obtained a neutrality banner, so they have an advantage.",1,0xFF0000;
bg_team_setxy $@TierraBG1_id1,50,374;
@@ -113,7 +113,7 @@ OnNeutralBreak:
}
else end;
- set .Neutral_Base, getcharid(4);
+ set .Neutral_Base, getcharid(CHAR_ID_BG);
bg_team_setxy .Neutral_Base,56,212;
if( .Guardian_1 == 0 )