Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-16-2006, 11:14 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Question Dreaded Radio Script.

Hi all,

I've seen a few servers making scripts like this so I tried. I looked at some of Stefan music and post and now got this so far.

Quote:
function onActionServerSide() {
if (params[0]=="electronica") {
this.req = requesturl("http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=1029&file=filename.pls");
catchevent(this.req,"onReceiveData","onData");

function onData(obj) {
for (line: obj.data) {
if (line.starts("File1=http://64.236.34.4:80/stream/1035")) {
play(line.substring(6));
setTimer(0.1);
break;
}
}
this.req = NULL;
}
}
}
Not much but I still can't get it to play. XD I'm using a triggeraction for it becuase I believe it needs to be serverside since it's dealing with actual internet stuff ._.
So what am I doing wrong? Why wont it play. Here's the triggeraction part.

Quote:
function electronica.onAction(){
triggeraction(0, 0, "serverside", this.name, electronica);
}
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 07-01-2006, 03:57 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Can anyone help me?
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 07-02-2006, 11:24 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ah sorry for not helping earlier.
It should all be done on clientside. Requesturl is working better on clientside (currently only ips are allowed at hostname on serverside, not full web addresses), also play will only work on clientside.
Reply With Quote
  #4  
Old 07-03-2006, 01:54 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ok thank you.
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 02-24-2009, 05:28 PM
Valtor Valtor is offline
Registered User
Join Date: Feb 2009
Posts: 1
Valtor is on a distinguished road
Hi all

Hello
I will in my server a Radio SuperNova Radio for SuperNova Radio Admin and SuperNova Radio make
the must when i say play 1 the music come
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 05:26 AM.


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