Jump to content
  • 0

enable and disable NPC via whisper


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 1
Posted

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)

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