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 02-12-2002, 12:21 PM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
Radio.

I am trying to make a p2p radio but everything I try can someone help?
__________________
-Matt
Reply With Quote
  #2  
Old 02-12-2002, 08:05 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
um... pleaze give out a better description of what u want to make and what doesn't work...
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 02-12-2002, 08:13 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
me no comprehend
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #4  
Old 02-13-2002, 05:54 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
I'd use two npcs; one that sets the flag when they say something like radio-message <messagehere>. With that it sets a string of server.radio,token crap here;. Then in another one simple use something like if (created||timeout){timeout=.05;message #s(server.radio);}
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 02-14-2002, 12:17 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by joseyisleet
-=Josey=-
I'd use two npcs; one that sets the flag when they say something like radio-message <messagehere>. With that it sets a string of server.radio,token crap here;. Then in another one simple use something like if (created||timeout){timeout=.05;message #s(server.radio);}
Its p2p bud, no workie.
I'll post on how to do it 2 nite, when i have time, gota go to german.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 02-14-2002, 12:21 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Music play or message transmission?
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #7  
Old 02-14-2002, 12:32 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Do both, like the one I did for N-POLALS.>
Reply With Quote
  #8  
Old 02-14-2002, 02:20 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
umm... N-POLALS?
__________________
Reply With Quote
  #9  
Old 02-15-2002, 12:54 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by zell12
umm... N-POLALS?
he means n-pulse, darn non-l33t person...
oh well heres a radio, never trested. .
NPC Code:

// Weapon & "Mic":
if (actionserverMessageSend) {
setstring server.radio,#p(0): #p(1);
}
if (actionserverOnOff) {
setstring server.on,#p(0);
}
//#CLIENTSIDE
if (playerchats&&strequals(#g,dj)) {
if (startswith(radio,#c)) {
triggeraction playerx+1.5,playery+2,serverOnOff,weaponname,#e(6,-1,#c);
}
if (startswith(message,#c)) {
triggeraction playerx+1.5,playery+2,serverMessageSend,weaponname ,#a,#e(8,-1,#c);
}
}

// Actual Radio:
if (actionSetText) {
setstring level.mess,#s(server.radio);
}
if (actionteston) {
if (strequals(#s(server.on),on))
this.on=1;
else
this.on=0
}
//#CLIENTSIDE
if (created||initialized||playerenters||timeout) {
triggeraction x,y,teston,;
if (this.on==1) {
triggeraction x,y,SetText,;
message #s(level.mess);
} else {
message;
}
}



i am not the best p2p scripter, and its never been tested, but should work.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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 10:10 AM.


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