项目

一般

简介

GetItemFrom » 历史记录 » 版本 5

tejie, 2025-09-26 15:31

1 1 tejie
h4. _*%{color:green}getItemFrom%*_
2
3
获取物品来源
4
5 4 tejie
标签:命令定义^getItemFrom
6 1 tejie
7
*相关命令*
8
[[setItemFrom]]
9
10 5 tejie
*相关配置*
11
文件路径
12
..\Mir200\Tejieconfig\Tejieconfig.txt
13
14
配置项
15
[tjconfig]
16
dropInfo=1
17
18 1 tejie
*格式*
19
|命令名		|参数1		|参数2		|参数3		|
20
|getItemFrom	|装备位置	|配置类型	|返回变量	|
21
22
*说明*
23
* 参数1: [[装备位置]] 
24
-1为itembox、[@pickupitemex]、[@giveitemex]内调用
25
26 3 tejie
* 参数2,3: 配置类型,对应返回值
27 1 tejie
** 类型=0,0:未知;1:GM制造;2:NPC制造;3:商店购买;4:杀怪掉落;5:系统给予;6:挖矿获取;7:宝箱获取;8:宝箱获取;9:挖肉获取;10:捕捉获取
28
** 类型=1,地图名称
29
** 类型=2,杀死怪物名称
30
** 类型=3,角色名称
31
** 类型=4,日期与时间
32
33
-
34
-
35
36
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
37
38
bq. [@main]
39
#if
40
#act
41
*{color:green}getItemFrom* 1 0 s$物品来源 %{color:lightGrey};返回 0 - 10 无值返回空%
42
*{color:green}getItemFrom* 1 1 s$来源地图 %{color:lightGrey};返回 地图名称 无值返回空%
43
*{color:green}getItemFrom* 1 2 s$来源怪物 %{color:lightGrey};返回 怪物名称 无值返回空%
44
*{color:green}getItemFrom* 1 3 s$来源角色 %{color:lightGrey};返回 角色名称 无值返回空%
45
*{color:green}getItemFrom* 1 4 s$来源时间 %{color:lightGrey};返回 获取的时间 (时间格式:2016-08-31 22:54:10) 无值返回空%