[DiscordArchive] Ah, I'm pretty new to this stuff....uhm any guidance?
[DiscordArchive] Ah, I'm pretty new to this stuff....uhm any guidance?
Archived author: manmadedrummer • Posted: 2024-03-13T22:29:06.748000+00:00
Original source
Ah, I'm pretty new to this stuff....uhm any guidance?
Archived author: manmadedrummer • Posted: 2024-03-13T22:29:15.356000+00:00
Original source
lol
Archived author: Foe • Posted: 2024-03-13T22:29:29.535000+00:00
Original source
https://elunaluaengine.github.io/Global/...Event.html
[Embed: Global:RegisterCreatureEvent - Eluna]
API documentation for the Global:RegisterCreatureEvent method in the Eluna engine.
https://elunaluaengine.github.io/Global/...Event.html
Archived author: Foe • Posted: 2024-03-13T22:29:56.631000+00:00
Original source
https://elunaluaengine.github.io/Global/...Event.html
[Embed: Global:RegisterCreatureGossipEvent - Eluna]
API documentation for the Global:RegisterCreatureGossipEvent method in the Eluna engine.
https://elunaluaengine.github.io/Global/...Event.html
Archived author: manmadedrummer • Posted: 2024-03-13T22:35:21.595000+00:00
Original source
Ill give it a whirl and see what happens
Archived author: manmadedrummer • Posted: 2024-03-13T22:40:45.802000+00:00
Original source
still giving me issues...I'm gonna get this hahah
Archived author: manmadedrummer • Posted: 2024-03-13T22:41:13.084000+00:00
Original source
Didn't realize how hard it was to make an NPC be able to launch select fireworks or all at once haha
Archived author: Foe • Posted: 2024-03-13T23:40:06.428000+00:00
Original source
It's relatively easy as long as you don't base your script off of something that is 15+ years old and for a different emulator
Archived author: manmadedrummer • Posted: 2024-03-14T00:39:32.873000+00:00
Original source
Yeah Im gonna get this man
Archived author: manmadedrummer • Posted: 2024-03-14T00:48:22.987000+00:00
Original source
This is what I came up with
```local NPC_ID = 101087
local FIREWORK_SPELLS = {
[1] = 41427,
[2] = 9318,
[3] = 9315,
[4] = 19026,
[5] = 9312,
[6] = 9314,
[7] = 9317
}
local function FireworkMenu(event, player, unit)
player:GossipClearMenu()
for i, spellID in ipairs(FIREWORK_SPELLS) do
player:GossipMenuAddItem(0, "Launch Firework "..i, 0, i, nil)
end
player:GossipMenuAddItem(0, "Launch All Fireworks", 0, #FIREWORK_SPELLS + 1, nil)
player:GossipSendMenu(0x7FFFFFFF, unit)
end
local function OnGossipSelect(event, player, object, sender, intid, code)
if intid <= #FIREWORK_SPELLS then
player:CastSpell(player, FIREWORK_SPELLS[intid], true)
elseif intid == #FIREWORK_SPELLS + 1 then
for _, spellID in ipairs(FIREWORK_SPELLS) do
player:CastSpell(player, spellID, true)
end
end
player:GossipComplete()
end
RegisterCreatureGossipEvent(NPC_ID, 1, FireworkMenu)
RegisterCreatureGossipEvent(NPC_ID, 2, OnGossipSelect)```