AddPet
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>npc</title>
</head>
<body>
<p><font color="#00FF00"> npc</font>.<font color="#FF8C00">AddPet</font>(<font color="#0000FF">int
</font>对方索引, <font color="#0000FF">char </font>* 字符串)</p>
<p><strong>函数功能:</strong></p>
<p><font color="#006400">添加宠物</font></p>
<p><strong>参数说明:</strong></p>
<table border="1" width="37%" id="table1">
<tr>
<td width="152">对方索引</td>
<td>[整型]</td>
<td width="309">触发的玩家索引</td>
</tr>
<tr>
<td width="152">字符串</td>
<td>[字符串]</td>
<td width="309">类似NPC脚本字段的参数</td>
</tr>
</table>
<p><strong>返回值:</strong></p>
<p> </p>
<p><strong>使用例子:</strong></p>
<p><font color="darkgreen">--</font><font color="#006400">添加宠物编号1的</font><font color="darkgreen">,类似NPC脚本中的AddPet:1<br>
</font><font color="#00FF00"> npc</font>.<font color="#FF8C00">AddPet</font>(charaindex,
"1")<font color="#0000FF"><br>
</font></p>
<p><strong>参数说明:</strong></p>
</body>
</html>