[DiscordArchive] Did you want that changed?
[DiscordArchive] Did you want that changed?
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"));
```
Archived author: Tea • Posted: 2023-05-21T14:39:29.129000+00:00
Original source
FindCreatureOptions also has other filters you can set
Archived author: Malcrom • Posted: 2023-05-21T14:39:39.068000+00:00
Original source
ok
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
Archived author: StonedCookieGaming • Posted: 2023-05-21T14:42:24.139000+00:00
Original source
Hey so titans grip doesn't work for warrior
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;
```
Archived author: Malcrom • Posted: 2023-05-21T14:47:04.198000+00:00
Original source
is that ok?
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?