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

[DiscordArchive] Does that mean the gossip option basically needs the cast that spell on the player, like the quest t

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
10-18-2022, 06:09 PM
#1
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?
rektbyfaith
10-18-2022, 06:09 PM #1

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?

rektbyfaith
Administrator
0
10-18-2022, 06:09 PM
#2
Archived author: Kitzunu • Posted: 2022-10-18T18:09:28.844000+00:00
Original source

sure
rektbyfaith
10-18-2022, 06:09 PM #2

Archived author: Kitzunu • Posted: 2022-10-18T18:09:28.844000+00:00
Original source

sure

rektbyfaith
Administrator
0
10-18-2022, 06:09 PM
#3
Archived author: Kitzunu • Posted: 2022-10-18T18:09:30.846000+00:00
Original source

I believe so
rektbyfaith
10-18-2022, 06:09 PM #3

Archived author: Kitzunu • Posted: 2022-10-18T18:09:30.846000+00:00
Original source

I believe so

rektbyfaith
Administrator
0
10-18-2022, 06:09 PM
#4
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.
rektbyfaith
10-18-2022, 06:09 PM #4

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.

rektbyfaith
Administrator
0
10-18-2022, 06:09 PM
#5
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;
}
```
rektbyfaith
10-18-2022, 06:09 PM #5

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

rektbyfaith
Administrator
0
10-18-2022, 06:10 PM
#6
Archived author: Kitzunu • Posted: 2022-10-18T18:10:03.329000+00:00
Original source

there is the quest turn in code
rektbyfaith
10-18-2022, 06:10 PM #6

Archived author: Kitzunu • Posted: 2022-10-18T18:10:03.329000+00:00
Original source

there is the quest turn in code

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

Oh yeah
rektbyfaith
10-18-2022, 06:10 PM #7

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

Oh yeah

rektbyfaith
Administrator
0
10-18-2022, 06:10 PM
#8
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
rektbyfaith
10-18-2022, 06:10 PM #8

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

rektbyfaith
Administrator
0
10-18-2022, 06:10 PM
#9
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.
rektbyfaith
10-18-2022, 06:10 PM #9

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.

rektbyfaith
Administrator
0
10-18-2022, 06:10 PM
#10
Archived author: Kitzunu • Posted: 2022-10-18T18:10:54.173000+00:00
Original source

but that code for gossip, would fix it
rektbyfaith
10-18-2022, 06:10 PM #10

Archived author: Kitzunu • Posted: 2022-10-18T18:10:54.173000+00:00
Original source

but that code for gossip, would fix it

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)