summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-01-18 12:15:12 -0700
committerFate <fate-tmw@googlemail.com>2009-01-18 12:15:12 -0700
commitb6126dcef7f6f13e98b815e0d4909979b52bd29d (patch)
treeb4b0ff5090c8faefa7e6c3946d9281c71d553892 /npc
parent03e7550003650cb5cf79eb0c8d470ce8bd24ae27 (diff)
parentd66e5af9f0024f897a8d239aa5100b30c487a45b (diff)
downloadserverdata-b6126dcef7f6f13e98b815e0d4909979b52bd29d.tar.gz
serverdata-b6126dcef7f6f13e98b815e0d4909979b52bd29d.tar.bz2
serverdata-b6126dcef7f6f13e98b815e0d4909979b52bd29d.tar.xz
serverdata-b6126dcef7f6f13e98b815e0d4909979b52bd29d.zip
Merge branch 'master' into magic
Diffstat (limited to 'npc')
-rw-r--r--npc/001-1_Tulimshar/sandra.txt56
-rw-r--r--npc/015-1_Woodland/_warps.txt2
-rw-r--r--npc/015-3/_mobs.txt1
-rw-r--r--npc/015-3/_warps.txt2
-rw-r--r--npc/015-3/barrier.txt2
5 files changed, 32 insertions, 31 deletions
diff --git a/npc/001-1_Tulimshar/sandra.txt b/npc/001-1_Tulimshar/sandra.txt
index 048bfa19..314e009a 100644
--- a/npc/001-1_Tulimshar/sandra.txt
+++ b/npc/001-1_Tulimshar/sandra.txt
@@ -4,31 +4,31 @@
if(Scorp == 2) goto L_Done;
if(Scorp == 1) goto L_Progress;
- set @TEMP,rand(3);
+ set @TEMP, rand(4);
+ if(@TEMP == 0) goto L_Opening0;
if(@TEMP == 1) goto L_Opening1;
if(@TEMP == 2) goto L_Opening2;
if(@TEMP == 3) goto L_Opening3;
- if(@TEMP == 0) goto L_Opening4;
-L_Opening1:
+L_Opening0:
mes "[Sandra]";
- mes "\"In the outskirts of Tulimshar, there wanders a red scorpion. I need a favor, please help me. Will you?\"";
+ mes "\"In the outskirts of Tulimshar, there are some scorpions. I need a favor, please help me. Will you?\"";
next;
goto L_Ask;
-L_Opening2:
+L_Opening1:
mes "[Sandra]";
- mes "\"When you venture in the outskirts of Tulimshar, you can spot a red scorpion. Will you help me kill one?\"";
+ mes "\"When you venture in the outskirts of Tulimshar, you can spot scorpions. Will you help me kill some?\"";
next;
goto L_Ask;
-L_Opening3:
+L_Opening2:
mes "[Sandra]";
- mes "\"The red scorpion stinger carries many properties used in potions. Will you get some for me?\"";
+ mes "\"The scorpion stinger carries many properties used in potions. Will you get some for me?\"";
next;
goto L_Ask;
-L_Opening4:
+L_Opening3:
mes "[Sandra]";
mes "\"You look sturdy enough, will you help me get something?\"";
next;
@@ -40,26 +40,26 @@ L_Ask:
"No", L_No;
L_Yes:
- if(@TEMP == 1) goto L_Req1;
- if(@TEMP == 2) goto L_Req2;
- if(@TEMP == 3) goto L_Req3;
+ set @TEMP, rand(3);
if(@TEMP == 0) goto L_Req1;
+ if(@TEMP == 1) goto L_Req2;
+ if(@TEMP == 2) goto L_Req3;
-L_Req1:
+L_Req0:
mes "[Sandra]";
- mes "\"I need you to slaughter the red scorpion found outside of Tulimshar and bring me 5 [Red Stingers].\"";
+ mes "\"I need 5 [Scorpion Stingers] and 1 [Red Scoprion Stinger].\"";
next;
goto L_Set;
-L_Req2:
+L_Req1:
mes "[Sandra]";
- mes "\"I heard a while ago that the stinger of a red scorpion can be used for medical purposes. I need you to help me get 5 [Red Stingers].\"";
+ mes "\"I heard a while ago that scorpion stingers can be used for medical purposes. I need you to help me get 5 [Scorpion Stingers] and 1 [Red Scoprion Stinger].\"";
next;
goto L_Set;
-L_Req3:
+L_Req2:
mes "[Sandra]";
- mes "\"Bring me 5 [Red Stingers] and i will reward you greatly.\"";
+ mes "\"Bring me 5 [Scorpion Stingers] and 1 [Red Scoprion Stinger]. I'll give you something if you do.\"";
next;
goto L_Set;
@@ -70,23 +70,25 @@ L_Set:
close;
L_Progress:
- if (countitem(517) >= 5) goto L_Have;
- mes "[Sandra]";
- mes "\"Please hurry and bring me 5 [Red Stingers].\"";
- close;
-
-L_Have:
+ if (countitem(507) < 5) goto L_NotEnough;
+ if (countitem(517) < 1) goto L_NotEnough;
mes "[Sandra]";
mes "\"Excellent!";
- mes "You brought me 5 [Red Stingers]!\"";
+ mes "You brought me 5 [Scorpion Stingers] and 1 [Red Scoprion Stinger]!\"";
getinventorylist;
- if (@inventorylist_count == 100 && countitem(517) > 5) goto L_TooMany;
- delitem 517, 5;
+ if ((@inventorylist_count - (countitem(507) == 5) - (countitem(517) == 1)) > 99 - (countitem(1199) == 0)) goto L_TooMany;
+ delitem 507, 5;
+ delitem 517, 1;
getitem 1200, 1;
getitem 1199, 100;
set Scorp, 2;
close;
+L_NotEnough:
+ mes "[Sandra]";
+ mes "\"Please hurry and bring me 5 [Scorpion Stingers] and 1 [Red Scoprion Stinger].\"";
+ close;
+
L_Done:
mes "[Sandra]";
mes "\"Thank you for all your help!\"";
diff --git a/npc/015-1_Woodland/_warps.txt b/npc/015-1_Woodland/_warps.txt
index cb9044e9..75e377a4 100644
--- a/npc/015-1_Woodland/_warps.txt
+++ b/npc/015-1_Woodland/_warps.txt
@@ -1,4 +1,4 @@
// 015-1 Woodland warps
015-1.gat,93,55 warp ToWoodland -1,0,010-1.gat,15,55
-015-1.gat,59,31 warp to 015_3 -1,-1,015-3.gat,31,36
+015-1.gat,59,31 warp to 015_3 -1,-1,015-3.gat,31,42
diff --git a/npc/015-3/_mobs.txt b/npc/015-3/_mobs.txt
index 7ed7bc67..1c1d9941 100644
--- a/npc/015-3/_mobs.txt
+++ b/npc/015-3/_mobs.txt
@@ -4,7 +4,6 @@
015-3.gat,29,31,2,2 monster Maggots 1002,2,0,0,Mob015-3::On1002
015-3.gat,23,19,1,1 monster Maggots 1002,1,0,0,Mob015-3::On1002
015-3.gat,40,19,1,1 monster Spider 1012,1,0,0,Mob015-3::On1012
-015-3.gat,29,35,2,1 monster Spider 1012,1,0,0,Mob015-3::On1012
015-3.gat,0,0,0 script Mob015-3 -1,{
diff --git a/npc/015-3/_warps.txt b/npc/015-3/_warps.txt
index 90107d63..8b8a83d7 100644
--- a/npc/015-3/_warps.txt
+++ b/npc/015-3/_warps.txt
@@ -1,3 +1,3 @@
// 015-3 warps
-015-3.gat,31,37 warp to 015-1 -1,-1,015-1.gat,59,32
+015-3.gat,31,43 warp to 015-1 -1,-1,015-1.gat,59,32
diff --git a/npc/015-3/barrier.txt b/npc/015-3/barrier.txt
index 4039e9f5..3abffbb1 100644
--- a/npc/015-3/barrier.txt
+++ b/npc/015-3/barrier.txt
@@ -1,7 +1,7 @@
// You can only enter the cat cave naked, otherwise the cat's reaction scares
// you away. You can also get in while wearing the cat ears.
-015-3.gat,31,36,0 script #CatCaveBarrier 127,1,1,{
+015-3.gat,31,42,0 script #CatCaveBarrier 127,1,1,{
if (getequipid(equip_head) != 1217 && (getequipid(equip_head) > 0 ||
getequipid(equip_shield) > 0 ||