Zone optimizations

This commit is contained in:
Akkadius committed 2025-01-20 21:31:13 -06:00
1 parent 75698a809f
commit 010ba01ee7
8 files changed
+116 -4

No files matched your search

+14
View File
@@ -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);
}
}
}