From 31b0b4dd6f7768ee1993bb393f7cd4ec784932ff Mon Sep 17 00:00:00 2001 From: seefo Date: Sat, 19 May 2018 05:48:56 -0400 Subject: [PATCH] Added setcount tool to QA tool, useful for factory crates and crafting --- .../sys.server/compiled/game/script/test/qatool.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/test/qatool.java b/sku.0/sys.server/compiled/game/script/test/qatool.java index d851d799d..b1ffaf77c 100755 --- a/sku.0/sys.server/compiled/game/script/test/qatool.java +++ b/sku.0/sys.server/compiled/game/script/test/qatool.java @@ -962,6 +962,17 @@ public class qatool extends script.base_script qaSetScriptVar(self, st); return SCRIPT_CONTINUE; } + else if ((toLower(command)).equals("setcount")) + { + if (st.hasMoreTokens()) + { + obj_id oid = getIntendedTarget(self); + int count = utils.stringToInt(st.nextToken()); + setCount(oid, count); + sendSystemMessageTestingOnly(self, "Object: " + target + " has added " + count + " to it's item count."); + return SCRIPT_CONTINUE; + } + } else if ((toLower(command)).equals("collectionclickbypass")) { cleanAllScriptVars(self);