heya,
i trying to get this command to run in LUA to setup an buff npc.
But i cant get this working with LUA.
Code:
function event_say(e)
local myid = e.other:GetID();
if(e.message:findi("hail")) then
e.self:Say("Welcome, do you want some [" .. eq.say_link("buffs",false,"buffs") .. "]?");
elseif (e.message:findi("buffs")) then
e.self:CastToClient(18323, myid);
end
end
The npc starts always to cast on him self. I tried all kind of combinations but i dont get the npc to cast a spell on me. I checked the return id from the function GetID and it looks ok.
I was not able to find any examples on the forum / web. And the LUA reference doesnt have any command for selfcast or something.
Thanks in advance for any hints.
Edit: Oh i see there is a quest:lua forum. Maybe someone can move this. Sorry for that.