mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +00:00
Zone optimizations
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
|
||||
void command_test(Client *c, const Seperator *sep)
|
||||
{
|
||||
const int arguments = sep->argnum;
|
||||
|
||||
for (auto &e : entity_list.GetMobList()) {
|
||||
auto mob = e.second;
|
||||
if (Distance(c->GetPosition(), mob->GetPosition()) > 100) {
|
||||
mob->SendAppearancePacket(AppearanceType::Invisibility, 3001);
|
||||
} else {
|
||||
mob->SendAppearancePacket(AppearanceType::Invisibility, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user