summaryrefslogtreecommitdiff
path: root/npc/magic
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-01 18:39:07 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-01 18:39:07 -0300
commit0d0934aa30138a591481328eda0c8caa28a3e4d8 (patch)
treebdaef90cd8a53540fd5e4d4c27bbbbf2a3eb259c /npc/magic
parent33a5b1981c53103f0fd6ef032d48d5556f838310 (diff)
downloadserverdata-0d0934aa30138a591481328eda0c8caa28a3e4d8.tar.gz
serverdata-0d0934aa30138a591481328eda0c8caa28a3e4d8.tar.bz2
serverdata-0d0934aa30138a591481328eda0c8caa28a3e4d8.tar.xz
serverdata-0d0934aa30138a591481328eda0c8caa28a3e4d8.zip
Fixing
Diffstat (limited to 'npc/magic')
-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)