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 04-21-2009, 02:05 AM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
Red face spar arena script help (was titled "scripting help!")

i have this script for a spar arena and it will not place the bomb on player chats start. and i need help with the disabling weapons when not in spar and re-enabling them when the player says 'start' so they can spar!

here is the script if you could please help me get this script working that would be great thanks
-Joker


PHP Code:
//#CLIENTSIDE
    
function onCreated() {
      
setTimer(0.05);
    }
function 
onPlayerChats() {
      if (
player.chat == "start") {
        if (
this.sparring.size() == 2putbomb(03135);
      }
  elseif (
player.chat == "join") {
        if (
this.sparring.size 3) {
player.30;
    
player.30;
    }
      }
    }
function 
onTimeout() {
      
temp.sparAreaX 0;
      
temp.sparAreaY 0;

      
temp.sparAreaWidth 10;
      
temp.sparAreaHeight 10
  
if (player.x in |temp.sparAreaXtemp.sparAreaX temp.sparAreaWidth|
          && 
player.y in |temp.sparAreaYtemp.sparAreaY temp.sparAreaHeight|) {

           if (!(
player.account in this.sparring)) {
             if (
this.sparring.size() < 3) {
            
this.sparring.add(player.account);
             }

     else {
       
player.30;
       
player.30;
     }
       }
      }

      else {
    if (
player.account in this.sparringthis.sparring.remove(player.account);
      }
  
setTimer(0.05);
    } 
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 02:33 PM.


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