mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Quest API] Add Entity Variable Methods to Perl/Lua. (#2579)
* [Quest API] Add Entity Variable Methods to Perl/Lua. # Perl - Add `$mob->GetEntityVariables()`. - Add `$object->GetEntityVariables()`. # Lua - Add `mob:GetEntityVariables()`. - Add `object:GetEntityVariables()`. # Notes - Convert all overloads and methods to use `std::string` for entity variables. - Allows operators to get a list of a Mob's entity variables. * Update loottables.cpp
This commit is contained in:
+7
-3
@@ -5829,9 +5829,13 @@ int EntityList::MovePlayerCorpsesToGraveyard(bool force_move_from_instance)
|
||||
}
|
||||
|
||||
void EntityList::DespawnGridNodes(int32 grid_id) {
|
||||
for (auto mob_iterator : mob_list) {
|
||||
Mob *mob = mob_iterator.second;
|
||||
if (mob->IsNPC() && mob->GetRace() == 2254 && mob->EntityVariableExists("grid_id") && atoi(mob->GetEntityVariable("grid_id")) == grid_id) {
|
||||
for (auto m : mob_list) {
|
||||
Mob *mob = m.second;
|
||||
if (
|
||||
mob->IsNPC() &&
|
||||
mob->GetRace() == 2254 &&
|
||||
mob->EntityVariableExists("grid_id") &&
|
||||
std::stoi(mob->GetEntityVariable("grid_id")) == grid_id) {
|
||||
mob->Depop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user