mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
[Quest API] Add corpse->GetLootList() and npc->GetLootList() to Perl and Lua. (#1529)
* [Quest API] Add corpse->GetLootList() and npc->GetLootList() to Perl and Lua. - Add $corpse->GetLootList() to Perl. - Add $npc->GetLootList() to Perl. - Add corpse:GetLootList() to Lua. - Add npc:GetLootList() to Lua. Returns an array of item IDs for use with corpse and NPC methods such as HasItem(item_id), CountItem(item_id), and GetFirstSlotByItemID(item_id). * Categories. * Modify Lua to use classes.
This commit is contained in:
@@ -8,12 +8,14 @@ class NPC;
|
||||
class Lua_Mob;
|
||||
class Lua_NPC;
|
||||
class Lua_Client;
|
||||
struct Lua_NPC_Loot_List;
|
||||
|
||||
namespace luabind {
|
||||
struct scope;
|
||||
}
|
||||
|
||||
luabind::scope lua_register_npc();
|
||||
luabind::scope lua_register_npc_loot_list();
|
||||
|
||||
class Lua_NPC : public Lua_Mob
|
||||
{
|
||||
@@ -146,6 +148,7 @@ public:
|
||||
uint16 GetFirstSlotByItemID(uint32 item_id);
|
||||
float GetHealScale();
|
||||
float GetSpellScale();
|
||||
Lua_NPC_Loot_List GetLootList(lua_State* L);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user