Okay, so how would I go about creating a check if player is in combat? I have an idea on how, but we've established my track record on this kind of stuff lol.kjLotus wrote:yep.. common mistake actually, overcomplicating!Desufire wrote:Seriously? I was making it harder than it needed to be? /sighkjLotus wrote:
player:setPos(0,0,0,0,player:getZoneID());
literally that's all you need
Making a new command
Re: Making a new command
Re: Making a new command
i'd just check if they were at 100% hp and mp (and if they have a pet, it's also at 100% hp and mp)
Re: Making a new command
Ohoh! I can do that one! Lol
Re: Making a new command
its also possible to check if they have a battletarget (I forget the function, but its got a lua binding), but that doesn't check if something is targeting the player so wouldn't stop somebody who was fast with the escape key. I'd go with Kj's suggestion, or both.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE