• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PZ

OldXar

Member
Joined
Feb 17, 2009
Messages
215
Reaction score
6
Hey guys,

How can I check if a player is in combat ?
If in combat, how do I cancel the action then ?

Kind Regards
 
You can't change players' target, only monsters'.

Or what did you mean? Cancel the action?

How would you check if player is in combat? PZlocked, has battle condition or has target?
 
I would like to make a script,
but that script cannot be used when a player is in comat (pz locked)

How do I check in lua if a player is PZ locked or not ?

Thanks
 
Ok but that one doesnt seem to work for some reason...
Or I am doing something wrong...

Code:
    if(isPlayerPzLocked(cid) == TRUE) then return
	doPlayerSendCancel(cid, "You are in combat.")
     end
 
I know this is old thread but how can i change this if(not(isPlayerPzLocked(cid))) to make it that not only pz(pk) so it also combat or monster attack locked

I made a bless script but i cant make it so players cant say it while on any type of combat

Would be nice if you could help me out

-dredds
 
Back
Top