[DiscordArchive] Server or client side?
[DiscordArchive] Server or client side?
Archived author: Foe • Posted: 2022-03-27T15:26:29.805000+00:00
Original source
Alright
Archived author: Foe • Posted: 2022-03-27T15:27:08.201000+00:00
Original source
Bigglesworth.Hello(_, player, target)
Archived author: Foe • Posted: 2022-03-27T15:27:11.387000+00:00
Original source
change the _ to emote
Archived author: Foe • Posted: 2022-03-27T15:28:08.862000+00:00
Original source
then in function Bigglesworth.Hello(event, player, object)
add a check that says
```if(event == EmoteId) then
-- place all the other code from Bigglesworth.Hello in here
end```
Archived author: Nelnamara • Posted: 2022-03-27T15:30:25.820000+00:00
Original source
Sweet. I will work on that. Wife just brought doughnuts so it's 1 notch lower on priority for the moment
Thanks!
Archived author: Foe • Posted: 2022-03-27T15:30:43.032000+00:00
Original source
spoiled
Archived author: Clotic • Posted: 2022-03-27T15:56:39.081000+00:00
Original source
Should make creatureid and emoteid local
Archived author: Nelnamara • Posted: 2022-03-27T16:07:38.067000+00:00
Original source
done
Archived author: Nelnamara • Posted: 2022-03-27T16:11:08.053000+00:00
Original source
I have tried this a couple different ways and I either get the generic greeting gossip window or now window at all depending on how I place the `if(event == EmoteId) then`
With this I get just the generic gossip windows, If I place the larger If statement inside the if(event emoteID I get animations but no gossip menu.
`function Bigglesworth.Hello(event, player, object)
local class = player:GetClass()
if (Bigglesworth.T["Menu"][class] and player:HasAchieved(946) == true and player:GetStandState() == 1) then
if(event == EmoteId) then
for i = 1, #Bigglesworth.T["Menu"][class] do
player:GossipMenuAddItem(0, Bigglesworth.T["Menu"][class][i][1], 0, Bigglesworth.T["Menu"][class][i][2])
player:CastSpell(self, 44942)
end
end
end
player:GossipSendMenu(1, object)
end`
Archived author: Foe • Posted: 2022-03-27T16:11:45.823000+00:00
Original source
did you change the function call in the emote function as well