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 09-10-2006, 01:39 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Arrays and Player Attributes

I noticed when I was scripting something on Babylon that Proper arrays arent showing when you open the player attributes.

My example

NPC Code:

clientr.new_array = new[2][2];



Then later im doing something like

NPC Code:

function onPlayerchats() {
clientr.new_array[0][0] = "foo";
clientr.new_array[0][1] = "bar";
}



I can check the array by echoing it out and it shows properly but in RC it shows

NPC Code:

clientr.new_array="0,0","0,0"



Even when the array does not equal that (Checked and Rechecked).

Is anyone else having this problem? If so, how do I fix it? If not, can someone else check to see if they experince the same issue?

To Ziro and any others:

To clarify the npc is on the serverside, if you read correctly you can see its changing the value if I echo it to RC, but it is NOT changing it in player attributes.

It stays changed when i relog, but still, as "0,0" in rc.

Last edited by Andy0687; 09-10-2006 at 02:15 AM..
Reply With Quote
  #2  
Old 09-10-2006, 01:58 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
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
Maybe you are trying to set clientr.arrayname on clientside?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 09-11-2006, 04:05 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
This is a known bug, the attributes aren't updated, but the server does read the arrays like it is supposed to.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 11:26 PM.


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