Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Ah, I'm pretty new to this stuff....uhm any guidance?

[DiscordArchive] Ah, I'm pretty new to this stuff....uhm any guidance?

[DiscordArchive] Ah, I'm pretty new to this stuff....uhm any guidance?

rektbyfaith
Administrator
0
03-13-2024, 10:29 PM
#1
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?
rektbyfaith
03-13-2024, 10:29 PM #1

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?

rektbyfaith
Administrator
0
03-13-2024, 10:29 PM
#2
Archived author: manmadedrummer • Posted: 2024-03-13T22:29:15.356000+00:00
Original source

lol
rektbyfaith
03-13-2024, 10:29 PM #2

Archived author: manmadedrummer • Posted: 2024-03-13T22:29:15.356000+00:00
Original source

lol

rektbyfaith
Administrator
0
03-13-2024, 10:29 PM
#3
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
rektbyfaith
03-13-2024, 10:29 PM #3

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

rektbyfaith
Administrator
0
03-13-2024, 10:29 PM
#4
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
rektbyfaith
03-13-2024, 10:29 PM #4

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

rektbyfaith
Administrator
0
03-13-2024, 10:35 PM
#5
Archived author: manmadedrummer • Posted: 2024-03-13T22:35:21.595000+00:00
Original source

Ill give it a whirl and see what happens
rektbyfaith
03-13-2024, 10:35 PM #5

Archived author: manmadedrummer • Posted: 2024-03-13T22:35:21.595000+00:00
Original source

Ill give it a whirl and see what happens

rektbyfaith
Administrator
0
03-13-2024, 10:40 PM
#6
Archived author: manmadedrummer • Posted: 2024-03-13T22:40:45.802000+00:00
Original source

still giving me issues...I'm gonna get this hahah
rektbyfaith
03-13-2024, 10:40 PM #6

Archived author: manmadedrummer • Posted: 2024-03-13T22:40:45.802000+00:00
Original source

still giving me issues...I'm gonna get this hahah

rektbyfaith
Administrator
0
03-13-2024, 10:41 PM
#7
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
rektbyfaith
03-13-2024, 10:41 PM #7

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

rektbyfaith
Administrator
0
03-13-2024, 11:40 PM
#8
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
rektbyfaith
03-13-2024, 11:40 PM #8

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

rektbyfaith
Administrator
0
03-14-2024, 12:39 AM
#9
Archived author: manmadedrummer • Posted: 2024-03-14T00:39:32.873000+00:00
Original source

Yeah Im gonna get this man
rektbyfaith
03-14-2024, 12:39 AM #9

Archived author: manmadedrummer • Posted: 2024-03-14T00:39:32.873000+00:00
Original source

Yeah Im gonna get this man

rektbyfaith
Administrator
0
03-14-2024, 12:48 AM
#10
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)```
rektbyfaith
03-14-2024, 12:48 AM #10

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)```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)