Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Radio. (https://forums.graalonline.com/forums/showthread.php?t=23626)

LordMatt 02-12-2002 12:21 PM

Radio.
 
I am trying to make a p2p radio but everything I try can someone help?

TDO2000 02-12-2002 08:05 PM

um... pleaze give out a better description of what u want to make and what doesn't work...

TDK_RC6 02-12-2002 08:13 PM

me no comprehend

joseyisleet 02-13-2002 05:54 AM

-=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);}

Saga2001 02-14-2002 12:17 AM

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.

Spanko 02-14-2002 12:21 AM

Music play or message transmission?

Slaktmaster 02-14-2002 12:32 AM

Do both, like the one I did for N-POLALS.>

zell12 02-14-2002 02:20 AM

umm... N-POLALS?

Saga2001 02-15-2002 12:54 AM

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.


All times are GMT +2. The time now is 02:51 AM.

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