From 63512370c198b52c75e77765ae6874ad3564d304 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 02:38:45 -0300 Subject: Proper summon. I sort of liked this new code :> --- npc/config/magic.txt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'npc/config') diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 0ec8dd99b..9ad6d0b9a 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -34,15 +34,10 @@ function script SummonMagic { heal 0, 0-.@mp; // Cause effect - getmapxy(.@map$,.@x,.@y,0); - monster(.@map$, .@x, .@y, "Summoned Monster", .@id, getskilllv(.@sk), .@scr, Size_Medium, 1); + // Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life + // The 35~50 is not a defect, remember skill starts at level 1... + for (.@i = 0; .@i < (getskilllv(.@sk)+1)/2; .@i++) + summon("Summoned Monster", .@id, rand(35000,50000)+getskilllv(.@sk)*10000); dispbottom l("All monsters summoned!"); - /* AI Options - 0 = none (default) - 1 = attack/friendly - 2 = sphere (Alchemist skill) - 3 = flora (Alchemist skill) - 4 = zanzou (Kagerou/Oboro skill) - */ } -- cgit v1.2.3-60-g2f50