采集怪物尸体 » 历史记录 » 版本 2
tejie, 2024-05-18 16:16
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 | 2 | tejie | 4、配置不同怪物尸体可采集的几率 |
31 | 1 | chenjun | 相关配置文件 |
32 | [[文件_butchProfile|butchProfile.txt]] |
||
33 | |||
34 | |||
35 | 相关命令 |
||
36 | 2 | tejie | |[[setButchState]] |开启/关闭本服怪物尸体采集功能 | |
37 | |[[autoCorpseCollection]]|开启/关闭人物挂机时自动采集尸体| |
||
38 | |[[clearMonCoprse]] |控制指定怪物的尸体立刻消失 | |
||
39 | |[[butchSysPrgs]] |系统尸体采集进度按钮显隐 | |
||
40 | 1 | chenjun | |
41 | |||
42 | - |
||
43 | - |
||
44 | |||
45 | h4. *{color:deepskyblue}特戒引擎脚本示例:* |
||
46 | |||
47 | - |
||
48 | - |
||
49 | |||
50 | |||
51 | |||
52 | bq. %{color:lightGrey};..\Mir200\Tejieconfig\Tejieconfig.txt% |
||
53 | [tjconfig] |
||
54 | %{color:lightGrey};单次采集尸体读条时间,尸体存在时间上限(单位毫秒,不配置该项时无法采集尸体)% |
||
55 | butchTime=2000,36000 |
||
56 | |||
57 | |||
58 | - |
||
59 | - |
||
60 | |||
61 | |||
62 | bq. %{color:lightGrey};..\Mud2\DB\Monster.CSV% |
||
63 | %{color:lightGrey};将怪物 猪 对应的表字段Butch的值设为1% |
||
64 | |||
65 | |||
66 | - |
||
67 | - |
||
68 | |||
69 | |||
70 | bq. %{color:lightGrey};配置采集尸体掉落% |
||
71 | %{color:lightGrey};..\Mir200\Envir\MonItems\猪.txt% |
||
72 | [butch] |
||
73 | #CHILD 1/1 RANDOM |
||
74 | ( |
||
75 | 1/1 回城石 |
||
76 | ) |
||
77 | |||
78 | |||
79 | - |
||
80 | - |
||
81 | |||
82 | |||
83 | bq. %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt% |
||
84 | %{color:lightGrey};服务器启动触发模块% |
||
85 | [<notextile>@</notextile>Startup] |
||
86 | #if |
||
87 | %{color:lightGrey};开服天数大于6天% |
||
88 | large G99 6 |
||
89 | #act |
||
90 | %{color:lightGrey};开启本服怪物尸体采集功能% |
||
91 | *{color:green}[[setButchState]]* 1 |
||
92 | #elseAct |
||
93 | %{color:lightGrey};关闭本服怪物尸体采集功能% |
||
94 | *{color:green}[[setButchState]]* 0 |
||
95 | |||
96 | |||
97 | - |
||
98 | - |
||
99 | |||
100 | |||
101 | bq. %{color:lightGrey};..\Mir200\Envir\Market_Def\QFunction-0.txt% |
||
102 | %{color:lightGrey};采集尸体触发% |
||
103 | [<notextile>@</notextile>butch1] |
||
104 | #if |
||
105 | #act |
||
106 | sendTipsMsg 你搜索了一次尸体/scolor=222 |
||
107 | #if |
||
108 | equal s0 |
||
109 | #act |
||
110 | sendMsg 6 啥也没挖到! |
||
111 | #elseAct |
||
112 | sendMsg 6 获得道具<$str(s0)><$str(n0)>个 |
||
113 | |
||
114 | |
||
115 | |
||
116 | [<notextile>@</notextile>StartAutoPlayGame] |
||
117 | #act |
||
118 | %{color:lightGrey};开启人物挂机时自动采集尸体% |
||
119 | *{color:green}[[autoCorpseCollection]]* 1 |
||
120 | |||
121 | |||
122 | - |
||
123 | - |
||
124 | |||
125 | |||
126 | bq. %{color:lightGrey};配置不同怪物尸体可采集的几率% |
||
127 | %{color:lightGrey};..\Mir200\Envir\butchProfile.txt% |
||
128 | 1 50 |