Jump to content
  • 0

[source request] getvariableofplayer()


Question

Posted

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

4 answers to this question

Recommended Posts

Posted

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  ;)

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...