Jump to content
  • 0

NPC Check Invisible Player


paw

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   1
  • Joined:  05/19/17
  • Last Seen:  

How to not let an invisible player talk to an NPC?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  665
  • Reputation:   673
  • Joined:  11/12/12
  • Last Seen:  

I'd go with

if (checkoption(0x2|0x4|0x4000|0x40)) {
    mes "Please unhide yourself.";
    close;
}

Where
0x2 = OPTION_HIDE
0x4 = OPTION_CLOAK
0x40 = OPTION_INVISIBLE (GM hide and feint bomb)
0x4000 = OPTION_CHASEWALK

Edited by Tokei
  • Upvote 6
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

14 minutes ago, paw said:

How to not let an invisible player talk to an NPC?

prontera.gat, 156, 180, 5    script    Detective    100,{
    if( getstatus(SC_HIDING) ) {
        mes "Please unhide your self.";
        close;
    }
    else {
        mes "How may i help you?";
        close;
    }
}

  • Upvote 1
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...