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 03-08-2002, 07:55 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Can someone help me with walkie talkie

Can someone fix this i need it so when they fire it it works and so when they fire it off it stops and i need it so when someone chat it appears on walkie talkie if on.
NPC Code:

if (playertouchsme) {toweapons Walkie talkie;
}
if (weaponfired) {
setplayerprop#c,#s(server.walkie1);
timeout=.05;
}
if (playerchats) {
setstring server.walkie1,#n:#c;
}

__________________
- Zidane / Zidaya
Reply With Quote
  #2  
Old 03-08-2002, 03:15 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Can someone help me with walkie talkie

Quote:
Originally posted by Deadly_Killer
Can someone fix this i need it so when they fire it it works and so when they fire it off it stops and i need it so when someone chat it appears on walkie talkie if on.
NPC Code:

if (playertouchsme) {toweapons Walkie talkie;
}
if (weaponfired) {
setplayerprop#c,#s(server.walkie1);
timeout=.05;
}
if (playerchats) {
setstring server.walkie1,#n:#c;
}

i would if it was a script that you made from scratch but i recognize the script to much
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #3  
Old 03-08-2002, 06:28 PM
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
NPC Code:
if (playertouchsme) toweapons Walkie Talkie;
if (weaponfired) this.enabled=1-this.enabled;
if ((created||timeout)&&isweapon) {
if (this.enabled==1) {
if (!(startswith(#n,#s(server.walkie1))) setplayerprop #c,#s(server.walkie1);
}
timeout=0.05;
}
if (playerchats&&isweapon) {
if (this.enabled==1) setstring server.walkie1,#n: #c;
}

I'd have preferred to make it otherwise myself, but I'm not going to do more then you're asking for.
__________________

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
  #4  
Old 03-09-2002, 04:50 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Odd script to me in the first place but it is rather easy but the origional script I saw somewhere else.. hmm
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #5  
Old 03-11-2002, 06:44 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Re: Can someone help me with walkie talkie

Quote:
Originally posted by Deadly_Killer
NPC Code:

if (playertouchsme) {toweapons Walkie talkie;
}
if (weaponfired) {
setplayerprop#c,#s(server.walkie1);
timeout=.05;
}
if (playerchats) {
setstring server.walkie1,#n:#c;
}

That looks so much like a certian Enigma Radio script....
Except missing a tiny bit...
__________________
maximus_asinus
Reply With Quote
  #6  
Old 03-11-2002, 10:37 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Quote:
Originally posted by Spanko
if (weaponfired) this.enabled=1-this.enabled;
on/off mode.. huh?!?.. smart... too smart.. y didnt I think it before?..lol
Reply With Quote
  #7  
Old 03-11-2002, 11:41 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Spanko
NPC Code:
if (playertouchsme) toweapons Walkie Talkie;
if (weaponfired) this.enabled=1-this.enabled;
if ((created||timeout)&&isweapon) {
if (this.enabled==1) {
if (!(startswith(#n,#s(server.walkie1))) setplayerprop #c,#s(server.walkie1);
}
timeout=0.05;
}
if (playerchats&&isweapon) {
if (this.enabled==1) setstring server.walkie1,#n: #c;
}

I'd have preferred to make it otherwise myself, but I'm not going to do more then you're asking for.
you should use accountnames cause you can just change your name and intercept messages to anyone ...
Reply With Quote
  #8  
Old 03-11-2002, 03:45 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Spanko
[code]
if (!(startswith
forgive me if i am wrong but you cant have !(startswith
the command simply doesn't work

__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #9  
Old 03-11-2002, 04:17 PM
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 Kaimetsu
Huh. "Script X for me" has evolved into "Look at this thing I made in 5 minutes and fix it so that it is X". I'm not sure what to do about this.
heehe, destroy, destroy...
__________________

!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
  #10  
Old 03-11-2002, 07:02 PM
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
Quote:
Originally posted by neomaximus2k


forgive me if i am wrong but you cant have !(startswith
the command simply doesn't work

Actually it does, it's contained in an if in an if ! always means not, so it checks to see if it doesn't start with a certain person's name.
__________________

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
  #11  
Old 03-12-2002, 12:45 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Kaimetsu


I don't see any reason why it wouldn't.
just never worked for me that is why i tohught.
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

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:57 PM.


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