From 6982d561213de03b275eb095758869ab89fdad3c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 12 Mar 2018 18:40:03 -0300 Subject: Restricted warp to 009-2 (GM-only, needed patch) --- npc/003-1-3/thief.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'npc/003-1-3/thief.txt') diff --git a/npc/003-1-3/thief.txt b/npc/003-1-3/thief.txt index faea050d5..36bf75f0c 100644 --- a/npc/003-1-3/thief.txt +++ b/npc/003-1-3/thief.txt @@ -2,9 +2,9 @@ // Author: // Jesusalva // Description: -// Temporary NPC to block path to Halinarzo +// Temporary NPC to block path to Halinarzo, later a controlled warp -003-1-3,45,35,0 script Thief#temp003 NPC_PLAYER,{ +003-1-3,45,35,0 script Thief#temp003 NPC_PLAYER,0,0,{ mesn; mesq l("I am from the Thief's Guild of Hurnscald."); @@ -14,6 +14,20 @@ mesq l("Call the High Council, if you may. I won't free this path any time soon!"); close; +OnTouch: + if (getgmlevel()) goto L_Warp; // if (BaseLevel >= 15) and this NPC must be invisible + warp "003-1-3", 45, 36; + percentheal -10,0; + mesn; + mesq l("Stop there! No one is allowed past this point! Stand back!!"); + mes ""; + mes col("The thief pushes you with so much strength, that you get hurt.",9); + close; + +L_Warp: + warp "009-2", 70, 179; + close; + OnInit: .@npcId = getnpcid(0, .name$); setunitdata(.@npcId, UDT_HEADTOP, 1308); // Dress @@ -24,7 +38,7 @@ OnInit: setunitdata(.@npcId, UDT_HAIRCOLOR, 5); .sex = G_MALE; - .distance = 3; + .distance = 4; end; } -- cgit v1.2.3-60-g2f50