Jump to content
  • 0

How to make npc visible for GM


Beret

Question


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

Well when I use disablenpc or hideonnpc the npc's are invisible, even maya purple is invisible how do I just gm's can see the npc, to players he is invisible until you activate.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

I think that is not possible to implement it efficiently, the only way is some hack in clif_send but I do not recommend you to edit that code unless you know what you are doing,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

This is the following code but wanted to leave for only GM can see shadow and shaped to the players stay invisible.

http://sourceforge.n...hangeset/15288/

Edited by Beret
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

Yeah but the point of this code is that, you don't even send the packet of displaying that npc to the client.

However what you want is, still send the packet, if the reciever is a GM. In that part of code, you don't know yet, who will be the reciever, so it would be impossible to alter the conditions.

All you can do is, either revert that patch, and give your GM's maya purple card, or move all the checks to clif_send, where you have all the necessarry information.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

Hello xazax tried to find more not found, could you tell me the part that lies.

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