From b8e9095461ffd09ec7aec7cfcbcab502ea813bab Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 24 Jan 2009 13:17:14 +0000 Subject: Finish conversion to "ItemName" Some of the more complicated scripts (bleach/dye, for example) can't be converted so easily. --- npc/015-1_Woodland/sword.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'npc/015-1_Woodland') diff --git a/npc/015-1_Woodland/sword.txt b/npc/015-1_Woodland/sword.txt index 0128d819..75142de3 100644 --- a/npc/015-1_Woodland/sword.txt +++ b/npc/015-1_Woodland/sword.txt @@ -16,8 +16,6 @@ L_message: set @STATUS_W12, 5; set @STATUS_W11_12, 6; set @STATUS_L2_ALLSPELLS, 7; - set @ORE, 640; - set @IRONPOWDER, 704; if (@Q_status == @STATUS_INITIAL) goto L_Initial; if (@Q_status == @STATUS_LEARNED_FLAREDART) goto L_FlareStage; @@ -311,7 +309,7 @@ L_L2_W10: "OK.", -, "No way.", L_farewell; - if (countitem(@ORE) < 1) + if (countitem("IronOre") < 1) goto L_no_ore; if (MPQUEST && (Mobpt < 10000)) goto L_lacking_mobpoints; @@ -321,8 +319,8 @@ L_L2_W10: mes "[1000 experience points]"; set Mobpt, Mobpt - 10000; getexp 1000, 0; - delitem @ORE, 1; - getitem @IRONPOWDER, 5; + delitem "IronOre", 1; + getitem "IronPowder", 5; set @Q_status, @STATUS_L2_ALLSPELLS; callsub S_update_var; next; -- cgit v1.2.3-70-g09d2