getChar
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>char * item</title>
</head>
<body>
<p><font color="#0000FF">char</font><font color="darkorange"> </font>*<font color="darkorange">
</font><font color="#00FF00">
item</font>.<font color="#FF8C00">getChar</font>(<font color="blue">int</font> 索引, <font color="blue">char</font>*(<font color="blue">int</font>)
字段)</p>
<p><strong>函数功能:</strong></p>
<p><font color="darkgreen">获取一个人物或宠物或NPC的字符串数据</font></p>
<p><strong>参数说明:</strong></p>
<table border="1" width="37%" id="table1">
<tr>
<td width="148">索引</td>
<td width="155">[整型]</td>
<td>道具的索引号</td>
</tr>
<tr>
<td width="148">字段</td>
<td width="155">[整型]或[字符型]</td>
<td>获取数据的位置编号</td>
</tr>
</table>
<p><strong>返回值:</strong></p>
<p>返回
字符串数据</a></p>
<p><strong>使用例子:</strong></p>
<p><font color="#008000">--返回一个名字字符串</font><br>
name = <font color="#00FF00">item</font>.<font color="#FF8C00">getChar</font>(itemindex, "名字")</p>
<p><strong>参数说明:</strong></p>
<p>字段可以使用数字编号0~?,也可使用中文字段,建议使用中文,提供的中文字段如下:</p>
<p>名称<br>
显示名<br>
说明<br>
字段<br>
成份名0<br>
成份名1<br>
成份名2<br>
成份名3<br>
成份名4<br>
精召<br>
天使<br>
英雄</p>
</body>
</html>