From 4d351031c90a8dc752c408a779653ff4da701dd7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 1 May 2020 07:47:17 -0300 Subject: Main logic of Katazuli --- npc/042-10/ctrl.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index 1d9727404..509f547f5 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -115,10 +115,19 @@ OnTalkNearby: getmapxy(.@m$, .@x, .@y, 0); if (.@x != .x || .@y != .y) end; + // User cooldown + if (@katazuli > gettimetick(2)) + end; // All checks passed: KATAZULI specialeffect FX_MGSHIELD, AREA, getcharid(3); // Temporary FX + // Consume Dark Petals nearby + .@cat=getareadropitem(getmap(), .x-3, .y-3, .x+3, .y+3, DarkPetal, true); + + // TODO: Power Variable + dispbottom l("Katazuli! %d", .@cat); + } end; } -- cgit v1.2.3-70-g09d2