仙魔无双SDK
面向策划逻辑制作的游戏开发包
金钱操作

金钱操作的API集合 更多...

函数

int ModifyMoney1ToActor (FxCreature *pActor, int nValue, UINT8 byEventType, int iExData)
 给角色pActor增加一级(绑定)货币,指定nValue的数值 更多...
 
int ModifyMoney2ToActor (FxCreature *pActor, int nValue, UINT8 byEventType, int iExData)
 给角色pActor增加二级(非绑定)货币,指定nValue的数值 更多...
 
int ModifyMoney1ToActor (FxCreature *pActor, int nValue, int nValue2, UINT8 byEventType, int iExData)
 给角色pActor增加一级(绑定)货币,在nValue和nValue2之间随机 更多...
 
int ModifyMoney2ToActor (FxCreature *pActor, int nValue, int nValue2, UINT8 byEventType, int iExData)
 给角色pActor增加二级(非绑定)货币,在nValue和nValue2之间随机 更多...
 
int ModifyYinPiaoToActor (FxCreature *pActor, int nValue, UINT8 byEventType, int iExData)
 给角色pActor增加银票,指定nValue的数值 更多...
 
int ModifyYinPiaoToActor (FxCreature *pActor, int nValue, int nValue2, UINT8 byEventType, int iExData)
 给角色pActor增加银票,在nValue和nValue2之间随机 更多...
 
int ModifyDianQuanToActor (FxCreature *pActor, int nValue, UINT8 byEventType, int iExData)
 给角色pActor增加点券,指定nValue的数值 更多...
 
int ModifyDianQuanToActor (FxCreature *pActor, int nValue, int nValue2, UINT8 byEventType, int iExData)
 给角色pActor增加点券,在nValue和nValue2之间随机 更多...
 

详细描述

金钱操作的API集合

函数说明

◆ ModifyDianQuanToActor() [1/2]

int ModifyDianQuanToActor ( FxCreature *  pActor,
int  nValue,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加点券,指定nValue的数值

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视

◆ ModifyDianQuanToActor() [2/2]

int ModifyDianQuanToActor ( FxCreature *  pActor,
int  nValue,
int  nValue2,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加点券,在nValue和nValue2之间随机

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量最小值
nValue2[整数] 要添加的金钱数量最大值
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视
注解
实际添加的数值在nValue和nValue2之间浮动

◆ ModifyMoney1ToActor() [1/2]

int ModifyMoney1ToActor ( FxCreature *  pActor,
int  nValue,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加一级(绑定)货币,指定nValue的数值

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视

◆ ModifyMoney1ToActor() [2/2]

int ModifyMoney1ToActor ( FxCreature *  pActor,
int  nValue,
int  nValue2,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加一级(绑定)货币,在nValue和nValue2之间随机

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量最小值
nValue2[整数] 要添加的金钱数量最大值
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视
注解
实际添加的数值在nValue和nValue2之间浮动

◆ ModifyMoney2ToActor() [1/2]

int ModifyMoney2ToActor ( FxCreature *  pActor,
int  nValue,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加二级(非绑定)货币,指定nValue的数值

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视

◆ ModifyMoney2ToActor() [2/2]

int ModifyMoney2ToActor ( FxCreature *  pActor,
int  nValue,
int  nValue2,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加二级(非绑定)货币,在nValue和nValue2之间随机

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量最小值
nValue2[整数] 要添加的金钱数量最大值
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视
注解
实际添加的数值在nValue和nValue2之间浮动

◆ ModifyYinPiaoToActor() [1/2]

int ModifyYinPiaoToActor ( FxCreature *  pActor,
int  nValue,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加银票,指定nValue的数值

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视

◆ ModifyYinPiaoToActor() [2/2]

int ModifyYinPiaoToActor ( FxCreature *  pActor,
int  nValue,
int  nValue2,
UINT8  byEventType,
int  iExData 
)

给角色pActor增加银票,在nValue和nValue2之间随机

参数
pActor[角色] 角色对象。
nValue[整数] 要添加的金钱数量最小值
nValue2[整数] 要添加的金钱数量最大值
byEventType[整数] 增加途径
iExData[整数] 额外数据
返回
[整数] 忽视
注解
实际添加的数值在nValue和nValue2之间浮动