[DiscordArchive] You're talking to an NPC right there, no?
[DiscordArchive] You're talking to an NPC right there, no?
Archived author: Honey • Posted: 2025-02-07T13:39:53.017000+00:00
Original source
If else fails, try invisible dummies. Or fix the code if you don't want to hack it.
Archived author: OUTRAKE • Posted: 2025-02-07T13:45:36.670000+00:00
Original source
currently eluna `SendTrainerList` is used to send trainer list if npc is an actual trainer
Archived author: OUTRAKE • Posted: 2025-02-07T13:47:47.855000+00:00
Original source
we are missing the action i think in eluna
Archived author: OUTRAKE • Posted: 2025-02-07T13:47:56.215000+00:00
Original source
```
int SendTrainerList(lua_State* L, Player* player)
{
Creature* obj = Eluna::CHECKOBJ<Creature>(L, 2);
player->GetSession()->SendTrainerList(obj->GET_GUID());
return 0;
}
```
tring str = GetAcoreString(LANG_NPC_TAINER_HELLO);Archived author: OUTRAKE • Posted: 2025-02-07T15:58:48.159000+00:00
Original source
not even that works,
```
Creature* trainer = GetPlayer()->SummonCreature(trainerEntry, x, y, z, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 5000);
ObjectGuid trainerGuid = trainer->GetGUID();
std:
tring str = GetAcoreString(LANG_NPC_TAINER_HELLO);
GetPlayer()->GetSession()->SendTrainerList(trainerGuid, str);
```