mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 16:46:37 +00:00
[Quest API] Add GetRandomMob() and GetRandomNPC() to Perl/Lua. (#2006)
- Add $entity_list->GetRandomMob(x, y, z, distance, exclude_mob) to Perl. - Add $entity_list->GetRandomNPC(x, y, z, distance, exclude_npc) to Perl. - Add eq.get_entity_list():GetRandomMob(x, y, z, distance, exclude_mob) to Lua. - Add eq.get_entity_list():GetRandomNPC(x, y, z, distance, exclude_npc) to Lua.
This commit is contained in:
+3
-1
@@ -189,7 +189,9 @@ public:
|
||||
Client *GetClientByWID(uint32 iWID);
|
||||
Client *GetClientByLSID(uint32 iLSID);
|
||||
Client *GetClient(uint32 ip, uint16 port);
|
||||
Client *GetRandomClient(const glm::vec3& location, float Distance, Client *ExcludeClient = nullptr);
|
||||
Client* GetRandomClient(const glm::vec3& location, float distance, Client* exclude_client = nullptr);
|
||||
NPC* GetRandomNPC(const glm::vec3& location, float distance, NPC* exclude_npc = nullptr);
|
||||
Mob* GetRandomMob(const glm::vec3& location, float distance, Mob* exclude_mob = nullptr);
|
||||
Group *GetGroupByMob(Mob* mob);
|
||||
Group *GetGroupByClient(Client* client);
|
||||
Group *GetGroupByID(uint32 id);
|
||||
|
||||
Reference in New Issue
Block a user