Jump to content
Eviles

Enabling Player Damage on Map

Recommended Posts

Hello guys!

 

I was been trying to make players fight in a map if conditions meets, but been stuck on that. Years ago i've seen on maindev that it possible to do on skilleffect.lua maybe... that method before using pos as condition, but i forgot what the function name or if it really located at skilleffect.lua. I've been reading src to try find any clue but no lucky. PK Mouse Icon can be enabled by using SetPkState(role, num) -> where num = 0 or 1 and IsInPK(role) returns if 0 or 1, what about to enable damage to player?

 

- So.. probably according that what reading src i want a function to set getCmd_SetInPK() equal true or a function to make players able to fight in a map even if it isn't PK and just to the "role" if there's such function.
 

Thanks :smile:!! 

Edited by Satan

lelouch_signature_by_vahntheknight-d4uafwj.png

Share this post


Link to post
Share on other sites

Check is_friend function, in functions.lua

This function checks if players (cha1, cha2) can attack each other

return 1 -- Can't Attack

return 0 -- Can Attack

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...