Optimized GMF scripts and fixed a few bugs with stack counts and the halloween projector.

This commit is contained in:
Cekis
2016-04-28 21:33:09 +01:00
parent ad41d897a1
commit 6e957ca283
4 changed files with 148 additions and 320 deletions
@@ -1692,7 +1692,13 @@ public class utils extends script.base_script
}
public static int countOfStackedItemsInArray(obj_id[] items) throws InterruptedException
{
return items.length;
int totalCount = 0;
for (obj_id item : items) {
testAbortScript();
totalCount += getCount(item);
}
return totalCount;
}
public static obj_id getItemPlayerHasByTemplate(obj_id objPlayer, String strTemplate) throws InterruptedException
{