From 9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jun 2018 02:11:01 -0300 Subject: Handle penalty. You'll need 90% MP to complete a gate (so arrange MP heal items) Total downtime is 30 seconds. The "5 minutes time frame" seems too little? Penalty is 10% HP each simultaneous casting + 5% by itself. --- npc/soren/main.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'npc/soren/main.txt') diff --git a/npc/soren/main.txt b/npc/soren/main.txt index b9cead7a4..5e7963e80 100644 --- a/npc/soren/main.txt +++ b/npc/soren/main.txt @@ -95,6 +95,20 @@ OnTimer29000: stopnpctimer; .st=0; end; } + if (Sp < MaxSp/100*15) { + npctalk l("Disarm process aborted: Insufficient mana to proceed."); + stopnpctimer; .st=0; + end; + } + + // Penalty Handler + .@val=-5; + if (getvariableofnpc(.casterId, "Soren's Lake") == .casterId) + .@val=.@val-10; + if (getvariableofnpc(.casterId, "Soren's Dizmo") == .casterId) + .@val=.@val-10; + + percentheal .@val, -15; // Monster Gen .@amount=rand(.st+1, .st+4); -- cgit v1.2.3-60-g2f50