**用于把宠物存到人物身上** 参数: |名称|类型|说明| |-|-|-| |charaindex|INT|人物索引| |haveid|INT|位置(0-4)| |petindex|INT|宠物索引| 返回值: 空 ```language char.setCharPet(charaindex,0,petindex) ```