From 99e13a34742b3c745f8b2247bc0e0a39042b78d1 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 10 Dec 2015 15:31:24 +0530 Subject: ItemID to Constant: battleground Folder --- npc/battleground/tierra/tierra01.txt | 56 ++++++++++++++++---------------- npc/battleground/tierra/tierra02.txt | 56 ++++++++++++++++---------------- npc/battleground/tierra/tierra_enter.txt | 8 ++--- 3 files changed, 60 insertions(+), 60 deletions(-) (limited to 'npc/battleground/tierra') diff --git a/npc/battleground/tierra/tierra01.txt b/npc/battleground/tierra/tierra01.txt index f0e66932d..3391fffc0 100644 --- a/npc/battleground/tierra/tierra01.txt +++ b/npc/battleground/tierra/tierra01.txt @@ -321,7 +321,7 @@ bat_a01,185,270,1 script Guillaume Blacksmith#a01 4_M_REPAIR,{ next; switch(select("Repair.:Leave it.")) { case 1: - if (countitem(7049) > 49) { + if (countitem(Stone) > 49) { mes "[Guillaume Blacksmith]"; mes "You brought enough stones! Let's go and repair."; next; @@ -364,7 +364,7 @@ bat_a01,185,270,1 script Guillaume Blacksmith#a01 4_M_REPAIR,{ mes "[Guillaume Blacksmith]"; mes "Wow! It's done."; mes "We are relieved."; - delitem 7049,50; //Stone + delitem Stone,50; donpcevent "barricade#bat_a01_a::OnEnable"; close2; disablenpc "Guillaume Blacksmith#a01"; @@ -405,7 +405,7 @@ bat_a01,170,121,5 script Croix Blacksmith#bat_a01 4_M_REPAIR,{ next; switch(select("Repair.:Leave it.")) { case 1: - if (countitem(7049) > 49) { + if (countitem(Stone) > 49) { mes "[Croix Blacksmith]"; mes "You brought enough stones! Let's go and repair."; next; @@ -448,7 +448,7 @@ bat_a01,170,121,5 script Croix Blacksmith#bat_a01 4_M_REPAIR,{ mes "[Croix Blacksmith]"; mes "Wow! It's done."; mes "We are relieved."; - delitem 7049,50; //Stone + delitem Stone,50; donpcevent "barricade#bat_a01_b::OnEnable"; close2; disablenpc "Croix Blacksmith#bat_a01"; @@ -697,7 +697,7 @@ 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 ($@TierraBG1_Victory == 1) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Axl Rose]"; @@ -705,7 +705,7 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Axl Rose]"; @@ -713,11 +713,11 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Axl Rose]"; @@ -725,7 +725,7 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Axl Rose]"; @@ -733,13 +733,13 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } else { if ($@TierraBG1_Victory == 2) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Axl Rose]"; @@ -747,7 +747,7 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Axl Rose]"; @@ -755,11 +755,11 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Axl Rose]"; @@ -767,7 +767,7 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Axl Rose]"; @@ -775,7 +775,7 @@ bat_a01,53,377,3 script Guillaume Vintenar#a01_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign of victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } @@ -791,7 +791,7 @@ OnInit: bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ if (getcharid(4) == $@TierraBG1_id2) { if ($@TierraBG1_Victory == 2) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Swandery]"; @@ -799,7 +799,7 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Swandery]"; @@ -807,11 +807,11 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Swandery]"; @@ -819,7 +819,7 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Swandery]"; @@ -827,13 +827,13 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } else { if ($@TierraBG1_Victory == 1) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Swandery]"; @@ -841,7 +841,7 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Swandery]"; @@ -849,11 +849,11 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Swandery]"; @@ -861,7 +861,7 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Swandery]"; @@ -869,7 +869,7 @@ bat_a01,45,19,3 script Croix Vintenar#a01_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } diff --git a/npc/battleground/tierra/tierra02.txt b/npc/battleground/tierra/tierra02.txt index 86913ee6f..f84f083d5 100644 --- a/npc/battleground/tierra/tierra02.txt +++ b/npc/battleground/tierra/tierra02.txt @@ -321,7 +321,7 @@ bat_a02,185,270,1 script Guillaume Blacksmith#a02 4_M_REPAIR,{ next; switch(select("Repair.:Leave it.")) { case 1: - if (countitem(7049) > 49) { + if (countitem(Stone) > 49) { mes "[Guillaume Blacksmith]"; mes "You brought enough stones! Let's go and repair."; next; @@ -364,7 +364,7 @@ bat_a02,185,270,1 script Guillaume Blacksmith#a02 4_M_REPAIR,{ mes "[Guillaume Blacksmith]"; mes "Wow! It's done."; mes "We are relieved."; - delitem 7049,50; //Stone + delitem Stone,50; donpcevent "barricade#bat_a02_a::OnEnable"; close2; disablenpc "Guillaume Blacksmith#a02"; @@ -405,7 +405,7 @@ bat_a02,170,121,5 script Croix Blacksmith#bat_a02 4_M_REPAIR,{ next; switch(select("Repair.:Leave it.")) { case 1: - if (countitem(7049) > 49) { + if (countitem(Stone) > 49) { mes "[Croix Blacksmith]"; mes "You brought enough stones! Let's go and repair."; next; @@ -448,7 +448,7 @@ bat_a02,170,121,5 script Croix Blacksmith#bat_a02 4_M_REPAIR,{ mes "[Croix Blacksmith]"; mes "Wow! It's done."; mes "We are relieved."; - delitem 7049,50; //Stone + delitem Stone,50; donpcevent "barricade#bat_a02_b::OnEnable"; close2; disablenpc "Croix Blacksmith#bat_a02"; @@ -697,7 +697,7 @@ 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 ($@TierraBG2_Victory == 1) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Axl Rose]"; @@ -705,7 +705,7 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Axl Rose]"; @@ -713,11 +713,11 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Axl Rose]"; @@ -725,7 +725,7 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Axl Rose]"; @@ -733,13 +733,13 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } else { if ($@TierraBG2_Victory == 2) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Axl Rose]"; @@ -747,7 +747,7 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Axl Rose]"; @@ -755,11 +755,11 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "This is a reward for your great dedication by Guillaume Marollo!"; mes "Just take this defeat as a lesson, and next time you will definitely win."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Axl Rose]"; @@ -767,7 +767,7 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Axl Rose]"; @@ -775,7 +775,7 @@ bat_a02,53,377,3 script Guillaume Vintenar#a02_a 4_M_KY_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign of victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } @@ -791,7 +791,7 @@ OnInit: bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ if (getcharid(4) == $@TierraBG2_id2) { if ($@TierraBG2_Victory == 2) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Swandery]"; @@ -799,7 +799,7 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Swandery]"; @@ -807,11 +807,11 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Swandery]"; @@ -819,7 +819,7 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Swandery]"; @@ -827,13 +827,13 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } else { if ($@TierraBG2_Victory == 1) { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 0) { mes "[Swandery]"; @@ -841,7 +841,7 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,1; //BF_Badge1 + getitem BF_Badge1,1; } else { mes "[Swandery]"; @@ -849,11 +849,11 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ 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 will win the next one."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } else { - .@your_medal = countitem(7828); + .@your_medal = countitem(BF_Badge1); .@medal_gap = 500 - .@your_medal; if (.@medal_gap > 2) { mes "[Swandery]"; @@ -861,7 +861,7 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,3; //BF_Badge1 + getitem BF_Badge1,3; } else { mes "[Swandery]"; @@ -869,7 +869,7 @@ bat_a02,45,19,3 script Croix Vintenar#a02_b 4_M_CRU_HEAD,{ mes "Let's enjoy our glorious victory!"; mes ""+strcharinfo(0)+", it's a sign reflecting victory."; close2; - getitem 7828,.@medal_gap; //BF_Badge1 + getitem BF_Badge1,.@medal_gap; } } } diff --git a/npc/battleground/tierra/tierra_enter.txt b/npc/battleground/tierra/tierra_enter.txt index c7dbd10ae..f742c07f8 100644 --- a/npc/battleground/tierra/tierra_enter.txt +++ b/npc/battleground/tierra/tierra_enter.txt @@ -34,7 +34,7 @@ //== First Tierra Gorge Officers - Guillaume =============== bat_room,124,178,5 script Tierra Gorge Officer#01a 4_M_KY_KNT,{ - if (checkweight(1201,1) == 0) { + if (checkweight(Knife,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; @@ -94,7 +94,7 @@ bat_room,124,178,5 script Tierra Gorge Officer#01a 4_M_KY_KNT,{ } bat_room,140,178,5 script Tierra Gorge Officer#02a 4_M_KY_KNT,{ - if (checkweight(1201,1) == 0) { + if (checkweight(Knife,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; @@ -251,7 +251,7 @@ bat_room,143,121,1 script Croix Knight#2 4_M_CRU_SOLD,{ //== Second Tierra Gorge Officers - Croix ================== bat_room,125,121,1 script Tierra Gorge Officer#01b 4_M_CRU_KNT,{ - if (checkweight(1201,1) == 0) { + if (checkweight(Knife,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; @@ -311,7 +311,7 @@ bat_room,125,121,1 script Tierra Gorge Officer#01b 4_M_CRU_KNT,{ } bat_room,140,121,1 script Tierra Gorge Officer#02b 4_M_CRU_KNT,{ - if (checkweight(1201,1) == 0) { + if (checkweight(Knife,1) == 0) { mes "- Wait a minute !! -"; mes "- Currently you're carrying -"; mes "- too many items with you. -"; -- cgit v1.2.3-70-g09d2