[DiscordArchive] Is there a way to add multiple spells for 1 gossip entry like buffme will cast 5 buffs at once?
[DiscordArchive] Is there a way to add multiple spells for 1 gossip entry like buffme will cast 5 buffs at once?
Archived author: Scrubtasticx • Posted: 2019-08-17T14:17:26.058000+00:00
Original source
Is there a way to add multiple spells for 1 gossip entry like buffme will cast 5 buffs at once?
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:18:35.677000+00:00
Original source
```lua
local function OnGossipHello(event, player, object)
player:GossipClearMenu() -- required for player gossip
player:GossipMenuAddItem(0, "BUFF ME", 1, 1)
player:GossipSendMenu(1, object, MenuId) -- MenuId required for player gossip
end
local function OnGossipSelect(event, player, object, sender, intid, code, menuid)
if (intid == 1) then
player:CastSpell(player, BUFF_ID)
player:CastSpell(player, BUFF_ID)
player:CastSpell(player, BUFF_ID)
player:CastSpell(player, BUFF_ID)
end
end
```
Archived author: Scrubtasticx • Posted: 2019-08-17T14:19:04.748000+00:00
Original source
Thankyou so much
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:30.290000+00:00
Original source
usually this is kind of a trash code
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:39.310000+00:00
Original source
cuz it was suppose to be a example for multi menu types
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:43.490000+00:00
Original source
from their repo
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:47.739000+00:00
Original source
but those are the basics
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:20:44.400000+00:00
Original source
you register a menu in GossipHello, then read it from gossipSelect and run .the CastSpell
Archived author: Scrubtasticx • Posted: 2019-08-17T14:22:03.794000+00:00
Original source
Now that I have the wiki u linked and that reference u just shared I'll be good thanks so much
Archived author: MaxtorCoder • Posted: 2019-08-17T14:28:15.699000+00:00
Original source
Who tagged me