Jump to content
  • 0

Variables Question


ToiletMaster

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Hi there guys,

 

I have a question regarding about variables. As " # " is considered a permanent variable for all characters of that accounts and is highly not recommended,

 

what about using the command " set ".

 

Example,

 

set hello,1;

would this be considered bad memory for the server? or is it harmless?

 

Thanks!

Edited by ToiletMaster
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

only by saving $var, permanent server variable over hundred-thousands (100,000) lines will harm server
in fact, if you saving with player permanent variable, the server has already hard-coded a limit
http://www.eathena.ws/board/index.php?showtopic=153708&hl=
so the server will warn you about it when it reaches the limit
once it reaches the limit, that variable isn't save into memory, and discarded,
means the player can redo the quest again and again, always read the ( quest == 0 ) stuffs

since the server has already hard-coded a limit, so its harmless

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

only by saving $var, permanent server variable over hundred-thousands (100,000) lines will harm server

in fact, if you saving with player permanent variable, the server has already hard-coded a limit

http://www.eathena.ws/board/index.php?showtopic=153708&hl=

so the server will warn you about it when it reaches the limit

once it reaches the limit, that variable isn't save into memory, and discarded,

means the player can redo the quest again and again, always read the ( quest == 0 ) stuffs

since the server has already hard-coded a limit, so its harmless

Thanks annie for clearing it up! Now at least i know that i can use set instead of #!

 

Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...