Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-22-2012, 11:54 PM
Stowen Stowen is offline
Graalian since '01
Join Date: Sep 2005
Location: Massachusets, USA
Posts: 156
Stowen will become famous soon enough
Send a message via AIM to Stowen Send a message via MSN to Stowen
Trying to make a Timer

Hello. I'm trying to make a countdown timer, but it doesn't seem to be working. I'm also not sure of the best way to go about it.

Here is what I have so far:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.timer == 15;
  
this.chat = "Countdown";
}

function 
onPlayerChats() {
  if (
player.chat == "/count") {
    
this.timer == 15;
    
onTimeOut();
  }
}

function 
onTimeOut() {
  
this.timer - 1;
  
this.chat = this.timer;
  
setTimer(1);
} 
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:23 AM.


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