Thread: Help :(
View Single Post
  #20  
Old 08-22-2009, 05:29 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Why are you using a serverr flag for this? You can just send the token setting the midi/streaming URL to the server. Also, it would be so much easier if you used a Gani for this.

In a weapon/level:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (!(
player.account in {"sssssssssss","Decus_Arilias"}))
    return;
  if (!(
player.chat.tokenize()[0] == "playmidi"))
    return;
  
setAni("playmidi",player.chat.tokenize()[1]);

In a Gani named "playmidi" with preferably the idle in it or something to show that you're playing a song, go down to below all the DEF stuff and do something like this under it:
PHP Code:
SCRIPT
function onPlayerEnters()
  
play(param[0]);
SCRIPTEND 
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 08-22-2009 at 06:57 PM.. Reason: forgot the ) in setAni()
Reply With Quote