summaryrefslogtreecommitdiff
path: root/npc/018-2_Woodland_mining_camp/miners.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-05-22 09:02:47 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-05-22 09:02:47 +0200
commit7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33 (patch)
tree3fa489c6e174d16cb5d6a95e5640a0c8b6358625 /npc/018-2_Woodland_mining_camp/miners.txt
parent856ab6deb68829d37e8fb8e8717aefacfe9f37e6 (diff)
downloadserverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.gz
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.bz2
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.xz
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.zip
some fixes and modifications about towel event and warptowel:
fix bug in stranger npc change amount of gem powders given for one gem make warp towel loose its color randomly
Diffstat (limited to 'npc/018-2_Woodland_mining_camp/miners.txt')
-rw-r--r--npc/018-2_Woodland_mining_camp/miners.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/npc/018-2_Woodland_mining_camp/miners.txt b/npc/018-2_Woodland_mining_camp/miners.txt
index 5763ae62..1e337036 100644
--- a/npc/018-2_Woodland_mining_camp/miners.txt
+++ b/npc/018-2_Woodland_mining_camp/miners.txt
@@ -2,6 +2,9 @@
// Authors: Ali-G, enchilado, Jenalya
018-2.gat,85,23,0 script Malek 109,{
+
+ set @MIN_GEM_AMOUNT, 7;
+
if (Inspector == 10) goto L_NohMask;
mes "[Malek]";
@@ -119,12 +122,12 @@ L_Choose_Gem:
if (countitem(@gem$) < 1) goto L_no_gem;
if (@inventorylist_count == 100 && countitem(@gem$) > 1) goto L_TooMany;
delitem @gem$, 1;
- if (@gem$ == "GemRawWhite") getitem "GemPowderWhite", 5;
- if (@gem$ == "GemRawRed") getitem "GemPowderRed", 5;
- if (@gem$ == "GemRawGreen") getitem "GemPowderGreen", 5;
- if (@gem$ == "GemRawBlue") getitem "GemPowderBlue", 5;
- if (@gem$ == "GemRawYellow") getitem "GemPowderYellow", 5;
- if (@gem$ == "GemRawPurple") getitem "GemPowderPurple", 5;
+ if (@gem$ == "GemRawWhite") getitem "GemPowderWhite", @MIN_GEM_AMOUNT + rand(6) + rand(6);
+ if (@gem$ == "GemRawRed") getitem "GemPowderRed", @MIN_GEM_AMOUNT + rand(6);
+ if (@gem$ == "GemRawGreen") getitem "GemPowderGreen", @MIN_GEM_AMOUNT + rand(6);
+ if (@gem$ == "GemRawBlue") getitem "GemPowderBlue", @MIN_GEM_AMOUNT + rand(6);
+ if (@gem$ == "GemRawYellow") getitem "GemPowderYellow", @MIN_GEM_AMOUNT + rand(6);
+ if (@gem$ == "GemRawPurple") getitem "GemPowderPurple", @MIN_GEM_AMOUNT + rand(6);
mes "[Malek]";
mes "\"Here's your powder. Hope it's fine enough for you.\"";