Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-21-2007, 03:12 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Appearance

HTML Code:
function savePlayer(curPlayer)
{
  temp.saveStuff = {"headimg", "bodyimg", "shieldimg", 
                    "attr[1]", "colors[0]", "colors[1]", 
                    "colors[3]", "colors[4]"};
  for (temp.curSave: temp.saveStuff)
  {
    makevar("temp.saveAccount.PD" @ temp.curSave) = makevar("temp.curPlayer." @ temp.curSave);
  }
  /*
    Finish rest of the script...
  */
}
All pretty much works, other than the colors of what the player is wearing. It's all done serverside, however it doesn't want to save what the player's currently wearing, color-wise that is.
Anyone have any idea why it seems to ignore the colors part?

Here's what it's saving:
PHP Code:
PDattr[1]=0
PDbodyimg
=body.png
PDcolors
[0]=0
PDcolors
[1]=0
PDcolors
[3]=0
PDcolors
[4]=0
PDheadimg
=head19.png
PDshieldimg
=no-shield.png 
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 04:18 PM.


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