实现目标
只有在角色没有获得任务触发物品时,任务触发物品才掉落,如果角色已获得任务触发物品,该任务触发物品不再掉落。
实现方法
conditions
- SourceTypeOrReferenceId:1(CONDITION_SOURCE_TYPE_CREATURE_LOOT_TEMPLATE)
- SourceGroup:creature_loot_template.Entry(掉落任务触发物品的 creature)
- SourceEntry:creature_loot_template.item(任务触发物品的 Entry)
- ConditionTypeOrReference:2(CONDITION_ITEM)
- ConditionValue1:creature_loot_template.item(任务触发物品的 Entry)
- ConditionValue2:1(角色携带的任务触发物品的数量 )
- ConditionValue3:0(任务触发物品在背包不在银行)
- NegativeCondition:1(反转成立的条件,即只有当角色不携带任务触发物品时,该任务触发物品才能正常掉落)
参考阅读: