Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-17-2008, 05:34 AM
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
Appending to a clientr. array

So I'm setting an array on the serverside, it works fine. BUT it won't let me append to it... I mean, it will, but it's acting really strange.
First off, if I append to it(add(), or manually changing the arrays) it will show fine on the serverside. BUT, those same changes won't show on the clientside.

This is my echo of the array on the serverside:
"124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","""shortsword, """"2,2,2,0,2"""""",""longsword,""""2,2,2,0,2""""" ",""dagger,""""2,2,2,0,2"""""""

This is the echo clientside:
"124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","0,0,0"

What's with that? Oh, and here's the script(partial/edited out):
PHP Code:
      clientr.("wpn_" @ (@itemname) @ "-" @ (@itemid))={
        {
itemid,item.(@itemname).arcname,item.(@itemname).itemname},
        {
item.(@itemname).iconimage,item.(@itemname).weaponimage},
        {
item.(@itemname).type,item.(@itemname).weapontype,item.(@itemname).swordtype},
        
item.(@itemname).basestats,
        {
0,0,0,0,0},
        new[
item.(@itemname).nextsteps],
      };
      for (
i=0;i<item.(@itemname).nextsteps;i++) {
        
clientr.("wpn_" @ (@itemname) @ "-" @ (@itemid))[5][i]=(item.(@itemname).(@"progress_" i));
      } 
Reply With Quote
 


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:05 AM.


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