Jump to content
  • 0

A little help with these simple lines


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

I need help with these line of codes x_x

 

announce "You suddenly hear a ghastly voice",bc_red,bc_self;
sleep2 5000;
announce "Faint Voice: You, who have known my existence.",bc_red,bc_area;
sleep2 8000;

I tried it on my server and it seems that it announces everywhere instead of only to the player or only to the area where the npc is.

Can someone try to set it right? The first one should be announced to the player only and the second one should be announced in the map only.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

"bc_red" is not a valid flag, so the constant gets converted to 0, and flag 0 is the same as bc_all.

bc_all	0
bc_map	1
bc_area	2
bc_self	3
bc_pc	0
bc_npc	8
bc_yellow	0
bc_blue	16
bc_woe	32
Flag should be bc_self (or bc_map for the whole map), and then specify the color after.

// announce "<text>",<flag>,<fontColor>;
announce "You suddenly hear a ghastly voice", bc_self,"0xFF0000";
sleep2 5000;
announce "Faint Voice: You, who have known my existence.", bc_map,"0xFF0000";
sleep2 8000;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Thanks for the info, this should help me with the quest NPC I'm doing.

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