Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Did you want that changed?

[DiscordArchive] Did you want that changed?

[DiscordArchive] Did you want that changed?

Pages (3): Previous 1 2 3
rektbyfaith
Administrator
0
05-21-2023, 02:38 PM
#21
Archived author: Tea • Posted: 2023-05-21T14:38:58.447000+00:00
Original source

```
me->FindNearestCreatureWithOptions(100.f, FindCreatureOptions().SetStringId("blablabla"));

// or

std::vector<Creature*> creatures;
me->GetCreatureListWithOptionsInGrid(creatures, 100.0f, FindCreatureOptions().SetStringId("blablabla"));
```
rektbyfaith
05-21-2023, 02:38 PM #21

Archived author: Tea • Posted: 2023-05-21T14:38:58.447000+00:00
Original source

```
me->FindNearestCreatureWithOptions(100.f, FindCreatureOptions().SetStringId("blablabla"));

// or

std::vector<Creature*> creatures;
me->GetCreatureListWithOptionsInGrid(creatures, 100.0f, FindCreatureOptions().SetStringId("blablabla"));
```

rektbyfaith
Administrator
0
05-21-2023, 02:39 PM
#22
Archived author: Tea • Posted: 2023-05-21T14:39:29.129000+00:00
Original source

FindCreatureOptions also has other filters you can set
rektbyfaith
05-21-2023, 02:39 PM #22

Archived author: Tea • Posted: 2023-05-21T14:39:29.129000+00:00
Original source

FindCreatureOptions also has other filters you can set

rektbyfaith
Administrator
0
05-21-2023, 02:39 PM
#23
Archived author: Malcrom • Posted: 2023-05-21T14:39:39.068000+00:00
Original source

ok
rektbyfaith
05-21-2023, 02:39 PM #23

Archived author: Malcrom • Posted: 2023-05-21T14:39:39.068000+00:00
Original source

ok

rektbyfaith
Administrator
0
05-21-2023, 02:39 PM
#24
Archived author: Tea • Posted: 2023-05-21T14:39:53.702000+00:00
Original source

<https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Object/Object.h#L439-L455> full features here
rektbyfaith
05-21-2023, 02:39 PM #24

Archived author: Tea • Posted: 2023-05-21T14:39:53.702000+00:00
Original source

<https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Object/Object.h#L439-L455> full features here

rektbyfaith
Administrator
0
05-21-2023, 02:42 PM
#25
Archived author: StonedCookieGaming • Posted: 2023-05-21T14:42:24.139000+00:00
Original source

Hey so titans grip doesn't work for warrior
rektbyfaith
05-21-2023, 02:42 PM #25

Archived author: StonedCookieGaming • Posted: 2023-05-21T14:42:24.139000+00:00
Original source

Hey so titans grip doesn't work for warrior

rektbyfaith
Administrator
0
05-21-2023, 02:46 PM
#26
Archived author: Malcrom • Posted: 2023-05-21T14:46:58.493000+00:00
Original source

```cpp
case QUEST_STATUS_REWARDED:
{
Creature* npc1 = nullptr;
Creature* npc2 = nullptr;

if (quest->GetQuestId() == QUEST_WARMING_UP_ALLIANCE)
{
npc1 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("garrick1_alliance_ship"));
npc2 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("garrick2_alliance_ship"));
}
else if (quest->GetQuestId() == QUEST_WARMING_UP_HORDE)
{
npc1 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("grimaxe1_horde_ship"));
npc2 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("grimaxe2_horde_ship"));
}

if (npc1 && npc2)
npc2->SummonPersonalClone(npc1->GetPosition(), TEMPSUMMON_MANUAL_DESPAWN, 0s, 0, 0, player);
}
break;
```
rektbyfaith
05-21-2023, 02:46 PM #26

Archived author: Malcrom • Posted: 2023-05-21T14:46:58.493000+00:00
Original source

```cpp
case QUEST_STATUS_REWARDED:
{
Creature* npc1 = nullptr;
Creature* npc2 = nullptr;

if (quest->GetQuestId() == QUEST_WARMING_UP_ALLIANCE)
{
npc1 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("garrick1_alliance_ship"));
npc2 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("garrick2_alliance_ship"));
}
else if (quest->GetQuestId() == QUEST_WARMING_UP_HORDE)
{
npc1 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("grimaxe1_horde_ship"));
npc2 = player->FindNearestCreatureWithOptions(100.0f, FindCreatureOptions().SetStringId("grimaxe2_horde_ship"));
}

if (npc1 && npc2)
npc2->SummonPersonalClone(npc1->GetPosition(), TEMPSUMMON_MANUAL_DESPAWN, 0s, 0, 0, player);
}
break;
```

rektbyfaith
Administrator
0
05-21-2023, 02:47 PM
#27
Archived author: Malcrom • Posted: 2023-05-21T14:47:04.198000+00:00
Original source

is that ok?
rektbyfaith
05-21-2023, 02:47 PM #27

Archived author: Malcrom • Posted: 2023-05-21T14:47:04.198000+00:00
Original source

is that ok?

rektbyfaith
Administrator
0
05-21-2023, 02:48 PM
#28
Archived author: Malcrom • Posted: 2023-05-21T14:48:32.672000+00:00
Original source

or should I just set the string values in the if?
rektbyfaith
05-21-2023, 02:48 PM #28

Archived author: Malcrom • Posted: 2023-05-21T14:48:32.672000+00:00
Original source

or should I just set the string values in the if?

Pages (3): Previous 1 2 3
Recently Browsing
 
Recently Browsing