summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 02:38:45 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 02:38:45 -0300
commit63512370c198b52c75e77765ae6874ad3564d304 (patch)
tree576f85352f09358849c6761dd8da341d2ae35cda /npc/config
parentc0ded611c070c7e58e7abd90aac23959389b17a9 (diff)
downloadserverdata-63512370c198b52c75e77765ae6874ad3564d304.tar.gz
serverdata-63512370c198b52c75e77765ae6874ad3564d304.tar.bz2
serverdata-63512370c198b52c75e77765ae6874ad3564d304.tar.xz
serverdata-63512370c198b52c75e77765ae6874ad3564d304.zip
Proper summon. I sort of liked this new code :>
Diffstat (limited to 'npc/config')
-rw-r--r--npc/config/magic.txt13
1 files changed, 4 insertions, 9 deletions
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)
- */
}