仙魔无双SDK
面向策划逻辑制作的游戏开发包
|
掉落操作的API集合 更多...
函数 | |
int | AddLootToActor (FxCreature *pActor, unsigned long nLootID, int nBindMode=-1) |
给角色pActor添加掉落nLootID 更多... | |
int | AddLootToTeam (FxCreature *pActor, unsigned long nLootID, bool bLootable=true) |
给角色pActor所在的队伍添加掉落nLootID 更多... | |
int | AddLootToScene (FxCreature *pActor, unsigned long nLootID) |
给角色pActor所在的场景所有的玩家添加掉落nLootID 更多... | |
int | AddLootToRegion (FxCreature *pActor, unsigned long nLootID) |
给角色pActor所在的区域(Region)所有的玩家添加掉落nLootID 更多... | |
int | DropLoot (FxCreature *pActor, unsigned long nMonsterID, int nLootID, unsigned long nMinRadius=0, unsigned long nMaxRadius=100) |
为pActor掉落nLootID的东西。要掉在地上。和AddLootTo*的区别就在于此。不打算在AddLootTo*里面耦合实现。 更多... | |
掉落操作的API集合
int AddLootToActor | ( | FxCreature * | pActor, |
unsigned long | nLootID, | ||
int | nBindMode = -1 |
||
) |
给角色pActor添加掉落nLootID
pActor | [角色] 角色对象。 |
nLootID | [整数] 要添加的LootID,关联Loot表 |
nBindMode | [整数] 绑定模式。-1: 按照配置表的设置;0: 非绑定;1: 绑定。默认-1 |
int AddLootToRegion | ( | FxCreature * | pActor, |
unsigned long | nLootID | ||
) |
给角色pActor所在的区域(Region)所有的玩家添加掉落nLootID
pActor | [角色] 角色对象。 |
nLootID | [整数] 要添加的LootID,关联Loot表 |
int AddLootToScene | ( | FxCreature * | pActor, |
unsigned long | nLootID | ||
) |
给角色pActor所在的场景所有的玩家添加掉落nLootID
pActor | [角色] 角色对象。 |
nLootID | [整数] 要添加的LootID,关联Loot表 |
int AddLootToTeam | ( | FxCreature * | pActor, |
unsigned long | nLootID, | ||
bool | bLootable = true |
||
) |
给角色pActor所在的队伍添加掉落nLootID
pActor | [角色] 角色对象。 |
nLootID | [整数] 要添加的LootID,关联Loot表 |
bLootable | [布尔] 是否走掉落流程,暂时无用 |
int DropLoot | ( | FxCreature * | pActor, |
unsigned long | nMonsterID, | ||
int | nLootID, | ||
unsigned long | nMinRadius = 0 , |
||
unsigned long | nMaxRadius = 100 |
||
) |
为pActor掉落nLootID的东西。要掉在地上。和AddLootTo*的区别就在于此。不打算在AddLootTo*里面耦合实现。
pActor | [角色] 角色对象。 |
nMonsterID | [整数] 产生掉落的怪物(含箱子等)ID。 |
nLootID | [整数] 掉落ID。 |
nMinRadius | [整数] 内半径 |
nMaxRadius | [整数] 外半径 |