diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2012-05-23 13:18:52 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2012-05-23 13:18:52 +0200 |
commit | 41e84b961446b5f3c64bcac387139a817d5c959b (patch) | |
tree | b10889d3617095968dbd4005757f1cea824cf4f7 /world/map/npc/001-1/trader.txt | |
parent | 92ed81e0abeb739f58865e8bd48a968ed22de8b3 (diff) | |
download | serverdata-41e84b961446b5f3c64bcac387139a817d5c959b.tar.gz serverdata-41e84b961446b5f3c64bcac387139a817d5c959b.tar.bz2 serverdata-41e84b961446b5f3c64bcac387139a817d5c959b.tar.xz serverdata-41e84b961446b5f3c64bcac387139a817d5c959b.zip |
Use newly defined constants for SKILL_EMOTE, SKILL_TRADE and SKILL_PARTY instead of local variables.
Diffstat (limited to 'world/map/npc/001-1/trader.txt')
-rw-r--r-- | world/map/npc/001-1/trader.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/world/map/npc/001-1/trader.txt b/world/map/npc/001-1/trader.txt index 5976ffb9..b4157ab2 100644 --- a/world/map/npc/001-1/trader.txt +++ b/world/map/npc/001-1/trader.txt @@ -4,12 +4,11 @@ // Reviewed by: Wombat 001-1.gat,57,33,0|script|Trader|115,{ - set @TRADE_SKILL, 2; set @Ironprice, 1000; set @Sulphurprice, 1200; set @Potionprice, 500; - if ((getskilllv(@TRADE_SKILL) > 0) && BaseLevel >= 25) goto L_Trade; - if (getskilllv(@TRADE_SKILL) > 0) goto L_Later; + if ((getskilllv(SKILL_TRADE) > 0) && BaseLevel >= 25) goto L_Trade; + if (getskilllv(SKILL_TRADE) > 0) goto L_Later; mes "[Trader]"; mes "\"Hello. I came here to trade wares with the people of Tulimshar. Unfortunately for you, I've traded everything I had.\""; @@ -40,7 +39,7 @@ L_Except: L_Teach: if (Zeny < 5) goto L_NotEnoughMoney; set Zeny, Zeny - 5; - setskill @TRADE_SKILL, 1; + setskill SKILL_TRADE, 1; mes "[Trader]"; mes "\"You can initiate trade with someone by right-clicking on them and choosing trade."; mes "You'll both add the items and set the GP you're putting up then press propose trade."; @@ -160,7 +159,6 @@ L_No: goto L_Close; L_Close: - set @TRADE_SKILL, 0; set @Ironprice, 0; set @Sulphurprice, 0; set @Potionprice, 0; |