quest:selfcast in LUA
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) 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. |
Haven't really messed with our Lua that much, but try this:
Code:
function event_say(e) |
Hello,
will check it out later when iam back home from work. I wonder why i did use CastToClient instead of CastSpell. Ofcourse it was to later yesterday. haha :) |
Yeah, haha, no problem, not sure if my code will work or not, but probably worth trying at least.
|
The only way i got this running now is by using "other" instead of "self".
Code:
e.other:CastSpell(18323, myid, 0, 0, 0); Thank you ! :) |
You can use..
Code:
eq.SelfCast(18323); It makes the initiator of the quest self cast :) If you are wonder where that is from its from the folder "lua_modules\general_ext.lua" |
Quote:
I was reading the lua reference but didnt see this function. Cool thank you. :) |
All times are GMT -4. The time now is 05:13 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.