[DiscordArchive] Does that mean the gossip option basically needs the cast that spell on the player, like the quest t
[DiscordArchive] Does that mean the gossip option basically needs the cast that spell on the player, like the quest t
Archived author: Revision • Posted: 2022-10-18T18:09:13.294000+00:00
Original source
Does that mean the gossip option basically needs the cast that spell on the player, like the quest turn-in does?
Archived author: Kitzunu • Posted: 2022-10-18T18:09:28.844000+00:00
Original source
sure
Archived author: Kitzunu • Posted: 2022-10-18T18:09:30.846000+00:00
Original source
I believe so
Archived author: Revision • Posted: 2022-10-18T18:09:50.025000+00:00
Original source
It might be possible to do with smart_scripts, perhaps I should give it a go.
Archived author: Kitzunu • Posted: 2022-10-18T18:09:59.158000+00:00
Original source
```cpp
class go_loosely_turned_soil : public GameObjectScript
{
public:
go_loosely_turned_soil() : GameObjectScript("go_loosely_turned_soil") { }
bool OnQuestReward(Player* player, GameObject* go, Quest const* /*quest*/, uint32 /*opt*/) override
{
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;
}
```
Archived author: Kitzunu • Posted: 2022-10-18T18:10:03.329000+00:00
Original source
there is the quest turn in code
Archived author: Revision • Posted: 2022-10-18T18:10:15.508000+00:00
Original source
Oh yeah
Archived author: Kitzunu • Posted: 2022-10-18T18:10:30.076000+00:00
Original source
I'd say keep it CPP for bigger events, and that keeps everything with this event together
Archived author: Revision • Posted: 2022-10-18T18:10:50.486000+00:00
Original source
So the pumpkin needs a script added to it and the script coded. There's no real reason why the gossip option should be defined the database too since it would just add multiple options.
Archived author: Kitzunu • Posted: 2022-10-18T18:10:54.173000+00:00
Original source
but that code for gossip, would fix it