From ffd4b2f879843aad88c7d5aa31ac1ee583ee3036 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 5 May 2019 01:20:44 -0300 Subject: Warn players below level 30 that disembarking at Tulimshar during a siege might be a bad idea. Nard's ship only. --- npc/002-3/doors.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'npc/002-3') diff --git a/npc/002-3/doors.txt b/npc/002-3/doors.txt index d6f6b5135..08f7fa94a 100644 --- a/npc/002-3/doors.txt +++ b/npc/002-3/doors.txt @@ -24,10 +24,26 @@ OnTouch: close; } if (LOCATION$ == "Tulim") { + if ($@MK_SCENE == MK_SIEGE_TULIM && BaseLevel < 30) { + showavatar NPC_NARD; + setcamnpc "Nard"; + mesn l("Nard"); + mesc l("The Monster Army is currently sieging Tulimshar. There are hundreds of dangerous monsters out there right now."), 1; + next; + mesn l("Nard"); + mesc l("I would advise you to remain here in the ship, they should leave in a few minutes, but I will not force you."), 1; + next; + mesn l("Nard"); + mesc l("Just beware that if you leave, you might get killed really quickly. No death penalty, though."), 1; + next; + mesc l("Leave the ship? The town have no death penalty and is under a global event."), 1; + if (askyesno() == ASK_NO) + close; + } warp "003-1", 81, 68; close; } - debugmes "Script error: 002-3 door"; + Exception("Script error: 002-3 door"); close; -- cgit v1.2.3-60-g2f50