Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I don't want to get this wrong but since the gossip action is 1, how would you suggest I do that? Sh

[DiscordArchive] I don't want to get this wrong but since the gossip action is 1, how would you suggest I do that? Sh

[DiscordArchive] I don't want to get this wrong but since the gossip action is 1, how would you suggest I do that? Sh

Pages (5): 1 2 3 4 5 Next
rektbyfaith
Administrator
0
10-18-2022, 06:37 PM
#1
Archived author: Revision • Posted: 2022-10-18T18:37:40.148000+00:00
Original source

I don't want to get this wrong but since the gossip action is 1, how would you suggest I do that? Should I just check if it's 1 or do you know of any predefined values that I *have* to grab it from?
rektbyfaith
10-18-2022, 06:37 PM #1

Archived author: Revision • Posted: 2022-10-18T18:37:40.148000+00:00
Original source

I don't want to get this wrong but since the gossip action is 1, how would you suggest I do that? Should I just check if it's 1 or do you know of any predefined values that I *have* to grab it from?

rektbyfaith
Administrator
0
10-18-2022, 06:39 PM
#2
Archived author: M'Dic • Posted: 2022-10-18T18:39:50+00:00
Original source

I dont think thats my tattoo artist asking.
rektbyfaith
10-18-2022, 06:39 PM #2

Archived author: M'Dic • Posted: 2022-10-18T18:39:50+00:00
Original source

I dont think thats my tattoo artist asking.

rektbyfaith
Administrator
0
10-18-2022, 06:51 PM
#3
Archived author: Revision • Posted: 2022-10-18T18:51:38.720000+00:00
Original source

I'm confused.
```
class go_pumpkin_shrine : public GameObjectScript
{
public:
go_pumpkin_shrine() : GameObjectScript("go_pumpkin_shrine") {}

bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 /*action*/) override
{
ClearGossipMenuFor(player);

if (player->FindNearestCreature(NPC_HEADLESS_HORSEMAN_MOUNTED, 100.0f))
return true;

if (Creature* horseman = go->SummonCreature(NPC_HEADLESS_HORSEMAN_MOUNTED, 1754.00f, 1346.00f, 17.50f, 0.0f, TEMPSUMMON_MANUAL_DESPAWN, 0))
horseman->CastSpell(player, SPELL_SUMMONING_RHYME_TARGET, true);

return true;
}
};
```

It works as it should but it's not actually closing the gossip menu. What the hell am I doing wrong?
rektbyfaith
10-18-2022, 06:51 PM #3

Archived author: Revision • Posted: 2022-10-18T18:51:38.720000+00:00
Original source

I'm confused.
```
class go_pumpkin_shrine : public GameObjectScript
{
public:
go_pumpkin_shrine() : GameObjectScript("go_pumpkin_shrine") {}

bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 /*action*/) override
{
ClearGossipMenuFor(player);

if (player->FindNearestCreature(NPC_HEADLESS_HORSEMAN_MOUNTED, 100.0f))
return true;

if (Creature* horseman = go->SummonCreature(NPC_HEADLESS_HORSEMAN_MOUNTED, 1754.00f, 1346.00f, 17.50f, 0.0f, TEMPSUMMON_MANUAL_DESPAWN, 0))
horseman->CastSpell(player, SPELL_SUMMONING_RHYME_TARGET, true);

return true;
}
};
```

It works as it should but it's not actually closing the gossip menu. What the hell am I doing wrong?

rektbyfaith
Administrator
0
10-18-2022, 07:02 PM
#4
Archived author: Nyeriah • Posted: 2022-10-18T19:02:55.797000+00:00
Original source

Close gossip
rektbyfaith
10-18-2022, 07:02 PM #4

Archived author: Nyeriah • Posted: 2022-10-18T19:02:55.797000+00:00
Original source

Close gossip

rektbyfaith
Administrator
0
10-18-2022, 07:03 PM
#5
Archived author: Nyeriah • Posted: 2022-10-18T19:03:00.399000+00:00
Original source

Not clear gossip
rektbyfaith
10-18-2022, 07:03 PM #5

Archived author: Nyeriah • Posted: 2022-10-18T19:03:00.399000+00:00
Original source

Not clear gossip

rektbyfaith
Administrator
0
10-18-2022, 07:03 PM
#6
Archived author: Nyeriah • Posted: 2022-10-18T19:03:03.704000+00:00
Original source

Try that
rektbyfaith
10-18-2022, 07:03 PM #6

Archived author: Nyeriah • Posted: 2022-10-18T19:03:03.704000+00:00
Original source

Try that

rektbyfaith
Administrator
0
10-18-2022, 07:04 PM
#7
Archived author: Revision • Posted: 2022-10-18T19:04:06.090000+00:00
Original source

Oh, right. I'll try that. My server just shat itself and I had to force reboot. Not sure what Oracle is up to.
rektbyfaith
10-18-2022, 07:04 PM #7

Archived author: Revision • Posted: 2022-10-18T19:04:06.090000+00:00
Original source

Oh, right. I'll try that. My server just shat itself and I had to force reboot. Not sure what Oracle is up to.

rektbyfaith
Administrator
0
10-18-2022, 07:28 PM
#8
Archived author: Revision • Posted: 2022-10-18T19:28:16.241000+00:00
Original source

https://github.com/azerothcore/azerothco...pull/13460

I was unsure what to name the PR but I hope it's ok. It does work on my end so hopefully there are no issues. If you know how to, could you test it?
rektbyfaith
10-18-2022, 07:28 PM #8

Archived author: Revision • Posted: 2022-10-18T19:28:16.241000+00:00
Original source

https://github.com/azerothcore/azerothco...pull/13460

I was unsure what to name the PR but I hope it's ok. It does work on my end so hopefully there are no issues. If you know how to, could you test it?

rektbyfaith
Administrator
0
10-18-2022, 07:35 PM
#9
Archived author: envvy • Posted: 2022-10-18T19:35:23.977000+00:00
Original source

Worked like a charm.
rektbyfaith
10-18-2022, 07:35 PM #9

Archived author: envvy • Posted: 2022-10-18T19:35:23.977000+00:00
Original source

Worked like a charm.

rektbyfaith
Administrator
0
10-18-2022, 07:35 PM
#10
Archived author: envvy • Posted: 2022-10-18T19:35:43.418000+00:00
Original source

Added the code and SQL, rebuilt, loaded into instance and the script fired as soon as the gossip window closed.
rektbyfaith
10-18-2022, 07:35 PM #10

Archived author: envvy • Posted: 2022-10-18T19:35:43.418000+00:00
Original source

Added the code and SQL, rebuilt, loaded into instance and the script fired as soon as the gossip window closed.

Pages (5): 1 2 3 4 5 Next
Recently Browsing
 
Recently Browsing