PDA

View Full Version : LUA eq:selfcast


Furniture
07-17-2013, 09:00 PM
I finally got LUA working properly, and everything seems to work except one thing.

the eq.SelfCast function in codes are not working.

for example: here is a translocator script

function event_say(e)
if(e.message:findi("hail")) then
e.self:Say("Hello there. There seem to be some strange problems with the boats in this area. The Academy of Arcane Sciences has sent a small team of us to investigate them. If you need to [travel to] Erud's [Crossing] in the meantime, I can transport you to my companion there.");
elseif(e.message:findi("crossing")) then
eq.SelfCast(2289);
end
end


everything works up until you say "crossing" and nothing happens

Is this a known issue?

Robregen
07-17-2013, 09:07 PM
it's working for me. make sure you put the lua_module in the server directory as it uses one of the files in that folder. and it's up to date.

The lua_module acts like a plugin and it is included in the svn quest folder.

Furniture
07-17-2013, 09:43 PM
awesome thanks, ill do that

Furniture
07-17-2013, 09:44 PM
I'm sorry, where is the lua_module? I cant find it anywhere

Uleat
07-17-2013, 09:46 PM
It's in your 'quests' repository..like 'plugins'

KLS
07-18-2013, 03:37 PM
If you're using custom quests go steal PEQ's lua_modules out of the quests from the daily dump: http://peqtgc.com/releases. It's still somewhat primitive but we're working on it.

Furniture
07-18-2013, 04:28 PM
Everything is working fine now, thanks