diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-13 00:36:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-13 00:36:08 -0300 |
commit | 68279f23bd26dcbd7bd9d3748aeab294720186fa (patch) | |
tree | 3ee26f4de0a9110b2f2938dfeb138431aa96848d | |
parent | 4338c553240f8bd06fc0cba7306eee37c4c638ef (diff) | |
download | serverdata-68279f23bd26dcbd7bd9d3748aeab294720186fa.tar.gz serverdata-68279f23bd26dcbd7bd9d3748aeab294720186fa.tar.bz2 serverdata-68279f23bd26dcbd7bd9d3748aeab294720186fa.tar.xz serverdata-68279f23bd26dcbd7bd9d3748aeab294720186fa.zip |
I probably will need to put 001-2-32 inside the Instance.
Either that, or I get a replacement for Hector.
-rw-r--r-- | npc/001-2-32/doors.txt | 14 | ||||
-rw-r--r-- | npc/001-2-34/doors.txt | 2 |
2 files changed, 13 insertions, 3 deletions
diff --git a/npc/001-2-32/doors.txt b/npc/001-2-32/doors.txt index ba33200f..d8917f66 100644 --- a/npc/001-2-32/doors.txt +++ b/npc/001-2-32/doors.txt @@ -1,13 +1,14 @@ // Evol scripts. // Author: // Reid +// Jesusalva // Description: // Doors NPCs. 001-2-32,33,29,0 script ToFightRoom#001-2-32 NPC_HIDDEN,0,0,{ OnTouch: - if (mobcount("001-2-35","all") > 0) + if (getq(ArtisQuests_TrainingLegion) < 3) { narrator l("You hear some sound behind the door."), @@ -15,7 +16,16 @@ OnTouch: } else { - warp "001-2-35", 24, 29; + .@mapn$="atl2@"+getcharid(0); + if (isinstance(.@q2) && .@q2 > 0) + { + warp .@mapn$, 24, 29; // FIXME "001-2-35" + } else { + narrator + l("You hear some sound behind the door."), + l("Somebody is probably training, better wait for him to finish."); + } + } closeclientdialog; diff --git a/npc/001-2-34/doors.txt b/npc/001-2-34/doors.txt index e2ffee1f..6161dfa4 100644 --- a/npc/001-2-34/doors.txt +++ b/npc/001-2-34/doors.txt @@ -10,7 +10,7 @@ 001-2-34,23,29,0 script ToTrainingRoom#001-2-34 NPC_HIDDEN,0,0,{ OnTouch: - .@q2=getq2(ArtisQuests_TrainingLegion); + .@q2=getq2(ArtisQuests_TrainingLegion); // Map name limit: 4 chars (atl1) .@mapn$="atl1@"+getcharid(0); if (isinstance(.@q2) && .@q2 > 0) { |