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 11-24-2009, 09:52 PM
OiRodgar OiRodgar is offline
Registered User
OiRodgar's Avatar
Join Date: Jan 2005
Posts: 23
OiRodgar is on a distinguished road
twinkling lamp

Hello! I got a problem. I'm trying to script a twinkling lamp. But somehow it doesn't work.

PHP Code:
// NPC made by OiRodgar
//#CLIENTSIDE
function onCreated() {
showimg(200,"light4.png",x-3.1,y-3);
changeimgcolors(200,1,0.5,0.1,0.5);
changeimgzoom(200,2);
changeimgvis(200,3);
setTimer=(0.1);
}

function 
onTimeout() {
changeimgcolors(200,1,.5,.1,random(.5,.4));
setTimer=(0.1);

The timeout should change the colour of the light.
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:53 PM.


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