Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2014, 01:17 AM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
I went with looping through allplayers via clientside checking their location on the gmap. If they're within a certain areas (no pk zones), they won't block. In Era's case though, I did a little extra step and did checks to see if a player was set to pk mode which would cause them to block even in a no pk zone. Very useful btw.
__________________
Reply With Quote
  #2  
Old 08-21-2014, 03:21 AM
Restraint Restraint is offline
NaS
Join Date: Jan 2014
Posts: 21
Restraint will become famous soon enough
Quote:
Originally Posted by Tim_Rocks View Post
I went with looping through allplayers via clientside checking their location on the gmap. If they're within a certain areas (no pk zones), they won't block. In Era's case though, I did a little extra step and did checks to see if a player was set to pk mode which would cause them to block even in a no pk zone. Very useful btw.
You could do the same by simply looping through players on the clientside, instead of allplayers.

And, just a heads-up, you CAN alter player killing back and forth.

this.level.nopkzone = true/false;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.