Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-25-2002, 01:39 PM
AvPPoW AvPPoW is offline
Registered User
Join Date: Oct 2001
Posts: 6
AvPPoW is on a distinguished road
Send a message via AIM to AvPPoW
weird this var bug

hello, while working on jobs for dd I have recently encountered bugs that involve this.vars, refresh my memory, this var's keep track of vars for the local npc right? Well anyways let me give you an example. In my mining script I use this vars to keep track of a rock/gem's life. If one player starts to mine and another player hits it while he is mining it reverts to starting progress. Like if the ore was on stage 3 (6 different stages) and he hit it the ore would revert back to stage 1, and then if I hit it again it would be at stage three again and so on. how can I resolve this?
__________________
Reply With Quote
  #2  
Old 02-26-2002, 03:29 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally posted by Kaimetsu
save[] vars.
beat me to it mr. monkey
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 02-26-2002, 08:16 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
OoOoOo...

*always wanted to know what save[] did...*

Ahhh..

*still doesn't really get it*
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #4  
Old 02-26-2002, 08:55 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
how come you can only save up to 220 in save variables??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #5  
Old 02-27-2002, 01:26 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by TDK_RC6
how come you can only save up to 220 in save variables??
hmmm save vars are something like byte-vars in other languages...
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 02-27-2002, 01:52 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Some time ago I made like an exact copy of the 2001 mining script for free servers. Was never put into use.
Reply With Quote
  #7  
Old 02-27-2002, 07:56 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Kaimetsu


But bytes can hold 256 different values rather than 221.
save only has 221??? oh my mistake ^_^
__________________
No Webhost at the moment
Reply With Quote
  #8  
Old 02-27-2002, 09:54 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
I used save[] vars a while back for a playerhouse system, worked like a charm, I'd suggest em anyday.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 02-28-2002, 06:35 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by TDK_RC6
how come you can only save up to 220 in save variables??
If i can remember correctly it is due to byte size.
normally there is a 255 limit.
it is difficult to explain tho and i am very tired lol but
255 isn't a true limit due to the fact that there is not an evan amount of data in a bite (cant remember exact figure)
then again this could have been answered later on in the post
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #10  
Old 02-28-2002, 02:21 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Kaimetsu


No, I don't think it's anything to do with byte size. Normal bytes can store 256 different values - there are obviously some reserved states for some reason.
your correct forget that post of mine lol
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
Reply


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 03:47 AM.


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