Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2010, 05:21 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Jiroxys7 View Post
...im doing it wrong....
PHP Code:
this.damagebase "client.stats_" client.weapon_damagebase;
player.chat makevar(this.damagebase); 
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #2  
Old 05-25-2010, 03:38 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by Tolnaftate2004 View Post
PHP Code:
this.damagebase "client.stats_" client.weapon_damagebase;
player.chat makevar(this.damagebase); 
okay, in my attributes, i have client.weapon_damagebase=strength
also, in my attributes, client.stats_strength currently equals 190

my script, of course contains
PHP Code:
this.damagebase "client.stats_" client.weapon_damagebase
using player.chat = makevar(this.damagebase); set my chat text to "client.weapon_damagebase" when its supposed to say "190". i also just tried using player.chat = (@ this. damagebase); and got the exact same result. all of this is being done clientside. but i dont think anything needs to go through the serverside, so i dont think that could be the problem. What else might I be doing wrong?

edit: hold on, it seems that someone broke my server and now nothing's updating >:0
__________________
MY POSTS ARE PRONE TO EDITS!

Last edited by Jiroxys7; 05-25-2010 at 04:15 AM..
Reply With Quote
  #3  
Old 05-25-2010, 04:59 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
try
PHP Code:
this.damagebase player.client.(@ "stats_" player.client.weapon_damagebase); 
I hope this just for displaying information in an interface or something that doesn't need to be secure...you shouldn't be using client.vars otherwise. If not, I can help you figure out a better way to do what it is you need to do.
__________________
Reply With Quote
  #4  
Old 05-25-2010, 05:29 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by salesman View Post
try
PHP Code:
this.damagebase player.client.(@ "stats_" player.client.weapon_damagebase); 
I hope this just for displaying information in an interface or something that doesn't need to be secure...you shouldn't be using client.vars otherwise. If not, I can help you figure out a better way to do what it is you need to do.
I plan on changing that later. dont you calculate and set variables as .clientr serverside or something for that?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #5  
Old 05-25-2010, 05:49 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
clientr.vars can be read by both the client and server, but can only be altered on the serverside
__________________
Reply With Quote
Reply

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 02:14 PM.


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