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 07-05-2001, 01:36 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Testing other player's strings

-Jadis, Brady is letting me use his account to post...

Ok I know you can do
PHP Code:
for (i=0;i<playerscount;i++) if (strequals(#a(this.i),blah)) ; 
But can you check other player's #s strings? If not this would be -------very-------- nice stefan please add it in 2.05 if not already featured.

Dont give me crap about triggeraction or setting it to a server.string because that is not useful in my script.
__________________

Last edited by Brady2; 07-05-2001 at 01:38 PM..
Reply With Quote
  #2  
Old 07-05-2001, 03:16 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
You can check them with the with stuff, but that's NPC Server only.
__________________

Reply With Quote
  #3  
Old 07-05-2001, 11:10 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
-Posted by Jadis

*twitch* How would I do it with the NPCServer?

PHP Code:
if (timeout) {
 for (
this.i=0;this.i<playerscount;this.i++)
  
with (getplayer(#a(this.i))) if (strtofloat(#s(blah))==0) ; 
Would it be something like that?
Never done NPC Server before
__________________
Reply With Quote
  #4  
Old 07-05-2001, 11:15 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Hmm...
NPC Code:
if (initialized||timeout) {
for (i=0;i<playerscount;i++) {
with (players[i]) {
if (strequals(#s(client.blahblah),blah)) {
dostuff;
}
else {
dootherstuff;
}
}
}
timeout=0.05;
}


Is what you would use I think.
__________________

Reply With Quote
  #5  
Old 07-06-2001, 05:45 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Can't use a .05 timeout with a server side script, change the timeout to .1 or higher and it will work.
__________________
Eric Kraft
Reply With Quote
  #6  
Old 07-06-2001, 05:59 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
-Posted by Jadis

Thanks Kaimetsu and Lady Midnight.
__________________
Reply With Quote
  #7  
Old 07-06-2001, 02:56 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Er1c
Can't use a .05 timeout with a server side script, change the timeout to .1 or higher and it will work.
Yes I know, I'm just used to typing the .05 for a timeout.
__________________

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 06:25 AM.


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