Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-24-2006, 12:44 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Serverside and play()

Well, I need a better way to play a sound for every player in the level. I am making an NPC that when grabbed, makes a noise.

I am currently using a gani, which is working, but I can't set the IMG part (setImgPart) with a gani.

Any help?
Reply With Quote
  #2  
Old 03-24-2006, 12:56 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
yes you can... use gani scripts.

also could probably make a blank gani with a sound file set to PARAM1

and then do something like

showani 0,x,y,soundani,FILENAME;

(or whatever the syntax for showani is, ive never even used it)
Reply With Quote
  #3  
Old 03-24-2006, 01:05 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
I have PARAM1 set to sound, and PARAM2 set to the image. The problem is that I can't change the image's size through a script if I'm using a gani.

If I find the syntax for showAni(), then I'll be able to just put an animation of the noise on the NPC's x,y.
Reply With Quote
  #4  
Old 03-24-2006, 01:09 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
showani index,x,y,direction,animation,params;
Reply With Quote
Reply


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


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