AddGold

<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">AddGold</font>(<font color="#0000FF">int </font>对方索引, <font color="#0000FF">char </font>* 字符串)</p> <p><strong>函数功能:</strong></p> <p><font color="darkgreen">增加石币</font></p> <p><strong>参数说明:</strong></p> <table border="1" width="642" id="table1"> <tr> <td width="164">对方索引</td> <td width="142">[整型]</td> <td width="314">触发的玩家索引</td> </tr> <tr> <td width="164">字符串</td> <td width="142">[字符串]</td> <td width="314">类似NPC脚本字段的参数</td> </tr> </table> <p><strong>返回值:</strong></p> <p> </p> <p><strong>使用例子:</strong></p> <p><font color="darkgreen">--增加石币1000,类似NPC脚本中的AddGold:1000<br> </font><font color="#00FF00"> npc</font>.<font color="#FF8C00">AddGold</font>(charaindex, &quot;1000&quot;)<font color="#0000FF"><br>  </font></p> <p><strong>参数说明:</strong></p> </body> </html>