summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-11-27 23:56:11 +0100
committerJared Adams <jaxad0127@gmail.com>2009-11-27 16:04:41 -0700
commit9ade21108f2cffaf0faac0c68885b6a70d3c07e3 (patch)
treeca8b15e8ea4a97113823968745e911ce5f0fa027
parent424397aecafe239c03c7ed675a5ac4817efa58ad (diff)
downloadserverdata-9ade21108f2cffaf0faac0c68885b6a70d3c07e3.tar.gz
serverdata-9ade21108f2cffaf0faac0c68885b6a70d3c07e3.tar.bz2
serverdata-9ade21108f2cffaf0faac0c68885b6a70d3c07e3.tar.xz
serverdata-9ade21108f2cffaf0faac0c68885b6a70d3c07e3.zip
Fixing a bug where you could not talk to NPCs.
Problem: When you try to talk to some NPCs and these NPC don't speak to you, then after that you can't talk to any other NPC until the client is restarted. Solution: The responsibilities of the rules NPC are moved to Ian. The well and the tree are talking to everyone now.
-rw-r--r--npc/001-1_Tulimshar/_import.txt1
-rw-r--r--npc/001-1_Tulimshar/guide.txt8
-rw-r--r--npc/001-1_Tulimshar/rules.txt9
-rw-r--r--npc/005-1_Snake_desert/spirit.txt5
-rw-r--r--npc/005-1_Snake_desert/tree.txt2
5 files changed, 13 insertions, 12 deletions
diff --git a/npc/001-1_Tulimshar/_import.txt b/npc/001-1_Tulimshar/_import.txt
index 33d106c4..b33bbee9 100644
--- a/npc/001-1_Tulimshar/_import.txt
+++ b/npc/001-1_Tulimshar/_import.txt
@@ -16,7 +16,6 @@ npc: npc/001-1_Tulimshar/merchant.txt
npc: npc/001-1_Tulimshar/monster_guide.txt
npc: npc/001-1_Tulimshar/nodrop.txt
npc: npc/001-1_Tulimshar/rewards_master.txt
-npc: npc/001-1_Tulimshar/rules.txt
npc: npc/001-1_Tulimshar/sandra.txt
npc: npc/001-1_Tulimshar/soul-menhir.txt
npc: npc/001-1_Tulimshar/trader.txt
diff --git a/npc/001-1_Tulimshar/guide.txt b/npc/001-1_Tulimshar/guide.txt
index 16be310b..b7f999c7 100644
--- a/npc/001-1_Tulimshar/guide.txt
+++ b/npc/001-1_Tulimshar/guide.txt
@@ -1,6 +1,6 @@
//
-001-1.gat,33,27,0 script Ian 102,{
+001-1.gat,32,27,0 script Ian 102,4,4,{
if (TUT_var & 1 == 1 && TUT_var & 2 == 0 && BaseLevel >= 10) callsub S_Grad;
mes "[Ian the Guide]";
mes "\"Would you like to know about something?\"";
@@ -164,4 +164,10 @@ L_TooMany:
mes "\"I wanted to give you something, but you don't have room for it.\"";
next;
return;
+
+OnTouch:
+ if (TUT_var & 1 == 1) close;
+ callfunc "GameRules";
+ mes "Ian, the trainer, can help you get to know the game.";
+ close;
}
diff --git a/npc/001-1_Tulimshar/rules.txt b/npc/001-1_Tulimshar/rules.txt
deleted file mode 100644
index 1b58c12f..00000000
--- a/npc/001-1_Tulimshar/rules.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-//
-
-//001-1.gat,29,28,0 script #Rules 0,1,1,{
-001-1.gat,29,28,0 script #Rules 127,1,1,{
- if (TUT_var & 1 == 1) close;
- callfunc "GameRules";
- mes "Ian, the trainer, can help you get to know the game.";
- close;
-}
diff --git a/npc/005-1_Snake_desert/spirit.txt b/npc/005-1_Snake_desert/spirit.txt
index 1af21869..d6723c8e 100644
--- a/npc/005-1_Snake_desert/spirit.txt
+++ b/npc/005-1_Snake_desert/spirit.txt
@@ -1,7 +1,10 @@
function script EarthImpTouch {
if (getskilllv(SKILL_MAGIC))
goto L_message;
- close;
+
+ mes "[Well]";
+ mes "You hear noises from within the well.";
+ close;
L_message:
set @Q_MASK, NIBBLE_0_MASK;
diff --git a/npc/005-1_Snake_desert/tree.txt b/npc/005-1_Snake_desert/tree.txt
index 4eea7845..54b7ed1c 100644
--- a/npc/005-1_Snake_desert/tree.txt
+++ b/npc/005-1_Snake_desert/tree.txt
@@ -61,6 +61,8 @@ function script QuestTreeTouch {
if ((MAGIC_FLAGS & (MFLAG_KNOWS_DRUIDTREE | MFLAG_KNOWS_CUTTREE)) > 0) //i.e., both are set
goto L_both;
+ mes "[Dying Tree]";
+ mes "You see a strange tree.";
close;
L_cut: