Jump to content
  • 0

getcharip() with variable


Question

Posted

Hello there,

 

I read the manual and other people script how to use getcharip with variable. But i don't know why does my script wont show the specified user name ip.

 

This is my test script:

 

prontera,156,178,3    script    IPcheck    952,{

    //input character name
    input .@Name$;    
    mes getcharip(.@Name$);

end;
}
 

 


 

9 answers to this question

Recommended Posts

Posted

Alternative : 

prontera,150,150,3    script    Sample    952,{
    //input character name
    input .@name$;
    mes getcharip(getcharid(3, .@name$));
    close;
}
  • Upvote 1
Posted

the name of the user input in the script ...must be an online player.

otherwise you have to use SQL run some query to get the result for offline users.

Posted

No no, the script you show is the alternative i have made. It works fine because you pass the account id of an invoking player as an argument. what i mean is that when you try the script of the topic starter. it doesn't work even i input the online player name

Posted (edited)

Alternative : 

prontera,150,150,3    script    Sample    952,{
    //input character name
    input .@name$;
    mes getcharip(getcharid(3, .@name$));
    close;
}

Thank you Patskie,  Emistry and Ryokem, it works.

As usual, you are awesome.

Edited by nobukadnezar

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