[DiscordArchive] Is it possible to make unused guides usable again? If you now delete NPCs and add new ones, they wil
[DiscordArchive] Is it possible to make unused guides usable again? If you now delete NPCs and add new ones, they wil
Archived author: Krutok • Posted: 2023-05-30T13:48:50.533000+00:00
Original source
Is it possible to make unused guides usable again? If you now delete NPCs and add new ones, they will get the next higher Guid again. So is there a way to tell NPCs that no longer exist in the world to reassign the guides to the new NPCs?
Archived author: Crafted • Posted: 2023-05-30T13:53:15.264000+00:00
Original source
most likely if I understand what you mean correctly the answer is no
Archived author: Crafted • Posted: 2023-05-30T13:54:10.197000+00:00
Original source
there are SAI scripts on specific guid, if you "reorder/reassign" them then will be a totally mess
Archived author: Naddley • Posted: 2023-05-30T13:54:55.324000+00:00
Original source
just set the range for GUID like we do in our DB commits
Archived author: Krutok • Posted: 2023-05-30T14:11:08.318000+00:00
Original source
How does that work? If I put an NPC into the world, he automatically gets the next higher Guid. But if I delete it again, the guid is used up, so to speak, and is no longer used for later spawns.
Therefore, run a database query that says NPC X no longer exists, rearrange the guid from 0 to XXX.
Archived author: Naddley • Posted: 2023-05-30T14:12:23.392000+00:00
Original source
just do a SQL query to insert the NPC^^
Archived author: Naddley • Posted: 2023-05-30T14:12:50.570000+00:00
Original source
to fill the holes
Archived author: Krutok • Posted: 2023-05-30T14:15:19.262000+00:00
Original source
But this is cumbersome, because you also need the .gps coordinates and everything else. Otherwise the NPC isn't where you want it to be ^^ That might be fine with one NPC, but you don't want to do that with many ^^
Archived author: Crafted • Posted: 2023-05-30T14:18:06.219000+00:00
Original source
you understand that there are smart scripts and other things assigned on specific guid-s, and if you just have a tool that will magically "rearrange" the guid from 0 to XXXX all those things will result in a mess
Archived author: Krutok • Posted: 2023-05-30T14:20:13.534000+00:00
Original source
Yes, I realize that many scripts are bound not only to the NPC ID, but also to the GUID.