mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 16:46:37 +00:00
[Quest API] Add GetCloseMobList() and CalculateDistance() overload to Perl/Lua (#3455)
* [Quest API] Add GetCloseMobList() and CalculateDistance() overload to Perl/Lua # Perl - Add `$entity_list->GetCloseMobList(mob)`. - Add `$entity_list->GetCloseMobList(mob, distance)`. - Add `$mob->CalculateDistance(mob)`. - Add `$mob->GetCloseMobList()`. - Add `$mob->GetCloseMobList(distance)`. # Lua - Add `eq.get_entity_list():GetCloseMobList(mob)`. - Add `eq.get_entity_list():GetCloseMobList(mob, distance)`. - Add `mob:CalculateDistance(mob)`. - Add `mob:GetCloseMobList()`. - Add `mob:GetCloseMobList(distance)`. * Ignore Self * Update lua_entity_list.cpp * Cleanup
This commit is contained in:
@@ -12,6 +12,7 @@ class Lua_StatBonuses;
|
||||
class Lua_Bot;
|
||||
class Lua_NPC;
|
||||
class Lua_Client;
|
||||
struct Lua_Mob_List;
|
||||
|
||||
namespace luabind {
|
||||
struct scope;
|
||||
@@ -287,6 +288,7 @@ public:
|
||||
void NavigateTo(double x, double y, double z);
|
||||
void StopNavigation();
|
||||
float CalculateDistance(double x, double y, double z);
|
||||
float CalculateDistance(Lua_Mob mob);
|
||||
void SendTo(double x, double y, double z);
|
||||
void SendToFixZ(double x, double y, double z);
|
||||
void NPCSpecialAttacks(const char *parse, int perm);
|
||||
@@ -549,6 +551,9 @@ public:
|
||||
void StopTimer(const char* timer_name);
|
||||
luabind::object GetBuffSpellIDs(lua_State* L);
|
||||
bool HasSpellEffect(int effect_id);
|
||||
Lua_Mob_List GetCloseMobList();
|
||||
Lua_Mob_List GetCloseMobList(float distance);
|
||||
Lua_Mob_List GetCloseMobList(float distance, bool ignore_self);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user