Now I have problem with the player:SendTrainerList(WorldObject) method.
The player is close enough to interact with the creature, but the creature just can't open the train list for me.
Here is my code:
function OnChat(event, player, msg, _, lang)
if(msg == "open") then
local trainers = player:GetFriendlyUnitsInRange()
for _, i in ipairs(trainers) do
if(i:GetEntry() == 23103) then
print("i'm out, feeling good. ")