[DiscordArchive] any suggestions or helpful tips?
[DiscordArchive] any suggestions or helpful tips?
Archived author: Foe • Posted: 2024-07-27T17:06:08.660000+00:00
Original source
if the bot gets the killing blow, the player wont get the quest complete
Archived author: manmadedrummer • Posted: 2024-07-27T17:06:15.562000+00:00
Original source
Oh snap HAHAHA
Archived author: Foe • Posted: 2024-07-27T17:06:42.423000+00:00
Original source
tbh, you should handle quest completion through the database properly and not through a script when it's as simple as this
Archived author: manmadedrummer • Posted: 2024-07-27T17:07:17.735000+00:00
Original source
Yeah I have a sql for the quest, just didn't know how to do all the spawning and portal stuff and did it through the lua
Archived author: Foe • Posted: 2024-07-27T17:07:30.786000+00:00
Original source
the portal etc is fine to do through Lua
Archived author: Foe • Posted: 2024-07-27T17:07:59.538000+00:00
Original source
but set the quest kill reward through the creature template
Archived author: Foe • Posted: 2024-07-27T17:08:04.341000+00:00
Original source
and don't handle it through lua
Archived author: manmadedrummer • Posted: 2024-07-27T17:08:17.418000+00:00
Original source
So this is the object GUID i would wanna use?
https://www.azerothcore.org/pages/eluna/...tGUID.html
Sorry if these are noob questions
[Embed: Object:GetGUID - Eluna]
API documentation for the Object:GetGUID method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...tGUID.html
Archived author: Foe • Posted: 2024-07-27T17:08:47.269000+00:00
Original source
GetGUIDLow
espawn()Archived author: manmadedrummer • Posted: 2024-07-27T17:10:31.087000+00:00
Original source
so something like:
``` if portalGameObjectGUIDLow then
local portalGameObject = GetGameObjectByGUIDLow(portalGameObjectGUIDLow)
if portalGameObject then
portalGameObject
espawn()
portalGameObjectGUIDLow = nil```