[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
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?
Archived author: M'Dic • Posted: 2022-10-18T18:39:50+00:00
Original source
I dont think thats my tattoo artist asking.
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?
Archived author: Nyeriah • Posted: 2022-10-18T19:02:55.797000+00:00
Original source
Close gossip
Archived author: Nyeriah • Posted: 2022-10-18T19:03:00.399000+00:00
Original source
Not clear gossip
Archived author: Nyeriah • Posted: 2022-10-18T19:03:03.704000+00:00
Original source
Try that
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.
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?
Archived author: envvy • Posted: 2022-10-18T19:35:23.977000+00:00
Original source
Worked like a charm.
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.