[DiscordArchive] Are you using playerbots or npc bots?
[DiscordArchive] Are you using playerbots or npc bots?
Archived author: Revision • Posted: 2025-02-03T20:43:56.234000+00:00
Original source
I want to replace the pathing NPCs that are just standing still and I don't want twice the spawns because of it.
![[Image: image.png?ex=690c5ffe&is=690b0e7e&hm=6ea...19616746e&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336074932202901628/image.png?ex=690c5ffe&is=690b0e7e&hm=6eadde14cde28ac81dfcd2a5cb857572866b60ba53411a844d4281f19616746e&)
Archived author: metallinos • Posted: 2025-02-03T20:44:46.966000+00:00
Original source
I see Eluna is using GetSpawnId() to retrieve the db table guid, perhaps that's what you want
![[Image: image.png?ex=690c5ffe&is=690b0e7e&hm=6ea...19616746e&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336074932202901628/image.png?ex=690c5ffe&is=690b0e7e&hm=6eadde14cde28ac81dfcd2a5cb857572866b60ba53411a844d4281f19616746e&)
![[Image: 1745B851-E3EF-4D6D-9EDF-6D26CBE14A1C.png...b8c9bada1&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336075893105496235/1745B851-E3EF-4D6D-9EDF-6D26CBE14A1C.png?ex=690c60e4&is=690b0f64&hm=cac2208a4aa981125659f57058315aa2b2d3aa38774557d04e7ff92b8c9bada1&)
Archived author: Revision • Posted: 2025-02-03T20:48:36.062000+00:00
Original source
That seems to be it. I didn't realize it was called SpawnId. Thank you very much for that one. Now just to make sure RemoveFromWorld (or something similar) will properly remove them. A safe test is it remove all creatures with a specific template entry I guess.
![[Image: 1745B851-E3EF-4D6D-9EDF-6D26CBE14A1C.png...b8c9bada1&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336075893105496235/1745B851-E3EF-4D6D-9EDF-6D26CBE14A1C.png?ex=690c60e4&is=690b0f64&hm=cac2208a4aa981125659f57058315aa2b2d3aa38774557d04e7ff92b8c9bada1&)
Archived author: Kitzunu • Posted: 2025-02-03T20:49:59.223000+00:00
Original source
why it is called spawnid and not guid
Archived author: Kitzunu • Posted: 2025-02-03T20:50:01.821000+00:00
Original source
I dont know
Archived author: Revision • Posted: 2025-02-03T20:50:09.803000+00:00
Original source
Hell yeah, that worked
![[Image: 4C103168-2EB0-43F6-B08F-7E0EDA8A648E.png...efe5bc359&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336076475102658671/4C103168-2EB0-43F6-B08F-7E0EDA8A648E.png?ex=690c616e&is=690b0fee&hm=3d08106f002e4cb9b6b324da456fa65b30969650f3f099435d51a26efe5bc359&)
Archived author: Revision • Posted: 2025-02-03T20:50:54.810000+00:00
Original source
Now these birds are flying solo.. or duo I guess. Gonna remove them too. I rather remove all of the same entry and have to add them all to the DB than not do it at all. Thank you very much for the assistance, I think I just needed some good pointers and I got it.
![[Image: 4C103168-2EB0-43F6-B08F-7E0EDA8A648E.png...efe5bc359&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336076475102658671/4C103168-2EB0-43F6-B08F-7E0EDA8A648E.png?ex=690c616e&is=690b0fee&hm=3d08106f002e4cb9b6b324da456fa65b30969650f3f099435d51a26efe5bc359&)
![[Image: 915F33C4-31A5-401B-85B0-3BA8C3E28DEE.png...ee39276d5&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336077024623722556/915F33C4-31A5-401B-85B0-3BA8C3E28DEE.png?ex=690c61f1&is=690b1071&hm=bb6328fef7ca5425da601f634d926e48e6de356c067950fb2117759ee39276d5&)
Archived author: Revision • Posted: 2025-02-03T20:53:05.825000+00:00
Original source
Oh yeah.. Didn't think about that one. That's not great.
![[Image: 915F33C4-31A5-401B-85B0-3BA8C3E28DEE.png...ee39276d5&]](https://cdn.discordapp.com/attachments/1255602330431127753/1336077024623722556/915F33C4-31A5-401B-85B0-3BA8C3E28DEE.png?ex=690c61f1&is=690b1071&hm=bb6328fef7ca5425da601f634d926e48e6de356c067950fb2117759ee39276d5&)
Archived author: metallinos • Posted: 2025-02-03T20:53:31.307000+00:00
Original source
Hmm mounted creatures may complicate this no? Don't some creatures spawn a separate NPC to mount/be mounted by? There's a db table for it somewhere
Archived author: Kitzunu • Posted: 2025-02-03T20:53:32.453000+00:00
Original source
```diff
- LOG_ERROR(...);
+ // LOG_ERROR(...);
```