DelItemNum

<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> </head> <body> <p><font color="#0000FF"> int </font><font color="#00FF00"> npc</font>.<font color="#FF8C00">DelItemNum</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">&quot;物品编号,扣除数量&quot;</td> </tr> </table> <p><strong>返回值:</strong></p> <p> </p> <p><strong>使用例子:</strong></p> <p><font color="darkgreen"> --扣除编号为123的道具,需要扣除10个,当你身上只有9个123的道具,那么反回并扣除就9个,如果你身上有11个123的道具,那么就只扣除10个,并反回10<br> </font>num = <font color="#00FF00">npc</font>.<font color="#FF8C00">DelItemNum</font>(charaindex, &quot;123,10&quot;)<font color="#0000FF"><br>  </font></p> <p><strong>参数说明:</strong></p> </body> </html>