From 78a36343504d42a6af3d5421ead1b1448fa737e0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 May 2020 03:20:29 -0300 Subject: If it doesn't spawns ANYTHING, it'll be boring and easy. Spawn at least Magic Goblins, even if it'll be easy. --- npc/042-10/ctrl.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index c9553c264..e50df4c47 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -83,7 +83,6 @@ L_NoAccessBlock: //////////////////////////////////////////////////////////////////// -// TODO: Catazuli info monument // KatazuliInfo( ) function script KatazuliInfo { mes ".:: Magical Seal ::."; @@ -132,6 +131,7 @@ function script KatazuliCore { // Initialize local variables .@start=getarg(0); .@id=getarg(1); + .@g=getcharid(2); // User cooldown if (.@start && @katazuli >= gettimetick(2)) @@ -202,6 +202,11 @@ function script KatazuliCore { // TODO: Spawn monsters, drop Dark Petal // (Probably spawn Dark Rose Field) + // PS. Every monster in this floor will drop them + getmapxy(.@m$, .@x, .@y, 0); + .@x+=any(-3,-2,-1,1,2,3); + .@y+=any(-3,-2,-1,1,2,3); + monster(.@m$, .@x, .@y, strmobinfo(1, MagicGoblin), MagicGoblin, rand2(3,6)); // Take away some HP and MP, but do not make you stand percentheal -1, -1; @@ -504,7 +509,6 @@ OnInit: /////////////////////////////////////////////////////////////////// // THIS CONTROLS EVERYTHING ELSE ON THIS ROOM -// TODO: Spawn monsters 042-10,0,0,0 script #Kamelot4210 NPC_HIDDEN,{ end; @@ -512,7 +516,7 @@ OnKillMob: if (!playerattached()) goto OnRespawn; // Handle Dark Petal - // TODO: How MX/PC should affect drop rates? + // XXX: How MX/PC should affect drop rates? // I imagine a higher MX will increase DR.... (Right now, level 100 = +10% DR) .@r=rand2(1000); if (.@r < 100+$KAMELOT_MX[.@g]) { -- cgit v1.2.3-60-g2f50