summaryrefslogtreecommitdiff
path: root/npc/006-1_Desert_mountains
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-01-23 16:52:05 +0000
committerJared Adams <jaxad0127@gmail.com>2009-01-23 16:52:05 +0000
commit4e98d4621f225766abb32d30ab6cea8d2739a419 (patch)
tree1ca67ca0a8465848870c91dfdf60baffc9767ba4 /npc/006-1_Desert_mountains
parent29bb178e6ac12d8edb32b89c336d46178421bd83 (diff)
downloadserverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.gz
serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.bz2
serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.tar.xz
serverdata-4e98d4621f225766abb32d30ab6cea8d2739a419.zip
Start converting scripts over to "ItemName"
Instead of using the item number. A few small bug fixes are also here.
Diffstat (limited to 'npc/006-1_Desert_mountains')
-rw-r--r--npc/006-1_Desert_mountains/pachua.txt39
1 files changed, 18 insertions, 21 deletions
diff --git a/npc/006-1_Desert_mountains/pachua.txt b/npc/006-1_Desert_mountains/pachua.txt
index 51c2d3b2..e0fcef7f 100644
--- a/npc/006-1_Desert_mountains/pachua.txt
+++ b/npc/006-1_Desert_mountains/pachua.txt
@@ -1,8 +1,5 @@
006-1.gat,23,100,0 script Pachua 143,{
- set @LEATHER_PATCH, 708;
- set @SNAKE_SKIN, 641;
-
set @LEATHER_PATCH_PRICE, 300;
set @wants_leather_patch, QUEST_Forestbow_state & NIBBLE_4_MASK;
@@ -19,9 +16,9 @@
next;
L_Check_Shops:
- if((countitem(610) > 0 && countitem(@SNAKE_SKIN) > 9) && (countitem(524) > 0 && countitem(@SNAKE_SKIN) > 1)) goto L_Super_store;
- if(countitem(610) > 0 && countitem(@SNAKE_SKIN) > 9) goto L_Chaps_store;
- if(countitem(524) > 0 && countitem(@SNAKE_SKIN) > 1) goto L_Cowboy_store;
+ if((countitem("JeansShorts") > 0 && countitem("SnakeSkin") > 9) && (countitem("FancyHat") > 0 && countitem("SnakeSkin") > 1)) goto L_Super_store;
+ if(countitem("JeansShorts") > 0 && countitem("SnakeSkin") > 9) goto L_Chaps_store;
+ if(countitem("FancyHat") > 0 && countitem("SnakeSkin") > 1) goto L_Cowboy_store;
mes "[Chief Pachua]";
mes "\"Maybe if you bring me the right materials I can make something for you.\"";
@@ -101,31 +98,31 @@ L_Chaps_store:
L_BuyChaps:
if (zeny < 10000) goto L_NoMoney;
- if (countitem(610) < 1) goto L_NoJeans;
- if (countitem(@SNAKE_SKIN) < 10) goto L_NoSkin;
+ if (countitem("JeansShorts") < 1) goto L_NoJeans;
+ if (countitem("SnakeSkin") < 10) goto L_NoSkin;
set zeny, zeny - 10000;
- delitem @SNAKE_SKIN, 10;
- delitem 610, 1;
- getitem 642, 1;
+ delitem "SnakeSkin", 10;
+ delitem "JeansShorts", 1;
+ getitem "JeansChaps", 1;
goto L_DealDone;
L_BuyCowboy:
if (zeny < 5000) goto L_NoMoney;
- if (countitem(524) < 1) goto L_NoFancy;
- if (countitem(@SNAKE_SKIN) < 2) goto L_NoSkin;
+ if (countitem("FancyHat") < 1) goto L_NoFancy;
+ if (countitem("SnakeSkin") < 2) goto L_NoSkin;
set zeny, zeny - 5000;
- delitem @SNAKE_SKIN, 2;
- delitem 524, 1;
+ delitem "SnakeSkin", 2;
+ delitem "FancyHat", 1;
set @temp,rand(2);
if(@temp == 0) goto L_Cowboy_white;
goto L_Cowboy_black;
L_Cowboy_white:
- getitem 643, 1;
+ getitem "CowboyWhite", 1;
goto L_DealDone;
L_Cowboy_black:
- getitem 644, 1;
+ getitem "CowboyBlack", 1;
goto L_DealDone;
L_leather_patch:
@@ -137,14 +134,14 @@ L_leather_patch:
"OK, I'll be back later.", L_End,
"That's too expensive!.", L_NoDeal;
- if (countitem(@SNAKE_SKIN) < 1) goto L_NoSkins;
+ if (countitem("SnakeSkin") < 1) goto L_NoSkins;
if (zeny < @LEATHER_PATCH_PRICE) goto L_NoMoney;
getinventorylist;
- if (@inventorylist_count == 100 && countitem(@SNAKE_SKIN) > 1) goto L_TooMany;
+ if (@inventorylist_count == 100 && countitem("SnakeSkin") > 1) goto L_TooMany;
set zeny, zeny - @LEATHER_PATCH_PRICE;
- delitem @SNAKE_SKIN, 1;
- getitem @LEATHER_PATCH, 1;
+ delitem "SnakeSkin", 1;
+ getitem "LeatherPatch", 1;
goto L_DealDone;
L_DealDone: