23 lines
		
	
	
		
			444 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			444 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| void main()
 | |
| {
 | |
| 
 | |
| object oSelf = GetObjectByTag("partyroomexita");
 | |
| object oArea = GetArea(oSelf);
 | |
| object oObject = GetFirstObjectInArea(oArea);
 | |
| 
 | |
|  //Cycle through the area to make sure their are no PC's in the area
 | |
|  while(GetIsObjectValid(oObject))
 | |
|  {
 | |
|  if(!GetIsPC(oObject))
 | |
|  {
 | |
|  DeleteLocalInt(GetModule(), "PartyA");
 | |
|  }
 | |
|  else if(GetIsPC(oObject))
 | |
|  {
 | |
|  SetLocalInt(GetModule(), "PartyA", 1);
 | |
|  return;
 | |
|  }
 | |
|   oObject = GetNextObjectInArea(oArea);
 | |
|  }
 | |
| }
 |