Jump to content
  • 0

[source request] getvariableofplayer()


Kurofly

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Hi there.

 

I'd like to request a script command that'd get the value of a player variable without attaching the player to the script.

 

I had some issues due to timed checkings which require some player's variables and attaching them to the script will close every menu they could have opened.

So I need a way to get the value of those variables without attaching the player to the script...

 

Thanks in advance  /no1

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Wow I'm really lucky it's fresh new ^^

 

Thanks a lot it'll save a lot of problems.

 

I just have a small question, how can I get the name of the map a player is in whithout attaching him? Does the player already have a variable set when he goes to a new map?

 

Thanks again  ;)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

depend on ur source.

if current rathena (or at least after ef5fe8e4), u can use type 3 and char_id in 2nd param of

*strcharinfo(<type>{,<char_id>})
or u can edit it in script.c to make that command check the 2nd param for char_id
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Yeah nice it's been more than a month dince I last updated my SVN, should have done that before asking (sorry for this ^^)

 

Thank you for the fast answer  /no1

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