Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] So you should put SetActive(true) when NPC reaches any waypoint?

[DiscordArchive] So you should put SetActive(true) when NPC reaches any waypoint?

[DiscordArchive] So you should put SetActive(true) when NPC reaches any waypoint?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
11-25-2024, 08:06 PM
#11
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?
rektbyfaith
11-25-2024, 08:06 PM #11

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?

rektbyfaith
Administrator
0
11-25-2024, 08:33 PM
#12
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
rektbyfaith
11-25-2024, 08:33 PM #12

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

rektbyfaith
Administrator
0
11-25-2024, 08:34 PM
#13
Archived author: Takenbacon • Posted: 2024-11-25T20:34:05.842000+00:00
Original source

it's a ridiculously basic data structure+
rektbyfaith
11-25-2024, 08:34 PM #13

Archived author: Takenbacon • Posted: 2024-11-25T20:34:05.842000+00:00
Original source

it's a ridiculously basic data structure+

rektbyfaith
Administrator
0
11-25-2024, 08:46 PM
#14
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!
rektbyfaith
11-25-2024, 08:46 PM #14

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!

rektbyfaith
Administrator
0
11-25-2024, 08:48 PM
#15
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.
rektbyfaith
11-25-2024, 08:48 PM #15

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.

rektbyfaith
Administrator
0
11-25-2024, 08:48 PM
#16
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
```
rektbyfaith
11-25-2024, 08:48 PM #16

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
```

rektbyfaith
Administrator
0
11-25-2024, 08:53 PM
#17
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
rektbyfaith
11-25-2024, 08:53 PM #17

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

rektbyfaith
Administrator
0
11-25-2024, 09:14 PM
#18
Archived author: Tea • Posted: 2024-11-25T21:14:32.894000+00:00
Original source

hungarian in lua? what the fuck
rektbyfaith
11-25-2024, 09:14 PM #18

Archived author: Tea • Posted: 2024-11-25T21:14:32.894000+00:00
Original source

hungarian in lua? what the fuck

rektbyfaith
Administrator
0
11-25-2024, 09:15 PM
#19
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
rektbyfaith
11-25-2024, 09:15 PM #19

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

rektbyfaith
Administrator
0
11-25-2024, 09:27 PM
#20
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
rektbyfaith
11-25-2024, 09:27 PM #20

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

Pages (3): Previous 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)