From 49db25887215726ef0a46c8212efb88dbf3004e6 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 10 Dec 2015 15:31:22 +0530 Subject: ItemID to Constant: airports Folder --- npc/airports/airships.txt | 38 +++++++++++++++++++------------------- npc/airports/einbroch.txt | 4 ++-- npc/airports/hugel.txt | 4 ++-- npc/airports/izlude.txt | 4 ++-- npc/airports/lighthalzen.txt | 4 ++-- npc/airports/rachel.txt | 4 ++-- npc/airports/yuno.txt | 4 ++-- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/npc/airports/airships.txt b/npc/airports/airships.txt index b5b187bc6..1535fef90 100644 --- a/npc/airports/airships.txt +++ b/npc/airports/airships.txt @@ -541,7 +541,7 @@ airplane,50,66,5 script Apple Merchant#airplane 4_M_04,{ mes "purchase fewer Apples."; close; } - else if (checkweight(512,.@input) == 0) { + else if (checkweight(Apple,.@input) == 0) { mes "[Fruitz]"; mes "Hmmm, I don't think"; mes "you've got enough room in"; @@ -551,7 +551,7 @@ airplane,50,66,5 script Apple Merchant#airplane 4_M_04,{ } else { Zeny -= .@pay; - getitem 512,.@input; //Apple + getitem Apple,.@input; mes "[Fruitz]"; mes "Thanks for stopping by"; mes "my shop. I hope you enjoy"; @@ -567,7 +567,7 @@ airplane,50,66,5 script Apple Merchant#airplane 4_M_04,{ next; switch (select("Yes:No")) { case 1: - if (countitem(512) < 3 || countitem(713) < 1) { + if (countitem(Apple) < 3 || countitem(Empty_Bottle) < 1) { mes "[Fruitz]"; mes "I'm sorry, but you don't"; mes "have enough materials to"; @@ -586,9 +586,9 @@ airplane,50,66,5 script Apple Merchant#airplane 4_M_04,{ mes "*Grind grind*"; mes "*Clang...!*^000000"; next; - delitem 512,3; //Apple - delitem 713,1; //Empty_Bottle - getitem 531,1; //Apple_Juice + delitem Apple,3; + delitem Empty_Bottle,1; + getitem Apple_Juice,1; mes "[Fruitz]"; mes "There you go~"; mes "I hope you enjoy!"; @@ -830,7 +830,7 @@ airplane_01,250,58,2 script Airship Staff#airplane01 1_F_02,{ } airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{ - 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. -"; @@ -901,7 +901,7 @@ airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{ mes "purchase less Apples."; close; } - else if (checkweight(512,.@input) == 0) { + else if (checkweight(Apple,.@input) == 0) { mes "[Meltz]"; mes "Hmm, I don't think you've"; mes "got enough room to carry"; @@ -912,7 +912,7 @@ airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{ } else { Zeny -= .@pay; - getitem 512,.@input; //Apple + getitem Apple,.@input; mes "[Meltz]"; mes "Thanks for stopping by"; mes "my shop. I hope you enjoy"; @@ -928,7 +928,7 @@ airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{ next; switch (select("Yes:No")) { case 1: - if (countitem(512) < 3 || countitem(713) < 1) { + if (countitem(Apple) < 3 || countitem(Empty_Bottle) < 1) { mes "[Meltz]"; mes "I'm sorry, but you don't"; mes "have enough materials to"; @@ -945,9 +945,9 @@ airplane_01,50,66,5 script Apple Merchant#air01 4_M_04,{ mes "*Grind* *Grind*"; mes "*Clang...!*^000000"; next; - delitem 512,3; //Apple - delitem 713,1; //Empty_Bottle - getitem 531,1; //Apple_Juice + delitem Apple,3; + delitem Empty_Bottle,1; + getitem Apple_Juice,1; mes "[Meltz]"; mes "There you go~"; mes "Please come again."; @@ -1357,7 +1357,7 @@ function script applegamble { next; continue; } - if (countitem(512) <.@amount) { + if (countitem(Apple) <.@amount) { mes "I'm sorry, but you"; mes "don't seem to have"; mes "enough Apples for this"; @@ -1428,7 +1428,7 @@ function script applegamble { if (.@tablesub > 8) { mes "^FF0000" + strcharinfo(0) + "^000000, you got ^FF0000" + .@player3 + "^000000 and the total is now ^FF0000" + .@playertotal + "^000000. I don't want to take any risk, let's end this game in a draw. Let's play again some other time~"; close2; - getitem 512,.@amount; //Apple + getitem Apple,.@amount; end; } } @@ -1445,7 +1445,7 @@ function script applegamble { if (.@tablesub > 8) { mes "I see, you don't want to take risk of losing this game. Neither do I, let's end this game in a draw. Let's play again some other time~"; close2; - getitem 512,.@amount; //Apple + getitem Apple,.@amount; end; } mes "Alright."; @@ -1469,19 +1469,19 @@ function script applegamble { if (.@tabletotal > 12) { mes "I got ^0000FF" + .@table3 + "^000000 and the total is now ^0000FF" + .@tabletotal + "^000000. I lost this game since my total exceeded 12. Let me give you my apples. Congratulations, that was a great game."; close2; - getitem 512,.@giveapple; //Apple + getitem Apple,.@giveapple; end; } else if (.@playertotal > .@tabletotal) { mes "I got ^0000FF" + .@table3 + "^000000 and the total is now ^0000FF" + .@tabletotal + "^000000. With total ^FF0000" + .@playertotal + "^000000 you won this game, ^FF0000" + strcharinfo(0) + "^000000. Let me give you my apples. It was a great game and I hope we will play again some other time."; close2; - getitem 512,.@giveapple; //Apple + getitem Apple,.@giveapple; end; } else if (.@playertotal == .@tabletotal) { mes "I got ^0000FF" + .@table3 + "^000000 and the total is now ^0000FF" + .@tabletotal + "^000000. With total ^FF0000" + .@playertotal + "^000000 this game came out even, ^FF0000" + strcharinfo(0) + "^000000. Let me give you your apple back. It was a great game and I hope we will play again some other time."; close2; - getitem 512,.@amount; //Apple + getitem Apple,.@amount; end; } else if (.@playertotal < .@tabletotal) { diff --git a/npc/airports/einbroch.txt b/npc/airports/einbroch.txt index 3c3f77a8e..2d1ff70ba 100644 --- a/npc/airports/einbroch.txt +++ b/npc/airports/einbroch.txt @@ -46,8 +46,8 @@ airport,143,43,5 script Airport Staff#airport1a::airport1 4_F_01,{ mes "you board the Airship?"; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "airport",148,51; end; } diff --git a/npc/airports/hugel.txt b/npc/airports/hugel.txt index f5030bbd5..67d010ab5 100644 --- a/npc/airports/hugel.txt +++ b/npc/airports/hugel.txt @@ -36,8 +36,8 @@ OnTouch: mes "Would you like to use the service?"; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "airplane",244,58; end; } diff --git a/npc/airports/izlude.txt b/npc/airports/izlude.txt index 1144777fb..69abd9cd6 100644 --- a/npc/airports/izlude.txt +++ b/npc/airports/izlude.txt @@ -47,8 +47,8 @@ mes "would you still like to board?"; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "airplane_01",244,58; end; } diff --git a/npc/airports/lighthalzen.txt b/npc/airports/lighthalzen.txt index fb307acb4..959da9c96 100644 --- a/npc/airports/lighthalzen.txt +++ b/npc/airports/lighthalzen.txt @@ -46,8 +46,8 @@ lhz_airport,143,43,5 script Airport Staff#lhz_air1a::lhz_airport1 4_F_01,{ mes "a Free Ticket for Airship."; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "lhz_airport",148,51; end; } diff --git a/npc/airports/rachel.txt b/npc/airports/rachel.txt index be2490013..1faa33979 100644 --- a/npc/airports/rachel.txt +++ b/npc/airports/rachel.txt @@ -38,8 +38,8 @@ OnTouch: mes "Would you like to use the service?"; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "airplane_01",245,60; end; } diff --git a/npc/airports/yuno.txt b/npc/airports/yuno.txt index b69f8e3af..dbda7d5e3 100644 --- a/npc/airports/yuno.txt +++ b/npc/airports/yuno.txt @@ -45,8 +45,8 @@ y_airport,143,43,5 script Airport Staff#y_air1a::y_airport1 4_F_01,{ mes "the boarding fee will be waived.So would you like to depart?"; next; if (select("Yes:No") == 1) { - if (countitem(7311) > 0) { - delitem 7311,1; //Free_Flying_Ship_Ticket + if (countitem(Free_Flying_Ship_Ticket) > 0) { + delitem Free_Flying_Ship_Ticket,1; warp "y_airport",148,51; end; } -- cgit v1.2.3-60-g2f50