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 01-22-2006, 12:56 AM
RavenofEarth RavenofEarth is offline
Registered User
RavenofEarth's Avatar
Join Date: Jan 2005
Posts: 86
RavenofEarth is on a distinguished road
Send a message via AIM to RavenofEarth
Instrument trouble...

Now, this has to be the easiest script, and I seem to be having a minor issue with it. The sounds don't seem to be playing when I press the corresponding keys, the sounds all work, I am unsure if I am overlooking something, or what.

NPC Code:
//#CLIENTSIDE
if (weaponfired) {
setani anzell_flute,anzell-flute.png;
disabledefmovement;
}
if (strequals(#m,anzell_flute)) {
if (keydown(6)) enabledefmovement;
if (keydown(5)) {
if (keydown(0)) play fire2.wav;
elseif (keydown(1)) play flute2.wav;
elseif (keydown(2)) play flute3.wav;
elseif (keydown(3)) play flute4.wav;
} else {
if (keydown(0)) play flute5.wav;
elseif (keydown(1)) play flute6.wav;
elseif (keydown(2)) play flute7.wav;
elseif (keydown(3)) play flute8.wav;
}
}



If anyone has any suggestions on a better script, notify me...XD
__________________

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 12:36 PM.


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