diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-01 18:35:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-01 18:35:42 -0300 |
commit | 33a5b1981c53103f0fd6ef032d48d5556f838310 (patch) | |
tree | 404ced1a253bd29aff431b55b9c2415f0dbb1fc3 /npc/magic/zarkor.txt | |
parent | 9482b84f2b202acb2ae124dbc7cd2cae608d3e0f (diff) | |
download | serverdata-33a5b1981c53103f0fd6ef032d48d5556f838310.tar.gz serverdata-33a5b1981c53103f0fd6ef032d48d5556f838310.tar.bz2 serverdata-33a5b1981c53103f0fd6ef032d48d5556f838310.tar.xz serverdata-33a5b1981c53103f0fd6ef032d48d5556f838310.zip |
*Mwhahahahah* if it works, Evil @Saulc will be pleased... *mwhahahaahahah*
Diffstat (limited to 'npc/magic/zarkor.txt')
-rw-r--r-- | npc/magic/zarkor.txt | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt new file mode 100644 index 000000000..00fa109c3 --- /dev/null +++ b/npc/magic/zarkor.txt @@ -0,0 +1,63 @@ +// TMW2 script +// Author: Jesusalva <admin@tmw2.org> +// +// Magic Script: TMW2_ZARKOR +// +// Spawns a Cave Maggot. + + +- script sk#zarkor 32767,{ + end; + +OnNone: + end; + +OnCall: + // PRE EXECUTION + // Check Skill + if (getskilllv(TMW2_ZARKOR) < 1) + end; + + // Check cooldown + if (@skzarkor_cooldown > gettimetick(0)) + end; + + // Check mana + if (Sp < 400) + end; + + // Other requeriments + if (countitem(ZarkorScroll) < 1) + end; + + // EXECUTION + // Apply costs + heal 0, -400; + + // Cause effect + getmapxy(.@map$,.@x,.@y,0); + monster(.@map$, .@x, .@y, "Summoned Monster", CaveMaggot, 1, "sk#zarkor::OnNone", Size_Medium, 1); + /* +<size> can be: + Size_Medium = medium (default) + Size_Small = small + Size_Large = big + +<ai> can be: + 0 = none (default) + 1 = attack/friendly + 2 = sphere (Alchemist skill) + 3 = flora (Alchemist skill) + 4 = zanzou (Kagerou/Oboro skill) + + */ + + // POST EXECUTION + // set cooldown + @skzarkor_cooldown=gettimetick(0)+20; + end; + +OnInit: + bindatcmd "sk-zarkor", "sk#zarkor::OnCall", 0, 100, 0; + end; +} |