项目

一般

简介

SendMsg » 历史记录 » 版本 6

tejie, 2025-07-25 14:32

1 2 yangdefeng
h4. _*%{color:green}sendMsg%*_
2
3 1 machenhe
聊天框中发送文字信息
4
5 5 tejie
标签:命令定义^sendMsg
6 1 machenhe
7
*格式*
8
|_.命令名	|_.参数1	|_.参数2	|_.参数3	|
9
|sendMsg	|广播范围	|自定义文字颜色	|消息文字内容	|
10
11
*说明*
12 5 tejie
|^.参数1|_*广播消息*_
13 1 machenhe
sendMsg 0
14
sendMsg 1
15
sendMsg 2
16
sendMsg 3 
17
_*个人消息*_
18
sendMsg 4 点击NPC时,此命令触发NPC头顶消息。支持%n参数,代表npc名称。
19
sendMsg 5(红)
20
sendMsg 6(绿)
21 6 tejie
sendMsg 7(蓝)
22
_*行会频道*_
23
sendMsg 8
24
_*世界频道*_
25
sendMsg 9|
26 5 tejie
|^.参数2|自定义文字颜色id(0-255)
27
参数2为空时,按照参数1设置显示文字颜色|
28
|^.参数3|支持变量形式的字符串
29 1 machenhe
支持文字单独设置颜色id(0-255)
30 5 tejie
{文字信息<notextile>|</notextile>参数1:参数2:参数3}
31 1 machenhe
%{color:deepPink}注:文字单独设置颜色,参数2和参数3效果未支持,但不能缺省%
32 5 tejie
参数1:单独定义的文字颜色
33
参数2:文字背景颜色(效果暂不支持)
34
参数3:显示文字背景色或文字描边(效果暂不支持)
35
0,显示文字背景色
36
1,显示文字描边|
37 1 machenhe
38
-
39
-
40
41 2 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
42 1 machenhe
43
bq. [@main]
44
#act
45
%{color:lightGrey};以下\"任务信息:\"显示为绿色(参数1为6)
46
;以下\"获得兽人信\"显示为黄色(文字单独设置颜色为151)%
47 2 yangdefeng
%{color:green}sendMsg% 6 任务信息:{获得兽人信物|151:0:1}
48 1 machenhe
49
bq. [@main]
50
#act
51
%{color:lightGrey};以下\"任务信息:\"显示为黄色(参数2为151)
52
;以下\"获得兽人信\"显示为粉色(文字单独设置颜色为253)%
53 2 yangdefeng
%{color:green}sendMsg% 6 151 任务信息:{获得兽人信物|253:0:1}
54 1 machenhe
55
bq. [@main]
56
#act
57
%{color:lightGrey};以下\"任务信息:\"显示为蓝色(参数1为7)
58
;以下\"获得兽人信物\"显示为黄色(文字单独设置颜色为151)%
59
mov d0 2
60 2 yangdefeng
%{color:green}sendMsg% 7 任务信息:{获得兽人信物|151:0:1}{<$str(d0)>/8件|146:0:1}
61
62
-
63 1 machenhe
-
64 2 yangdefeng
65 6 tejie
h4. *{color:deepPink}npc脚本文件支持以下内容*
66 2 yangdefeng
67
bq. [@main]
68
#act
69 1 machenhe
%{color:lightGrey};npc头顶出现对话文字%
70
%{color:green}sendMsg% 4 %n:你好,%s欢迎使用特戒引擎
71 6 tejie
72
-
73
-
74
75
h4. *%{color:deepskyblue}示例--世界频道与行会频道%*