Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:36 AM.


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