Jump to content
  • 0

variable question


LatSo

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

What variable is permanent global variable?

I mean, I used

$variable

but my NPC can't ready it. I mean, for example When player X talks to NPC, $variable will be set to but when I try to check if $variable = 1 , it shows 0

 

Basically my question is a global variable that will not delete when I reload my server or restart.

 

Thanks!

Edited by LatSo
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt

 

$name - permanent global integer variable

$name$ - permanent global string variable

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt

 

 

$name - permanent global integer variable

$name$ - permanent global string variable

 

 

used this but it did not recognize the script, Like in my 1st post sir.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Oh sorry, I must have missed that detail.

Could you show your script, please?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

Oh sorry, I must have missed that detail.

Could you show your script, please?

wait Ill change back to permanent variables again and ( changed it to temporary since I got this error/bug ) Ill message you the script in a while

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...