[DiscordArchive] Is any part of the NPC working or is it just the item thing?
[DiscordArchive] Is any part of the NPC working or is it just the item thing?
Archived author: buggedout • Posted: 2022-08-03T13:14:32.528000+00:00
Original source
i copied and existing unusued NPC
Archived author: buggedout • Posted: 2022-08-03T13:14:41.221000+00:00
Original source
yes i reload after every change
Archived author: Revision • Posted: 2022-08-03T13:15:08.238000+00:00
Original source
I would add prints in various locations within the functions to see what is and what isn't being triggered.
Archived author: Anchy • Posted: 2022-08-03T13:15:47.478000+00:00
Original source
whats the script look like in its current state
Archived author: buggedout • Posted: 2022-08-03T13:16:34.150000+00:00
Original source
after replacing Creature with Player in RegisterCreatureGossipEvent my dialogue options are gone btw
Archived author: buggedout • Posted: 2022-08-03T13:17:50.817000+00:00
Original source
besides changing AddItem and GossipEvent it's unmodified as on the github
Archived author: Anchy • Posted: 2022-08-03T13:19:43.407000+00:00
Original source
```lua
function OnHardCore(event, player, unit, sender, initid, code)
if (initd == 2) then
player:GiveItem(hardCoreItem)
--else gossip ends
else
player:GossipComplete()
end
end```
Archived author: Anchy • Posted: 2022-08-03T13:19:56.413000+00:00
Original source
you may have an issue here on your if statement which im unsure if you have fixed
Archived author: Anchy • Posted: 2022-08-03T13:20:05.979000+00:00
Original source
unless there is a global named initd its named incorrectly
Archived author: buggedout • Posted: 2022-08-03T13:20:14.703000+00:00
Original source
It announces the kill in global, everything seems to function, except receiving the item. I don't receive any error msg or something and worldserver starts without and red errors