Jump to content
  • 0

An Issue with a Hidden NPC


Question

Posted

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;

}

 

3 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted (edited)

@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

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