summaryrefslogtreecommitdiff
path: root/world/map/npc/001-1/trader.txt
diff options
context:
space:
mode:
authorThe Kandiman <kandiman@kandiman.(none)>2011-08-27 00:54:21 -0400
committerJessica Tölke <jtoelke@mail.upb.de>2011-08-27 18:14:36 +0200
commitc8e0ce7f52ae0c8c4965170c9a3382005fd4231d (patch)
tree58bcf383f2220d3a45ea39c828fd25fc8db59058 /world/map/npc/001-1/trader.txt
parent4b5ae2226b50c2c381ed7b9b0459b1778d2ac1ee (diff)
downloadserverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.gz
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.bz2
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.xz
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.zip
First set of conversions to using 4 spaces in place of tabs. Also replaced tabs with pipes in headers. Map 001-1 complete.
Diffstat (limited to 'world/map/npc/001-1/trader.txt')
-rw-r--r--world/map/npc/001-1/trader.txt257
1 files changed, 123 insertions, 134 deletions
diff --git a/world/map/npc/001-1/trader.txt b/world/map/npc/001-1/trader.txt
index 064597e0..031feb8f 100644
--- a/world/map/npc/001-1/trader.txt
+++ b/world/map/npc/001-1/trader.txt
@@ -3,170 +3,159 @@
// Updated by: TheKandiman
// 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;
-
- mes "[Trader]";
- mes "\"Hello. I came here to trade wares with the people of Tulimshar. Unfortunately for you, I've traded everything I had.\"";
- next;
- menu
- "Oh. I'll go then.", -,
- "You don't have anything?", L_More;
- close;
+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;
+
+ mes "[Trader]";
+ mes "\"Hello. I came here to trade wares with the people of Tulimshar. Unfortunately for you, I've traded everything I had.\"";
+ next;
+ menu
+ "Oh. I'll go then.", -,
+ "You don't have anything?", L_More;
+ close;
L_More:
- mes "[Trader]";
- mes "\"No. I have nothing for you. Except...\"";
- next;
- menu
- "Yes?", L_Except,
- "Ok then.", -;
- close;
+ mes "[Trader]";
+ mes "\"No. I have nothing for you. Except...\"";
+ next;
+ menu
+ "Yes?", L_Except,
+ "Ok then.", -;
+ close;
L_Except:
- mes "[Trader]";
- mes "\"I could teach you how to trade. It'll cost you 5GP.\"";
- next;
- menu
- "Sure.", L_Teach,
- "No thank you.", -;
- close;
+ mes "[Trader]";
+ mes "\"I could teach you how to trade. It'll cost you 5GP.\"";
+ next;
+ menu
+ "Sure.", L_Teach,
+ "No thank you.", -;
+ close;
L_Teach:
- if (zeny < 5) goto L_NotEnoughMoney;
- set zeny, zeny - 5;
- setskill @TRADE_SKILL, 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.";
- mes "After both parties have proposed their side, you can both review the trade, and then accept or reject by closing the window.\"";
- next;
- mes "[Trader]";
- mes "\"Items added to the trade cannot be removed, and so mistakes have to be dealt with by canceling the trade.";
- mes "You need to press the change button to let the other person know about GP changes.\"";
- next;
- goto L_Later;
+ if (zeny < 5) goto L_NotEnoughMoney;
+ set zeny, zeny - 5;
+ setskill @TRADE_SKILL, 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.";
+ mes "After both parties have proposed their side, you can both review the trade, and then accept or reject by closing the window.\"";
+ next;
+ mes "[Trader]";
+ mes "\"Items added to the trade cannot be removed, and so mistakes have to be dealt with by canceling the trade.";
+ mes "You need to press the change button to let the other person know about GP changes.\"";
+ next;
+ goto L_Later;
L_Later:
- mes "[Trader]";
- mes "\"Please feel free to check back later. I'm expecting a large shipment of goods to trade.\"";
- close;
+ mes "[Trader]";
+ mes "\"Please feel free to check back later. I'm expecting a large shipment of goods to trade.\"";
+ close;
L_Trade:
- mes "[Trader]";
- mes "\"Welcome back! My shipment came in and I have a bunch of things that I can trade now. What would you like?\"";
- goto L_Trademenu;
+ mes "[Trader]";
+ mes "\"Welcome back! My shipment came in and I have a bunch of things that I can trade now. What would you like?\"";
+ goto L_Trademenu;
L_Trademenu:
- menu
- "Do you have Iron Powder?", L_Iron,
- "How about Sulphur Powder?", L_Sulphur,
- "I need Medium Healing Potions.", L_Healpots,
- "I think I have everything I need, thanks.", -;
- close;
+ menu
+ "Do you have Iron Powder?", L_Iron,
+ "How about Sulphur Powder?", L_Sulphur,
+ "I need Medium Healing Potions.", L_Healpots,
+ "I think I have everything I need, thanks.", -;
+ close;
L_Iron:
- mes "[Trader]";
- mes "\"I do have a few of those. I will give you 4 Iron Powders for 1 Iron Ore and " + @Ironprice + "gp.\"";
- menu
- "Sure.", L_Ipowder,
- "What a ripoff! No way!", -;
- close;
+ mes "[Trader]";
+ mes "\"I do have a few of those. I will give you 4 Iron Powders for 1 Iron Ore and " + @Ironprice + "gp.\"";
+ menu
+ "Sure.", L_Ipowder,
+ "What a ripoff! No way!", -;
+ close;
L_Sulphur:
- mes "[Trader]";
- mes "\"I can trade you 5 Sulphur Powders for 1 Pile of Ash and " + @Sulphurprice + "gp.\"";
- menu
- "Here you go.", L_Spowder,
- "Are you nuts?! Forget it!", -;
- close;
+ mes "[Trader]";
+ mes "\"I can trade you 5 Sulphur Powders for 1 Pile of Ash and " + @Sulphurprice + "gp.\"";
+ menu
+ "Here you go.", L_Spowder,
+ "Are you nuts?! Forget it!", -;
+ close;
L_Healpots:
- mes "[Trader]";
- mes "\"Healing potions are always useful, but I rarely need anything larger than the small ones. I will happily trade you 1 Medium Healing Potion for 3 Small Healing Potions and " + @Potionprice + "gp.\"";
- menu
- "Alright.", L_Pots,
- "Whoa, that's way too much.", -;
- close;
+ mes "[Trader]";
+ mes "\"Healing potions are always useful, but I rarely need anything larger than the small ones. I will happily trade you 1 Medium Healing Potion for 3 Small Healing Potions and " + @Potionprice + "gp.\"";
+ menu
+ "Alright.", L_Pots,
+ "Whoa, that's way too much.", -;
+ close;
L_Ipowder:
- if (countitem("IronOre") < 1) goto L_Missing;
- if (zeny < @Ironprice) goto L_NotEnoughMoney;
- getinventorylist;
- if (@inventorylist_count == 100
- && countitem("IronOre") > 1
- && countitem("IronPowder") < 1)
- goto L_Full;
- delitem "IronOre", 1;
- set zeny, zeny - @Ironprice;
- getitem "IronPowder", 4;
- mes "[Trader]";
- mes "\"There you go. Would you like to trade anything else?\"";
- menu
- "Yes.", L_Trademenu,
- "No.", L_No;
- close;
+ if (countitem("IronOre") < 1) goto L_Missing;
+ if (zeny < @Ironprice) goto L_NotEnoughMoney;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("IronOre") > 1 && countitem("IronPowder") < 1) goto L_Full;
+ delitem "IronOre", 1;
+ set zeny, zeny - @Ironprice;
+ getitem "IronPowder", 4;
+ mes "[Trader]";
+ mes "\"There you go. Would you like to trade anything else?\"";
+ menu
+ "Yes.", L_Trademenu,
+ "No.", L_No;
+ close;
L_Spowder:
- if (countitem("PileOfAsh") < 1) goto L_Missing;
- if (zeny < @Sulphurprice) goto L_NotEnoughMoney;
- getinventorylist;
- if (@inventorylist_count == 100
- && countitem("PileOfAsh") > 1
- && countitem("SulphurPowder") < 1)
- goto L_Full;
- delitem "PileOfAsh", 1;
- set zeny, zeny - @Sulphurprice;
- getitem "SulphurPowder", 5;
- mes "[Trader]";
- mes "\"There you go. Would you like to trade anything else?\"";
- menu
- "Yes.", L_Trademenu,
- "No.", L_No;
- close;
+ if (countitem("PileOfAsh") < 1) goto L_Missing;
+ if (zeny < @Sulphurprice) goto L_NotEnoughMoney;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("PileOfAsh") > 1 && countitem("SulphurPowder") < 1) goto L_Full;
+ delitem "PileOfAsh", 1;
+ set zeny, zeny - @Sulphurprice;
+ getitem "SulphurPowder", 5;
+ mes "[Trader]";
+ mes "\"There you go. Would you like to trade anything else?\"";
+ menu
+ "Yes.", L_Trademenu,
+ "No.", L_No;
+ close;
L_Pots:
- if (countitem("SmallHealingPotion") < 3) goto L_Missing;
- if (zeny < @Potionprice) goto L_NotEnoughMoney;
- getinventorylist;
- if (@inventorylist_count == 100
- && countitem("SmallHealingPotion") > 3
- && countitem("MediumHealingPotion") < 1)
- goto L_Full;
- delitem "SmallHealingPotion", 3;
- set zeny, zeny - @Potionprice;
- getitem "MediumHealingPotion", 1;
- mes "[Trader]";
- mes "\"There you go. Would you like to trade anything else?\"";
- menu
- "Yes.", L_Trademenu,
- "No.", L_No;
- close;
+ if (countitem("SmallHealingPotion") < 3) goto L_Missing;
+ if (zeny < @Potionprice) goto L_NotEnoughMoney;
+ getinventorylist;
+ if (@inventorylist_count == 100 && countitem("SmallHealingPotion") > 3 && countitem("MediumHealingPotion") < 1) goto L_Full;
+ delitem "SmallHealingPotion", 3;
+ set zeny, zeny - @Potionprice;
+ getitem "MediumHealingPotion", 1;
+ mes "[Trader]";
+ mes "\"There you go. Would you like to trade anything else?\"";
+ menu
+ "Yes.", L_Trademenu,
+ "No.", L_No;
+ close;
L_Full:
- mes "[Trader]";
- mes "\"You must have been making a lot of trades...your bag is completely full! Come back after you've made some room.\"";
- close;
+ mes "[Trader]";
+ mes "\"You must have been making a lot of trades...your bag is completely full! Come back after you've made some room.\"";
+ close;
L_Missing:
- mes "[Trader]";
- mes "\"It looks like you're missing some items. Please come back when you have enough to trade.\"";
- close;
+ mes "[Trader]";
+ mes "\"It looks like you're missing some items. Please come back when you have enough to trade.\"";
+ close;
L_NotEnoughMoney:
- mes "[Trader]";
- mes "\"You don't have enough money.\"";
- close;
+ mes "[Trader]";
+ mes "\"You don't have enough money.\"";
+ close;
L_No:
- mes "[Trader]";
- mes "\"Have a great day!\"";
- close;
+ mes "[Trader]";
+ mes "\"Have a great day!\"";
+ close;
}