Log in

View Full Version : Mesmerize breaking: message to clients


Domingodarkrage
09-08-2014, 12:09 PM
Does anyone have some code which informs nearby clients that a mesmerize spell has been broken due to damage, and states both the npc and the client who broke the mesmerize?

I've been working on adding some code to do this, similar to how the live server does it, but i'm not having much success. So far, all I have been successful with is tagging along an emote to nearby players when mesmerize breaks (either due to damage, or wearing off naturally). I might be using older source code in case it is in, but I'd rather not implement all new files as it would remove some other custom code.

demonstar55
09-08-2014, 12:21 PM
We already do this. Update your source.

Domingodarkrage
09-08-2014, 01:13 PM
While I didn't want to update to all new source code and potentially lose my own progress, thanks for letting me know that the mesmerize breaking code is in game. I was able to copy over only what I required and it is working well.

In case there are others that are interested when searching for this in the future, check out the changes at /zone/attack.cpp, and search for 'mez' to locate.

lerxst2112
09-08-2014, 04:15 PM
Merging is fun, I highly recommend it. :)

demonstar55
09-08-2014, 04:48 PM
Merging is fun, I highly recommend it. :)

Me too, security fixes are always important