Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-31-2010, 03:28 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Exclamation GUI.settext();

PHP Code:
function onTimeout()
{
   
this.hirebiz clientr.bizname;
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.clientr.bizrank);
 
Biz_PlayerAdmin.SetText(this.findselected.clientr.bizadmin);
setTimer(0.05);

why doesnt this show other player's names and info only mynes when selectd.
it shows the other player's name only no bizrank or bizadminlevel.
Reply With Quote
  #2  
Old 05-31-2010, 03:34 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by xMane View Post
PHP Code:
function onTimeout()
{
   
this.hirebiz clientr.bizname;
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.clientr.bizrank);
 
Biz_PlayerAdmin.SetText(this.findselected.clientr.bizadmin);
setTimer(0.05);

why doesnt this show other player's names and info only mynes when selectd.
it shows the other player's name only no bizrank or bizadminlevel.
You can't read clientr flags from the clientside, I'd recommend storing the biz rank/admin in the players attr (player.attr[##]), that way you can read it to and from the server.


READ CHRIS VIMES POST, HE EXPLAINED ALOT:
http://forums.graalonline.com/forums...hp?t=134259285
__________________
Reply With Quote
  #3  
Old 05-31-2010, 03:10 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
OH i got you thanks so it would be

PHP Code:
//#CLIENTSIDE
function onTimeOut() {
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.player.attr[10]);
 
Biz_PlayerAdmin.SetText(this.findselected.player.attr[10]);
setTimer(0.05);

? this doesnt work /\

Last edited by xMane; 05-31-2010 at 04:04 PM..
Reply With Quote
  #4  
Old 05-31-2010, 04:47 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I don't mean to sound rude but it seems like you're jumping in way over your head. You should learn the basics of scripting before trying to do things like this since right now there are many flaws with your approach which you won't understand until you're more familiar with Gscript.
__________________
Reply With Quote
  #5  
Old 09-08-2010, 07:50 AM
Forkk Forkk is offline
Really Forkking Awesome
Forkk's Avatar
Join Date: Sep 2010
Posts: 20
Forkk is on a distinguished road
Quote:
Originally Posted by xAndrewx View Post
You can't read clientr flags from the clientside, I'd recommend storing the biz rank/admin in the players attr (player.attr[##]), that way you can read it to and from the server.


READ CHRIS VIMES POST, HE EXPLAINED ALOT:
http://forums.graalonline.com/forums...hp?t=134259285
BS you totally can read clientr from clientside, you just can't set it from clientside
__________________
Reply With Quote
  #6  
Old 09-08-2010, 07:52 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by Forkk View Post
BS you totally can read clientr from clientside, you just can't set it from clientside
You can't read other players clientr variables from clientside.

Was that worth the bump?
__________________

Reply With Quote
  #7  
Old 09-08-2010, 07:55 AM
Forkk Forkk is offline
Really Forkking Awesome
Forkk's Avatar
Join Date: Sep 2010
Posts: 20
Forkk is on a distinguished road
Oh umm
X_X My bad! LOL
__________________
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 08:56 AM.


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