Thread: Storing Flags
View Single Post
  #1  
Old 03-29-2009, 01:59 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
Storing Flags

I've got a few questions relating to storing information


1,) If I were to set an attr of an NPC (class) and was to use it to transfer data from server to client, could a player edit this information from the client side to effect the script?

2,) I'm wanting to store alot of information inside a string in the players attributes, I'm just wondering what the best way would be
Method A:
PHP Code:
  this.item_Knife = {
    {
"damage"3},
    {
"displayname""Knife"}, 
    {
"weight", {0.150.04}}
  }; 
Method B: (Not too sure if this can be done with clientr and also if it's secure...)
PHP Code:
  this.item_Knife.damage 3;
  
this.item_Knife.displayname "Knife";
  
this.item_Knife.weight = {0.150.04}; 
Any suggestions? thanks
Reply With Quote