From 4e98d4621f225766abb32d30ab6cea8d2739a419 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 23 Jan 2009 16:52:05 +0000 Subject: Start converting scripts over to "ItemName" Instead of using the item number. A few small bug fixes are also here. --- npc/006-1_Desert_mountains/pachua.txt | 39 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'npc/006-1_Desert_mountains/pachua.txt') 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: -- cgit v1.2.3-60-g2f50