PDA

View Full Version : Stop casting in LUA


provocating
06-13-2015, 09:43 AM
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.


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


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