addLUAListFunction
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>bool item</title>
</head>
<body>
<p><font color="#0000ff">bool</font><font color="darkorange"> </font>
<font color="#00ff00"> item</font>.<font color="#ff8c00">addLUAListFunction</font>(<font color="blue">char</font>*
事件名, <font color="blue">char</font>* 函数名, <font color="blue">char</font>* 脚本路径)</p>
<p><strong>函数功能:</strong></p>
<p><font color="darkgreen">为道具设置一个新功能事件,通常初始化时使用</font></p>
<p><strong>参数说明:</strong></p>
<table border="1" width="41%" id="table1">
<tr>
<td width="152">事件</td>
<td>[字符型]</td>
<td width="310">指触发的事件的字段名</td>
</tr>
<tr>
<td width="152">函数名</td>
<td>[字符串]</td>
<td width="310">指事件触发时调用的函数名字</td>
</tr>
<tr>
<td width="152">脚本路径</td>
<td>[字符型]</td>
<td width="310">指触发事件调用的函数脚本文件的路径</td>
</tr>
</table>
<p><strong>返回值:</strong></p>
<p>成功则返回 布尔值</A> ,判断是否成功执行</p>
<p><strong>使用例子:</strong></p>
<p><font color="#008000">--初始化道具函数功能,该功能触发函数test,函数位置文件路径为data/ablua/item/test.lua</font><br>
<font color="#00ff00"> item</font>.<font color="#ff8c00">addLUAListFunction</font>(
<font color="slategray">"ITEM_Test"</font>, <font color="slategray">"test"</font>,
<font color="slategray">"data/ablua/item/test.lua"</font>)<br>
<br>
测试LUA道具,测试LUA道具,测试LUA道具,,,,,,,,<font color="#ff0000">ITEM_Test</font>,,,,,,21285,24337,0,16,2,0,0,-1,,,,,,,,,,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,,,,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,1,1,0,0,,0,,0,,0,,0,,0<br>
</p>
<p><strong>参数说明:</strong></p>
</body>
</html>