[DiscordArchive] So you should put SetActive(true) when NPC reaches any waypoint?
[DiscordArchive] So you should put SetActive(true) when NPC reaches any waypoint?
Archived author: Vel • Posted: 2024-11-25T20:06:25.265000+00:00
Original source
So this:
```
GridUnload = 0
BaseMapLoadAllGrids = 1
```
Uses aprox 6.4 GB of ram. Which is fine. But what is the difference that BaseMapLoadAllGrids makes if it does not load NPCs?
Archived author: Takenbacon • Posted: 2024-11-25T20:33:53.374000+00:00
Original source
grids aren't the problem, it's how they're used
Archived author: Takenbacon • Posted: 2024-11-25T20:34:05.842000+00:00
Original source
it's a ridiculously basic data structure+
Archived author: Vel • Posted: 2024-11-25T20:46:35.322000+00:00
Original source
Yeah, solved successfuly with <@569500392027848715> s help. Thanks! Now it works awesomely for selected NPCs!
Archived author: Vel • Posted: 2024-11-25T20:48:06.005000+00:00
Original source
I hope it's fine to share here (I know this is not Eluna TC DS). But if somebody was trying to solve same issue I just add custom eluna engine method:
```c++
int CustomCreatureSetActive(Eluna* E, Creature* creature)
{
bool isActive = E->CHECKVAL<bool>(2);
creature->setActive(isActive);
return 1;
}
```
And then hooked ON_ADD event on creature IDs I want loaded all the time.
Archived author: Vel • Posted: 2024-11-25T20:48:18.478000+00:00
Original source
```lua
local AIO = AIO or require("AIO")
require('eluna_globals')
local npcEntries = {
420068,
431017,
431018,
431019,
431020,
431021,
9000329,
}
local function OnAdd(event, creature)
creature:CustomCreatureSetActive(true)
end
for _, npcId in ipairs(npcEntries) do
RegisterCreatureEvent(npcId, CREATURE_EVENT_ON_ADD, OnAdd)
end
```
Archived author: stoneharry • Posted: 2024-11-25T20:53:47.201000+00:00
Original source
yeah I exposed it to Eluna too https://i.imgur.com/xuH3Sqd.pnghttps://i...om/xuH3Sqd
Archived author: Tea • Posted: 2024-11-25T21:14:32.894000+00:00
Original source
hungarian in lua? what the fuck
Archived author: stoneharry • Posted: 2024-11-25T21:15:05.471000+00:00
Original source
it should really be unit. But it's muscle memory from Antrix/Ascent/ArcEmu days
Archived author: stoneharry • Posted: 2024-11-25T21:27:31.611000+00:00
Original source
I could just do a find and replace of pUnit across the entire code base... https://i.imgur.com/YhsB2av.png https://imgur.com/YhsB2av