采集怪物尸体 » 历史记录 » 版本 1
chenjun, 2022-07-01 14:06
1 | 1 | chenjun | h4. _{color:green}采集怪物尸体_ |
---|---|---|---|
2 | |||
3 | h4. *模块说明* |
||
4 | |||
5 | 怪物死亡后,可以采集怪物尸体,采集有几率失败,采集成功或时间结束怪物尸体消失 |
||
6 | |||
7 | |||
8 | - |
||
9 | - |
||
10 | |||
11 | h4. *相关配置* |
||
12 | |||
13 | 1、tejieconfig配置 |
||
14 | 文件路径 ..\Mir200\Tejieconfig\Tejieconfig.txt |
||
15 | [tjconfig] |
||
16 | ;单次采集尸体读条时间,尸体存在时间上限(单位毫秒,不配置该项时无法采集尸体) |
||
17 | butchTime=2000,36000 |
||
18 | |||
19 | |||
20 | 2、怪物配置 |
||
21 | 文件路径 ..\Mud2\DB\Monster.CSV |
||
22 | 表字段Butch,填写大于0的数字X,则采集怪物尸体会触发QFunction-0.txt中的触发器[[qf触发器_butchX|[@butchX]]] |
||
23 | |||
24 | |||
25 | 3、怪物采集掉落配置 |
||
26 | 文件路径 ..\Mir200\Envir\MonItems 目录下与怪物名相同的.txt文件(包含根目录和子目录) |
||
27 | 在[butch]下配置采集尸体的掉落数据 |
||
28 | |||
29 | |||
30 | 4、开启/关闭本服怪物尸体采集功能 |
||
31 | 相关命令 |
||
32 | [[setButchState]] |
||
33 | 如何使用可查看下方的脚本示例 |
||
34 | |||
35 | |||
36 | 5、开启/关闭人物挂机时自动采集尸体 |
||
37 | 相关命令 |
||
38 | [[autoCorpseCollection]] |
||
39 | |||
40 | |||
41 | 6、配置不同怪物尸体可采集的几率 |
||
42 | 相关配置文件 |
||
43 | [[文件_butchProfile|butchProfile.txt]] |
||
44 | |||
45 | |||
46 | 7、控制指定怪物的尸体立刻消失 |
||
47 | 相关命令 |
||
48 | [[clearMonCoprse]] |
||
49 | |||
50 | |||
51 | - |
||
52 | - |
||
53 | |||
54 | h4. *{color:deepskyblue}特戒引擎脚本示例:* |
||
55 | |||
56 | - |
||
57 | - |
||
58 | |||
59 | |||
60 | |||
61 | bq. %{color:lightGrey};..\Mir200\Tejieconfig\Tejieconfig.txt% |
||
62 | [tjconfig] |
||
63 | %{color:lightGrey};单次采集尸体读条时间,尸体存在时间上限(单位毫秒,不配置该项时无法采集尸体)% |
||
64 | butchTime=2000,36000 |
||
65 | |||
66 | |||
67 | - |
||
68 | - |
||
69 | |||
70 | |||
71 | bq. %{color:lightGrey};..\Mud2\DB\Monster.CSV% |
||
72 | %{color:lightGrey};将怪物 猪 对应的表字段Butch的值设为1% |
||
73 | |||
74 | |||
75 | - |
||
76 | - |
||
77 | |||
78 | |||
79 | bq. %{color:lightGrey};配置采集尸体掉落% |
||
80 | %{color:lightGrey};..\Mir200\Envir\MonItems\猪.txt% |
||
81 | [butch] |
||
82 | #CHILD 1/1 RANDOM |
||
83 | ( |
||
84 | 1/1 回城石 |
||
85 | ) |
||
86 | |||
87 | |||
88 | - |
||
89 | - |
||
90 | |||
91 | |||
92 | bq. %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt% |
||
93 | %{color:lightGrey};服务器启动触发模块% |
||
94 | [<notextile>@</notextile>Startup] |
||
95 | #if |
||
96 | %{color:lightGrey};开服天数大于6天% |
||
97 | large G99 6 |
||
98 | #act |
||
99 | %{color:lightGrey};开启本服怪物尸体采集功能% |
||
100 | *{color:green}[[setButchState]]* 1 |
||
101 | #elseAct |
||
102 | %{color:lightGrey};关闭本服怪物尸体采集功能% |
||
103 | *{color:green}[[setButchState]]* 0 |
||
104 | |||
105 | |||
106 | - |
||
107 | - |
||
108 | |||
109 | |||
110 | bq. %{color:lightGrey};..\Mir200\Envir\Market_Def\QFunction-0.txt% |
||
111 | %{color:lightGrey};采集尸体触发% |
||
112 | [<notextile>@</notextile>butch1] |
||
113 | #if |
||
114 | #act |
||
115 | sendTipsMsg 你搜索了一次尸体/scolor=222 |
||
116 | #if |
||
117 | equal s0 |
||
118 | #act |
||
119 | sendMsg 6 啥也没挖到! |
||
120 | #elseAct |
||
121 | sendMsg 6 获得道具<$str(s0)><$str(n0)>个 |
||
122 | |
||
123 | |
||
124 | |
||
125 | [<notextile>@</notextile>StartAutoPlayGame] |
||
126 | #act |
||
127 | %{color:lightGrey};开启人物挂机时自动采集尸体% |
||
128 | *{color:green}[[autoCorpseCollection]]* 1 |
||
129 | |||
130 | |||
131 | - |
||
132 | - |
||
133 | |||
134 | |||
135 | bq. %{color:lightGrey};配置不同怪物尸体可采集的几率% |
||
136 | %{color:lightGrey};..\Mir200\Envir\butchProfile.txt% |
||
137 | 1 50 |