From 5cc903fae5fe912ce65f3ff48e7f5ee9391c1de1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 May 2022 13:13:29 -0300 Subject: Minimum level 30 even if reborn --- npc/014-2-2/gemini.txt | 5 +++++ npc/014-2-2/valia.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/npc/014-2-2/gemini.txt b/npc/014-2-2/gemini.txt index bd6d12554..445d72df1 100644 --- a/npc/014-2-2/gemini.txt +++ b/npc/014-2-2/gemini.txt @@ -27,6 +27,11 @@ OnCore: @mystatus = $@VALIA_STATUS[.@p]; switch ($@VALIA_STATUS[.@p]) { case 1: // Quest initiated + // Oops! You do not have enough level! + if (BaseLevel < 30) { + warp "014-2-2", 36, 24; + end; + } // Spawn monsters areamonster("val1@"+.@p, 20, 20, 60, 60, strmobinfo(1, GreenSlime), GreenSlime, (BaseLevel/15), "Valia::OnGSlime"); areamonster("val1@"+.@p, 20, 20, 70, 60, strmobinfo(1, LogHead), LogHead, (BaseLevel/15), "Valia::OnLHead"); diff --git a/npc/014-2-2/valia.txt b/npc/014-2-2/valia.txt index 09d02c6a3..abd8b7584 100644 --- a/npc/014-2-2/valia.txt +++ b/npc/014-2-2/valia.txt @@ -67,6 +67,9 @@ function script GeminiFail { .@q = getq(HurnscaldQuest_Gemini); mesn; mesq l("Greetings, adventurer. I am Valia Gemini, owner of this abode."); + // If your level is too low (just reborn), it could break scripts + // So close dialog here. + if (BaseLevel < 30) close; next; mesn; mesq l("I usually don't let anyone in, but I had to make an exception for the likes of you."); -- cgit v1.2.3-60-g2f50