Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-19-2012, 12:55 PM
Vatec Vatec is offline
Lurking
Join Date: Oct 2012
Posts: 27
Vatec is on a distinguished road
Best way for this....

I am making a Chance event and everything is good except how to check if the chosen number of the box has any players inside it, right now I have this

PHP Code:
  for (temp.plallplayers) {
    if (
temp.pl.level.name == this.level.name && playersInLevel >= 2) {
      {
        if (
temp.pl.x in coords[box 1][0], coords[box 1][1] | && temp.pl.y in coords[box 1][2], coords[box 1][3] | ) {
          
playerInBox true
Now this works but it is very buggy (wont cycle through different boxes, it chooses a player and no matter how many times you grab the block it still chooses the same box), can someone help me with the best way to do this event?
__________________


Quote:
Originally Posted by GULTHEX View Post
so i think the problem is that onactionclientside isint a real function
Reply With Quote
 


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 10:34 AM.


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