EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Stop casting in LUA (https://www.eqemulator.org/forums/showthread.php?t=39758)

provocating 06-13-2015 09:43 AM

Stop casting in LUA
 
I want to stop the casting of a spell in LUA. I will finish this script out once I can at least get the spell to stop, not worried about that yet, I know how to get the spell ID and I will filter it from there. How do you get a a spell to stop casting though? I am not seeing a client interrupt function out there. I think stop just stops an NPC from moving on it's waypoint and has nothing to do with spells.

Code:

function event_cast_begin(e)
    e.self:stop();
end


NatedogEZ 06-13-2015 02:14 PM

Just doing a search on the source.. I saw InterruptSpell as a lua function

this might work :p

Code:

function event_cast_begin(e)
    e.self:InterruptSpell();
end


provocating 06-13-2015 02:46 PM

I swear i searched in the wiki for that and came up with nothing. I will try that.

NatedogEZ 06-13-2015 03:13 PM

I just use Notepad++ and do a direct search on the source directory on my computer. If you restrict the search to *.h files you can find functions pretty quickly


All times are GMT -4. The time now is 07:52 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.