summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/magic/zarkor.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt
index 00fa109c3..b7a0e244a 100644
--- a/npc/magic/zarkor.txt
+++ b/npc/magic/zarkor.txt
@@ -19,16 +19,22 @@ OnCall:
end;
// Check cooldown
- if (@skzarkor_cooldown > gettimetick(0))
+ if (@skzarkor_cooldown > gettimetick(0)) {
+ dispbottom l("Cannot cast that now.");
end;
+ }
// Check mana
- if (Sp < 400)
+ if (readparam(Sp) < 400) {
+ dispbottom l("Insufficient mana.");
end;
+ }
// Other requeriments
- if (countitem(ZarkorScroll) < 1)
+ if (countitem(ZarkorScroll) < 1) {
+ dispbottom l("You need @@ to cast this skill.", getitemlink(ZarkorScroll));
end;
+ }
// EXECUTION
// Apply costs
@@ -37,6 +43,7 @@ OnCall:
// Cause effect
getmapxy(.@map$,.@x,.@y,0);
monster(.@map$, .@x, .@y, "Summoned Monster", CaveMaggot, 1, "sk#zarkor::OnNone", Size_Medium, 1);
+ dispbottom l("All monsters summoned!");
/*
<size> can be:
Size_Medium = medium (default)