**中添加NPC及功能脚本
**中添加NPC
在画红框位置增加NPC 坐标 330 350
1、D:\MirServer\Mir200\Envir\MerChant.txt文件中 添加NPC名称 地图 坐标 代码如下
;调用的文件 地图 坐标x 坐标y 范围 人物代码 刷新时间
测试使者 3 330 350 测试使者\『罗开』 0 208 0 0 0 0 0
2、给NPC添加功能脚本
D:\MirServer\Mir200\Envir\Market_Def 目录下建立名为“测试使者-3.txt”的文件,测试使者为NPC名 -3为地图号,3为盟重,如果加在比奇为-0。
3、编写功能脚本
脚本写在“测试使者-3.txt”的文件中。
[@main]
<JOB>您好!!!欢迎来到<KaTeX parse error: Undefined control sequence: \
at position 20: …ERNAME>,很高兴为您服务\̲
̲IP:<SERVERIP> 服务器时间:<KaTeX parse error: Undefined control sequence: \
at position 10: DATETIME>\̲
̲游戏币名称:<GAMEGOLDNAME> 游戏点名称:<KaTeX parse error: Undefined control sequence: \
at position 15: GAMEPOINTNAME>\̲
̲在线人数:<USERCOUNT> 服务器运行:<SERVERRUNTIME>
您当前持有:<LEVEL>级
#if
gender man
#say
男
#elsesay
女
#if
CHECKJOB warrior
#SAY
战士
#if
CHECKJOB wizard
#SAY
法师
#if
CHECKJOB taoist
#SAY
道士\
#if
#say
<退出/@exit>\
4、在M2中重新加载NPC
5、加载后在游戏中就可看到新加的NPC