Code: Select all
if ("bun_a" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_a && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("Trophy8", 1, new l), y._customBlock_GiveItem("Timecandy3", 7, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_a = 1);
else if ("bun_b" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_b && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentHats45", 1, new l), y._customBlock_GiveItem("CardPack1", 4, new l), y._customBlock_GiveItem("Timecandy4", 4, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_b = 1);
else if ("bun_c" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_c && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (a.engine.getGameAttribute("OptionsListAccount")[45] = 259201, 0 > c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[44]) && (a.engine.getGameAttribute("OptionsListAccount")[44] = 0), a.engine.getGameAttribute("OptionsListAccount")[44] = c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[44]) + 4, y._customBlock_GiveItem("CardPack1", 3, new l), y._customBlock_GiveItem("Timecandy1", 4, new l), y._customBlock_GiveItem("Timecandy2", 4, new l), y._customBlock_GiveItem("Timecandy3", 2, new l), y._customBlock_GiveItem("Timecandy4", 1, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_c = 1);
else if ("bun_d" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_d && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentHats57", 1, new l), y._customBlock_GiveItem("Timecandy2", 5, new l), y._customBlock_GiveItem("Timecandy3", 2, new l), y._customBlock_GiveItem("Timecandy5", 1, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_d = 1);
else if ("bun_e" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_e && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentHats62", 1, new l), y._customBlock_GiveItem("CardPack3", 3, new l), y._customBlock_GiveItem("Timecandy5", 4, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_e = 1);
else if ("bun_f" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_f && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("Trophy14", 1, new l), y._customBlock_GiveItem("GemP9", 3, new l), y._customBlock_GiveItem("Timecandy2", 20, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_f = 1);
else if ("bun_g" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_g && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (a.engine.getGameAttribute("OptionsListAccount")[76] = Math.floor(c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[76]) + 21), y._customBlock_GiveItem("CardPack4", 3, new l), a.engine.getGameAttribute("OptionsListAccount")[74] = Math.floor(c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[74]) + 250), a.engine.getGameAttribute("BundlesReceived").h.bun_g = 1);
else if ("bun_h" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_h && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentHats69", 1, new l), y._customBlock_GiveItem("EquipmentHats69", 1, new l), y._customBlock_GiveItem("EquipmentHats69", 1, new l), y._customBlock_GiveItem("Quest64", 250, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_h = 1);
else if ("bun_i" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_i && (a.engine.getGameAttribute("BundlesReceived").h.bun_i = 1);
else if ("bun_j" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_j && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentCape0", 1, new l), y._customBlock_GiveItem("CardPack5", 3, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_j = 1);
else if ("bun_k" == n[2]) 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_k && E.contains(a.engine.getGameAttribute("InventoryOrder"), "Blank") && (y._customBlock_GiveItem("EquipmentCape2", 1, new l), y._customBlock_GiveItem("Quest42", 250, new l), y._customBlock_GiveItem("Quest44", 60, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_k = 1);
else if ("bun_l" == n[2]) {
if (1 != a.engine.getGameAttribute("BundlesReceived").h.bun_l) {
for (n = a.engine.gameAttributes.h.DummyNumber5 = 0, i = 0 | a.engine.getGameAttribute("InventorySlotsOwned"); n < i;) s = n++, "Blank" == a.engine.getGameAttribute("InventoryOrder")[s] && 0 == a.engine.getGameAttribute("ItemQuantity")[s] && (s = a.engine, r = a.engine.getGameAttribute("DummyNumber5") + 1, s.gameAttributes.h.DummyNumber5 = r);
4 <= a.engine.getGameAttribute("DummyNumber5") && (y._customBlock_GiveItem("EquipmentCape7", 1, new l), y._customBlock_GiveItem("CardPack6", 1, new l), y._customBlock_GiveItem("Quest72", 3, new l), y._customBlock_GiveItem("Quest73", 3, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_l = 1)
}
} else if ("bun_m" == n[2]) {
if (1 != a.engine.getGameAttribute("BundlesReceived").h.bun_m) {
for (n = a.engine.gameAttributes.h.DummyNumber5 = 0, i = 0 | a.engine.getGameAttribute("InventorySlotsOwned"); n < i;) s = n++, "Blank" == a.engine.getGameAttribute("InventoryOrder")[s] && 0 == a.engine.getGameAttribute("ItemQuantity")[s] && (s = a.engine, r = a.engine.getGameAttribute("DummyNumber5") + 1, s.gameAttributes.h.DummyNumber5 = r);
1 <= a.engine.getGameAttribute("DummyNumber5") && (y._customBlock_GiveItem("Quest71", 100, new l), 0 > c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[44]) && (a.engine.getGameAttribute("OptionsListAccount")[44] = 0), a.engine.getGameAttribute("OptionsListAccount")[44] = c.asNumber(a.engine.getGameAttribute("OptionsListAccount")[44]) + 16, a.engine.getGameAttribute("BundlesReceived").h.bun_m = 1)
}
} else if ("bun_n" == n[2]) {
if (1 != a.engine.getGameAttribute("BundlesReceived").h.bun_n) {
for (n = a.engine.gameAttributes.h.DummyNumber5 = 0, i = 0 | a.engine.getGameAttribute("InventorySlotsOwned"); n < i;) s = n++, "Blank" == a.engine.getGameAttribute("InventoryOrder")[s] && 0 == a.engine.getGameAttribute("ItemQuantity")[s] && (s = a.engine, r = a.engine.getGameAttribute("DummyNumber5") + 1, s.gameAttributes.h.DummyNumber5 = r);
4 <= a.engine.getGameAttribute("DummyNumber5") && (y._customBlock_GiveItem("EquipmentCape11", 1, new l), y._customBlock_GiveItem("EquipmentNametag1", 1, new l), y._customBlock_GiveItem("CardPack5", 2, new l), y._customBlock_GiveItem("CardPack6", 2, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_n = 1)
}
} else if ("bun_o" == n[2] && 1 != a.engine.getGameAttribute("BundlesReceived").h.bun_o) {
for (n = a.engine.gameAttributes.h.DummyNumber5 = 0, i = 0 | a.engine.getGameAttribute("InventorySlotsOwned"); n < i;) s = n++, "Blank" == a.engine.getGameAttribute("InventoryOrder")[s] && 0 == a.engine.getGameAttribute("ItemQuantity")[s] && (s = a.engine, r = a.engine.getGameAttribute("DummyNumber5") + 1, s.gameAttributes.h.DummyNumber5 = r);
1 <= a.engine.getGameAttribute("DummyNumber5") && (y._customBlock_GiveItem("EquipmentCape12", 1, new l), a.engine.getGameAttribute("BundlesReceived").h.bun_o = 1)
}
}