Jump to content
  • 0

Quest Emoticon Problem


Question

Posted

Hi there, I'm currently coding some quest for my server. I want to add a Quest Emoticon to my NPC using @showevent 1,1; it is working however, you must click the npc first before it appears, is there a way to make it appear automatically?

 

I searched the forum for answers, I tried using an OnPCLoadEvent and LoadEvent mapflag but it didn't work. I used OnInit but it didnt work also.

 

Thanks in advance!

7 answers to this question

Recommended Posts

  • 1
Posted

Here is the script. It's a basic NPC. I want to show the Quest Icon without talking to the NPC.

 

So you want the NPC to use showevent when there are nearby players? Then use the OnTouch label, and add <x> and <y> trigger area to the NPC header (the 55,5,5 part). The code below makes the NPC display the showevent icon when a player enters its 5x5 area.

new_1-1,62,107,4	script	Test	55,5,5,{



mes "[Test]";
    mes "Hello World.";
    close;

OnTouch:
   showevent 1,1;	
 end;
}
Posted

The information you provided is quite lacking. Can you provide the script(s) that you are using? And the purpose of the NPC(s), and the goal you are trying to achieve.

 

Here is the script. It's a basic NPC. I want to show the Quest Icon without talking to the NPC.

new_1-1,62,107,4	script	Test	55,{

 OnPCLoadMapEvent:
   showevent 1,1;

mes "[Test]";
    mes "Hello World.";
    close;

 
} 

new_1-1   mapflag    loadevent
Posted

I am sorry, What I'm trying to say is that, I am using OnPCLoadMapEvent: and mapflag loadevent. The quest icon is working, however you must click the npc first before it appears. Is there a way to make it automatically appear as soon as the npc loads?

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