Hey @Droidz
I tested on 1.12:
EventsLuaWithArgs.OnEventsLuaWithArgs += CastingEventHandler; private void CastingEventHandler(LuaEventsId id, List<string> args) { if (id == LuaEventsId.SPELLCAST_STOP) { _LastSpell = args[1]; _LastCastTimeStamp = DateTime.Now.AddMilliseconds(double.Parse(args[0])); if (_LastSpell == "Polymorph") { _LastPoly = DateTime.Now.AddMilliseconds(double.Parse(args[0])); } Logging.WriteDebug("Last cast spell " + args[1] + " with cast time: " + args[0]); } if(id == LuaEventsId.SPELLCAST_DELAYED) { _LastCastTimeStamp = _LastCastTimeStamp.AddMilliseconds(double.Parse(args[0])); if(_LastSpell == "Polymorph") { _LastPoly = _LastPoly.AddMilliseconds(double.Parse(args[0])); } } }
but my code is never even called.
I think the handler just doesn't receive info on those events in wRobot vanilla.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now