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 08-28-2008, 07:03 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
a Flute

my computer is too bad to play graal, and i wanted to make something, so i thought i would try a flute.

PHP Code:
function onPlayerEnters()
{
  
setimg"test_flute.png" );
}

function 
onWeaponFired()
{
  while(!
this.keydown(6))
  {
    for(
this.0this.<4this.k++)
    {
      if(
keydown(this.k))
      {
        
setani("test_flute","")
        
play("test_flute_"@this.k@".wav")
      }
    }
  }

__________________
I am the devil, I am here to do to devils work.
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 07:33 PM.


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