Lua接口/服务端/GetCharPrize
来自天龙知识库
跳到导航跳到搜索
得到 selfId 的善恶值
Lua 调用
GetCharPrize(sceneId, selfId, askType, goodsType, goodsNumber, costPoint)
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 |
| 2 | selfIdnumber
|
当前场景内的对象 ID。玩家接口需传入有效玩家对象;不是角色 GUID。 |
| 3 | askTypenumber
|
请求类型。 |
| 4 | goodsTypenumber
|
商品类型。 |
| 5 | goodsNumbernumber
|
商品数量。 |
| 6 | costPointnumber
|
需要扣除的点数。 |
返回值
无返回值。赋值接收时得到 nil;这与返回数字 0 不同。
注意事项
- 调用对象必须是当前场景中的有效玩家。
核对依据:
LuaFnTbl_Attr.h 第 4260 行,服务端注册表第 333 行。调用格式与返回数量依据当前实现整理;游戏内效果、边界行为及未注明的业务枚举仍需实测。