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 08-13-2007, 07:49 AM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
can't seem to get stopsound() to work

im using a gani script to play music for all players and this is done by setting a gani to one of their attributes. the gani script is below:

PHP Code:
SCRIPT
... some code

  
if (temp.play == 0) {
    
stopsound(temp.playm);
  } else {
    
play2(temp.playmplayer.xplayer.ytemp.vlm);
  }

... 
some code
SCRIPTEND 
The gani script will play music for the specific individual, but when i use the stop command in the wNPC, the music wont stop. I even tried it CLIENTSIDE on the wNPC too.

Last edited by Cherrykao; 08-13-2007 at 07:59 AM..
Reply With Quote
  #2  
Old 08-13-2007, 01:12 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
you can try stopmidi()
But, you can't stop the gani form playing via a weapon npc, not that I know of.
You could change the attr to something like -1 etc.. and check in a timeout loop in the gani script..
__________________
Reply With Quote
  #3  
Old 08-13-2007, 02:31 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yeah do stopmidi() for stopiing mp3s, midis, aac streams, etc.
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 08-13-2007, 05:22 PM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
thanks; it works now. i don't even know why i didn't even think about changing the attribute. i tried reading the client's flag in a timeout, but not the attributes.
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 11:40 PM.


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