Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] Is there a way to add multiple spells for 1 gossip entry like buffme will cast 5 buffs at once?

rektbyfaith
Administrator
0
08-17-2019, 02:17 PM
#1
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?
rektbyfaith
08-17-2019, 02:17 PM #1

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?

rektbyfaith
Administrator
0
08-17-2019, 02:18 PM
#2
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
```
rektbyfaith
08-17-2019, 02:18 PM #2

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

rektbyfaith
Administrator
0
08-17-2019, 02:19 PM
#3
Archived author: Scrubtasticx • Posted: 2019-08-17T14:19:04.748000+00:00
Original source

Thankyou so much
rektbyfaith
08-17-2019, 02:19 PM #3

Archived author: Scrubtasticx • Posted: 2019-08-17T14:19:04.748000+00:00
Original source

Thankyou so much

rektbyfaith
Administrator
0
08-17-2019, 02:19 PM
#4
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:30.290000+00:00
Original source

usually this is kind of a trash code
rektbyfaith
08-17-2019, 02:19 PM #4

Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:30.290000+00:00
Original source

usually this is kind of a trash code

rektbyfaith
Administrator
0
08-17-2019, 02:19 PM
#5
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
rektbyfaith
08-17-2019, 02:19 PM #5

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

rektbyfaith
Administrator
0
08-17-2019, 02:19 PM
#6
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:43.490000+00:00
Original source

from their repo
rektbyfaith
08-17-2019, 02:19 PM #6

Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:43.490000+00:00
Original source

from their repo

rektbyfaith
Administrator
0
08-17-2019, 02:19 PM
#7
Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:47.739000+00:00
Original source

but those are the basics
rektbyfaith
08-17-2019, 02:19 PM #7

Archived author: MR.MUSTACHE • Posted: 2019-08-17T14:19:47.739000+00:00
Original source

but those are the basics

rektbyfaith
Administrator
0
08-17-2019, 02:20 PM
#8
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
rektbyfaith
08-17-2019, 02:20 PM #8

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

rektbyfaith
Administrator
0
08-17-2019, 02:22 PM
#9
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
rektbyfaith
08-17-2019, 02:22 PM #9

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

rektbyfaith
Administrator
0
08-17-2019, 02:28 PM
#10
Archived author: MaxtorCoder • Posted: 2019-08-17T14:28:15.699000+00:00
Original source

Who tagged me
rektbyfaith
08-17-2019, 02:28 PM #10

Archived author: MaxtorCoder • Posted: 2019-08-17T14:28:15.699000+00:00
Original source

Who tagged me

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