summaryrefslogtreecommitdiff
path: root/npc/battleground
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/battleground
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/battleground')
-rw-r--r--npc/battleground/flavius/flavius01.txt8
-rw-r--r--npc/battleground/flavius/flavius02.txt8
-rw-r--r--npc/battleground/tierra/tierra01.txt20
-rw-r--r--npc/battleground/tierra/tierra02.txt20
4 files changed, 28 insertions, 28 deletions
diff --git a/npc/battleground/flavius/flavius01.txt b/npc/battleground/flavius/flavius01.txt
index 681786792..8370f1e53 100644
--- a/npc/battleground/flavius/flavius01.txt
+++ b/npc/battleground/flavius/flavius01.txt
@@ -405,7 +405,7 @@ OnTouch:
}
bat_b01,10,294,3 script Guillaume Vintenar#b01_a 4_M_RASWORD,{
- if ($@FlaviusBG1_id1 == getcharid(4)) {
+ if ($@FlaviusBG1_id1 == getcharid(CHAR_ID_BG)) {
if ($@FlaviusBG1_Victory == 1) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -457,7 +457,7 @@ OnInit:
}
bat_b01,389,14,3 script Croix Vintenar#b01_b 4_M_RASWORD,{
- if ($@FlaviusBG1_id2 == getcharid(4)) {
+ if ($@FlaviusBG1_id2 == getcharid(CHAR_ID_BG)) {
if ($@FlaviusBG1_Victory == 2) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -590,7 +590,7 @@ bat_b01,389,16,3 script Croix Camp#flag31 1_FLAG_EAGLE,{ end; }
bat_b01,10,294,3 script Vintenar#bat_b01_aover 4_M_KY_HEAD,{
.@A_B_gap = $@Guill_ScoreBG1 - $@Croix_ScoreBG1;
- if ($@FlaviusBG1_id1 == getcharid(4)) {
+ if ($@FlaviusBG1_id1 == getcharid(CHAR_ID_BG)) {
if (.@A_B_gap > 0) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -668,7 +668,7 @@ OnInit:
bat_b01,389,14,3 script Vintenar#bat_b01_bover 4_M_CRU_HEAD,{
.@A_B_gap = $@Guill_ScoreBG1 - $@Croix_ScoreBG1;
- if ($@FlaviusBG1_id2 == getcharid(4)) {
+ if ($@FlaviusBG1_id2 == getcharid(CHAR_ID_BG)) {
if (.@A_B_gap > 0) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
diff --git a/npc/battleground/flavius/flavius02.txt b/npc/battleground/flavius/flavius02.txt
index becee77c6..232dd7e39 100644
--- a/npc/battleground/flavius/flavius02.txt
+++ b/npc/battleground/flavius/flavius02.txt
@@ -405,7 +405,7 @@ OnTouch:
}
bat_b02,10,294,3 script Guillaume Vintenar#b02_a 4_M_RASWORD,{
- if ($@FlaviusBG2_id1 == getcharid(4)) {
+ if ($@FlaviusBG2_id1 == getcharid(CHAR_ID_BG)) {
if ($@FlaviusBG2_Victory == 1) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -457,7 +457,7 @@ OnInit:
}
bat_b02,389,14,3 script Croix Vintenar#b02_b 4_M_RASWORD,{
- if ($@FlaviusBG2_id2 == getcharid(4)) {
+ if ($@FlaviusBG2_id2 == getcharid(CHAR_ID_BG)) {
if ($@FlaviusBG2_Victory == 2) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -590,7 +590,7 @@ bat_b02,389,16,3 script Croix Camp#flag42 1_FLAG_EAGLE,{ end; }
bat_b02,10,294,3 script Vintenar#bat_b02_aover 4_M_KY_HEAD,{
.@A_B_gap = $@Guill_ScoreBG2 - $@Croix_ScoreBG2;
- if ($@FlaviusBG2_id1 == getcharid(4)) {
+ if ($@FlaviusBG2_id1 == getcharid(CHAR_ID_BG)) {
if (.@A_B_gap > 0) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
@@ -668,7 +668,7 @@ OnInit:
bat_b02,389,14,3 script Vintenar#bat_b02_bover 4_M_CRU_HEAD,{
.@A_B_gap = $@Guill_ScoreBG2 - $@Croix_ScoreBG2;
- if ($@FlaviusBG2_id2 == getcharid(4)) {
+ if ($@FlaviusBG2_id2 == getcharid(CHAR_ID_BG)) {
if (.@A_B_gap > 0) {
.@your_medal = countitem(BF_Badge2);
.@medal_gap = 500 - .@your_medal;
diff --git a/npc/battleground/tierra/tierra01.txt b/npc/battleground/tierra/tierra01.txt
index 0dabe28d0..22a612c81 100644
--- a/npc/battleground/tierra/tierra01.txt
+++ b/npc/battleground/tierra/tierra01.txt
@@ -267,8 +267,8 @@ OnKill:
OnMyMobDead:
if (mobcount("bat_a01","OBJ#bat_a01_n::OnMyMobDead") < 17) {
- bg_team_setxy getcharid(4),56,212;
- if (getcharid(4) == $@TierraBG1_id1) {
+ bg_team_setxy getcharid(CHAR_ID_BG),56,212;
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id1) {
donpcevent "NOBJ_mob#bat_a01_a::OnEnable";
mapannounce("bat_a01", _("Guillaume captured a Neutrality Flag, so they have an advantage."), bc_map, "0xFFCE00");
}
@@ -313,7 +313,7 @@ OnMyMobDead:
}
bat_a01,185,270,1 script Guillaume Blacksmith#a01 4_M_REPAIR,{
- if (getcharid(4) == $@TierraBG1_id1) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id1) {
mes("[Guillaume Blacksmith]");
mes("We are in urgency! The Barricade has been destroyed!");
mes("We can repair the Barricade with ^3131FF50 Stones, 3 Sinew of Bear, 500 Metal Fragments, 30 Rough Elunium and 100 Gold.^000000");
@@ -397,7 +397,7 @@ OnInit:
}
bat_a01,170,121,5 script Croix Blacksmith#bat_a01 4_M_REPAIR,{
- if (getcharid(4) == $@TierraBG1_id2) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id2) {
mes("[Croix Blacksmith]");
mes("We are in urgency! The Barricade has been destroyed!");
mes("We can repair the Barricade with ^3131FF50 Stones, 3 Sinew of Bear, 500 Metal Fragments, 30 Rough Elunium and 100 Gold.^000000");
@@ -622,28 +622,28 @@ OnTouch:
bat_a01,194,267,0 script barri_warp_up#bat_a01_a FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG1_id1)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id1)
warp "bat_a01",194,261;
end;
}
bat_a01,194,265,0 script barri_warp_down#bat_a01a FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG1_id1)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id1)
warp "bat_a01",194,270;
end;
}
bat_a01,177,130,0 script barri_warp_up#bat_a01_b FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG1_id2)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id2)
warp "bat_a01",178,125;
end;
}
bat_a01,177,128,0 script barri_warp_down#bat_a01b FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG1_id2)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id2)
warp "bat_a01",178,134;
end;
}
@@ -695,7 +695,7 @@ bat_a01,357,74,3 script Croix Camp#flag8 1_FLAG_EAGLE,{ end; }
bat_a01,348,74,3 script Croix Camp#flag9 1_FLAG_EAGLE,{ end; }
bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{
- if (getcharid(4) == $@TierraBG1_id1) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id1) {
if ($@TierraBG1_Victory == 1) {
.@your_medal = countitem(BF_Badge1);
.@medal_gap = 500 - .@your_medal;
@@ -789,7 +789,7 @@ OnInit:
}
bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{
- if (getcharid(4) == $@TierraBG1_id2) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG1_id2) {
if ($@TierraBG1_Victory == 2) {
.@your_medal = countitem(BF_Badge1);
.@medal_gap = 500 - .@your_medal;
diff --git a/npc/battleground/tierra/tierra02.txt b/npc/battleground/tierra/tierra02.txt
index ac7710aa8..a54935089 100644
--- a/npc/battleground/tierra/tierra02.txt
+++ b/npc/battleground/tierra/tierra02.txt
@@ -267,8 +267,8 @@ OnKill:
OnMyMobDead:
if (mobcount("bat_a02","OBJ#bat_a02_n::OnMyMobDead") < 17) {
- bg_team_setxy getcharid(4),56,212;
- if (getcharid(4) == $@TierraBG2_id1) {
+ bg_team_setxy getcharid(CHAR_ID_BG),56,212;
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id1) {
donpcevent "NOBJ_mob#bat_a02_a::OnEnable";
mapannounce("bat_a02", _("Guillaume captured a Neutrality Flag, so they have an advantage."), bc_map, "0xFFCE00");
}
@@ -313,7 +313,7 @@ OnMyMobDead:
}
bat_a02,185,270,1 script Guillaume Blacksmith#a02 4_M_REPAIR,{
- if (getcharid(4) == $@TierraBG2_id1) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id1) {
mes("[Guillaume Blacksmith]");
mes("We are in urgency! The Barricade has been destroyed!");
mes("We can repair the Barricade with ^3131FF50 Stones, 3 Sinew of Bear, 500 Metal Fragments, 30 Rough Elunium and 100 Gold.^000000");
@@ -397,7 +397,7 @@ OnInit:
}
bat_a02,170,121,5 script Croix Blacksmith#bat_a02 4_M_REPAIR,{
- if (getcharid(4) == $@TierraBG2_id2) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id2) {
mes("[Croix Blacksmith]");
mes("We are in urgency! The Barricade has been destroyed!");
mes("We can repair the Barricade with ^3131FF50 Stones, 3 Sinew of Bear, 500 Metal Fragments, 30 Rough Elunium and 100 Gold.^000000");
@@ -622,28 +622,28 @@ OnTouch:
bat_a02,194,267,0 script barri_warp_up#bat_a02_a FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG2_id1)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id1)
warp "bat_a02",194,261;
end;
}
bat_a02,194,265,0 script barri_warp_down#bat_a02a FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG2_id1)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id1)
warp "bat_a02",194,270;
end;
}
bat_a02,177,130,0 script barri_warp_up#bat_a02_b FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG2_id2)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id2)
warp "bat_a02",178,125;
end;
}
bat_a02,177,128,0 script barri_warp_down#bat_a02b FAKE_NPC,7,0,{
OnTouch:
- if (getcharid(4) == $@TierraBG2_id2)
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id2)
warp "bat_a02",178,134;
end;
}
@@ -695,7 +695,7 @@ bat_a02,357,74,3 script Croix Camp#flag18 1_FLAG_EAGLE,{ end; }
bat_a02,348,74,3 script Croix Camp#flag19 1_FLAG_EAGLE,{ end; }
bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{
- if (getcharid(4) == $@TierraBG2_id1) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id1) {
if ($@TierraBG2_Victory == 1) {
.@your_medal = countitem(BF_Badge1);
.@medal_gap = 500 - .@your_medal;
@@ -789,7 +789,7 @@ OnInit:
}
bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{
- if (getcharid(4) == $@TierraBG2_id2) {
+ if (getcharid(CHAR_ID_BG) == $@TierraBG2_id2) {
if ($@TierraBG2_Victory == 2) {
.@your_medal = countitem(BF_Badge1);
.@medal_gap = 500 - .@your_medal;