Jump to content
  • 0

An Issue with a Hidden NPC


medo

Question


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  138
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

Hi guys,

I am trying to make a hidden npc, but I have a problem. When I use @loadnpc, the message (Hi world) doesn't appear. What exactly I want is that once I use @loadnpc for my hidden npc, the message box of that npc pops up to all players who are online. Here is the script I am using:

-    script    Test    -1,{

mes "[Test]";
mes "Hi world!";
close;

}

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

3 hours ago, medo said:

Hi guys,

I am trying to make a hidden npc, but I have a problem. When I use @loadnpc, the message (Hi world) doesn't appear. What exactly I want is that once I use @loadnpc for my hidden npc, the message box of that npc pops up to all players who are online. Here is the script I am using:


-    script    Test    -1,{

mes "[Test]";
mes "Hi world!";
close;

}

 

-	script	hicommand	-1,{

	
	
OnInit:
bindatcmd "hi", strnpcinfo(0) +"::OnHELLO",99,99;
end;

OnHELLO:	
announce "hellow world", 0;
end;
}

try @hi after loading this npc

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  138
  • Reputation:   0
  • Joined:  07/05/12
  • Last Seen:  

@Cyro Thank you so much, that's pretty handy. Just wondering if there was a way to announce the message once I load it for only one time?

Edited by medo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

It's only announce only once when u use command

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