summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-08 02:11:01 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-08 02:11:01 -0300
commit9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5 (patch)
tree7c356c5de627dee83a3b681378a33c215982d16b
parenta202c621d2f072b57d12feb25e2569573e6e1154 (diff)
downloadserverdata-9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5.tar.gz
serverdata-9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5.tar.bz2
serverdata-9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5.tar.xz
serverdata-9778b72cce23a16c1c2f0e57ff53cbbd5545a4d5.zip
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.
-rw-r--r--npc/soren/main.txt14
1 files changed, 14 insertions, 0 deletions
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);