Jump to content
  • 0

Quest Emoticon Problem


Bisuke

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

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!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

On 12/5/2014 at 12:35 PM, Bisuke said:

Thank you! It works.

Can you tell me how did you make it work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   27
  • Joined:  12/05/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

Thank you! It works.

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