diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-01-23 16:52:05 +0000 |
commit | 4e98d4621f225766abb32d30ab6cea8d2739a419 (patch) | |
tree | 1ca67ca0a8465848870c91dfdf60baffc9767ba4 /npc/008-1_Hurnscald_outskirts | |
parent | 29bb178e6ac12d8edb32b89c336d46178421bd83 (diff) | |
download | serverdata-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/008-1_Hurnscald_outskirts')
-rw-r--r-- | npc/008-1_Hurnscald_outskirts/hinnak.txt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/npc/008-1_Hurnscald_outskirts/hinnak.txt b/npc/008-1_Hurnscald_outskirts/hinnak.txt index c2a547d4..0aa10570 100644 --- a/npc/008-1_Hurnscald_outskirts/hinnak.txt +++ b/npc/008-1_Hurnscald_outskirts/hinnak.txt @@ -56,19 +56,17 @@ L_Exchange: mes "\"Have you got the 10 antennae?\""; next; - if (countitem(614) < 10) goto L_Exchange_Notenough; - menu "Not yet, but I am working on it.", -, "Sure, here they are!", L_Exchange_Exchange; close; L_Exchange_Exchange: - if (countitem(614) < 10) goto L_Exchange_Notenough; + if (countitem("PinkAntenna") < 10) goto L_Exchange_Notenough; getinventorylist; - if (@inventorylist_count == 100) goto L_Exchange_TooMany; - delitem 614, 10; - getitem 623, 1; + if (@inventorylist_count == 100 && countitem("PinkAntenna") > 10) goto L_Exchange_TooMany; + delitem "PinkAntenna", 10; + getitem "Scythe", 1; set QUEST_Scythe_state, 2; mes "[Farmer Hinnak]"; mes "\"Thank you very much. I've got something for you. My old scythe. Maybe you can use it as a weapon. It is a bit cumbersome but its strikes are deadly.\""; @@ -88,8 +86,6 @@ L_ThanksAgain: mes "[Farmer Hinnak]"; mes "\"Good to see you again, and thanks again for helping me with the pinkies!\""; - set @BEER, 539; - next; menu @@ -115,8 +111,8 @@ L_ThanksAgain: "I don't have any.", L_NoBeer; L_GiveBeer: - if (countitem(@BEER) < 1) goto L_NoBeer; - delitem @BEER, 1; + if (countitem("Beer") < 1) goto L_NoBeer; + delitem "Beer", 1; mes "[Farmer Hinnak]"; mes "Hinnak takes a sip."; mes "\"Aaah! Nothing like a well-deserved beer after a long day of tending the crops!\""; |