Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int LootItems
- {
- get
- {
- try
- {
- return int.Parse(Lua.LuaGetReturnValue("return GetNumLootItems()", "hax.lua")[0]);
- }
- catch
- {
- return 0;
- }
- }
- }
- public static void Loot(int slot)
- {
- Lua.DoString("LootSlot({0})", slot + 1);
- }
- public static void LootAll()
- {
- for (int i = 0; i < LootItems; i++)
- {
- var info = new LootSlotInfo(i);
- if (!info.Locked)
- {
- Logging.Write("Trying to loot #{0} of {1} Rarity:{2}",
- info.LootQuantity,
- info.LootName,
- info.LootRarity);
- Loot(i);
- }
- }
- InfoPanel.LootedMob();
- Close();
- }
Add Comment
Please, Sign In to add comment