Yeah, that's what I call a "crash". It throws the error reporting box and bybye if you close it. That exception cannot be caught inside a plugin.
What need such amount of lua calls? I'll give you two awful cases:
- loot tracking, as objectmanager returns all kind of wow items. You need to check which ones are in your bags
- get ingame map coordinates
Both could easily be done without LUA injection, but it's not currently implemented. Too bad.
private List<WoWItem> GetNonEquippedItems()
{
// First, we grab all equipped items, so we can remove them from our list.
return (from i in ObjectManager.ObjectList.OfType<WoWItem>()
let bag = i.Container
// The first 23 items in our backback, are our equipped items. We don't want them. :)
where (bag.IsBackpack && bag.PhysicalItems.IndexOf(i) >= 23) || !bag.IsBackpack
select i).ToList();
}
This would be more of a wrapper than a plugin. A file containing a shit load of pre-made functions that can be called within other plugins such as on_Item_Drop or on_Whisper and get_Item_Name(slot) or whatever I assume? I can't read the thread at the moment because I'm at work, but I don't see the whole plugin with plugins thing. I'd also assume the bot api has a decent list of these functions and event handlers anyway?
I'll check again when I get home and I'll be looking at the plugin format for the first time tonight so I'll probably get a better idea of what's happening.
Okay it seems HB has fuck all. I assumed HB would have something like http://www.gpbot.com/API/functions_func.html