Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2009, 07:31 PM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
Searching through players.

So guys, I have a script and for my script it has a client string of theres set, and I checked and they do have the client string in there atts.
But it doesn't read it correctly and adds them to my gui anyway.


PHP Code:
   for(temp.aallplayers) {
    if(!
temp.a.isexternal) {
     
temp.b=findplayer(temp.a);
     
with(temp.b){
      if(
temp.b.client.guildmode == 3){
       return;
       }
       
i++;
       
addrow(i,temp.a.account ":" temp.a.nick);
       }    
      }
     } 
If you need the rest of the script it can be listed, but I tried multiple ways to go through the players client strings and they don't work.

thanks in advance!
Reply With Quote
  #2  
Old 02-03-2009, 08:10 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
You can't read another players client. flags from the clientside.
PHP Code:
for (temp.pallplayers) {
  if (
p.isexternal) continue;
  
//Make another check for the string
  
temp.count++;
  
addRow(countp.account ":" p.nick);

Reply With Quote
  #3  
Old 02-03-2009, 08:52 PM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
Since when, I thought client strings were view able, but clientr. were not ?
Reply With Quote
  #4  
Old 02-03-2009, 08:56 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It's not a matter of client vs clientr, but when you're reading data about other players, I don't think Graal stores client vars in the player objects. Could you imagine how much data would be sent if you were in a room with 20 other players who had a ****load of client vars?
Reply With Quote
  #5  
Old 02-03-2009, 08:59 PM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
Meh, I see you point, well what would be the best way for checking something like this, storing it in a txt file, or using a db npc , or a server.flag?
Reply With Quote
  #6  
Old 02-03-2009, 09:01 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Store it in an attribute, those are readable from other objects.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #7  
Old 02-03-2009, 09:02 PM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
What do you mean?
Reply With Quote
  #8  
Old 02-03-2009, 09:09 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
PHP Code:
player.attr[20] = 3
instead of
PHP Code:
client.guildmode 
Make sure you set the attribute serverside.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #9  
Old 02-03-2009, 09:11 PM
Ronnie Ronnie is offline
Registered User
Join Date: Jun 2008
Location: Nj, USA
Posts: 48
Ronnie is on a distinguished road
Send a message via AIM to Ronnie
Ah , okay, thanks tig, and that is readable clientside? or no?
Reply With Quote
  #10  
Old 02-03-2009, 09:20 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Yes
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:02 PM.


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