Jump to content
  • 0

enable and disable NPC via whisper


DJFUNK

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

As same as the title, :D

is possible? to enable and disable NPC via whisper /hmm

such I whisp the one of NPC name:

npc:healer -> open

and NPC Healer will appear.

npc:healer -> close

and NPC Healer will disappear.

Edited by DJFUNK
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You'll have to add this label every script you want with this feature.

OnWhisperGlobal:
   if (@whispervar0$ == "open") hideoffnpc strnpcinfo(0);
   if (@whispervar0$ == "close") hideonnpc strnpcinfo(0);
   end;

(or, if it's a lot of scripts, create a function for it)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

Done... :)

Big thank's Euphy

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