From f9fa076a03993157898f8c8121963fbaecb2a167 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 May 2020 13:29:22 -0300 Subject: Fix respawn code in 042-10 --- npc/042-10/ctrl.txt | 2 +- npc/functions/util.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index bf7a9d2d7..97996bc29 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -542,7 +542,7 @@ OnRespawn: debugmes "[ERROR] [KAMELOT] Unable to respawn for Kamelot %s", .map$; .@g=0; } - KamelotCaveSpawn(1, 20, 20, 160, 140, $KAMELOT_MX[.@g]+10); + KamelotCaveSpawn(1, 20, 20, 160, 140, $KAMELOT_MX[.@g]+10, .@map$[0]); end; OnInstanceInit: diff --git a/npc/functions/util.txt b/npc/functions/util.txt index f8593723f..98d96336e 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -808,6 +808,7 @@ function script abizit { // anyloot( {item 1, amount 1, chance 1}, {item 2, amount 2, chance 2}... ) // Give chance (standard 1~10000 roll) to obtain item, capped at amount. +// TODO: Fill an array, then inventoryplace() and getitem() function script anyloot { if (getargcount() < 3 || getargcount() % 3 != 0) return Exception("Faulty anyloot skill command invoked - error"); -- cgit v1.2.3-60-g2f50