物品回收、使用、装备、购买、售卖控制及奖励

物品回收

通过[制作多功能Item、Creature及Gameobject]开启

_recovery_category表配置回收的类别

categoryId 类别ID
categoryName 各类名称

 

_recovery表配置物品属于哪个回收类别及回收能获得的积分数量

comment 备注
entry 物品的ID,对应item_template表中entry
categoryId 回收类别,对应_recovery_category表中categoryId
rewToken 回收该物品获得的积分

 

 

物品使用控制及奖励(_itemmod_on_use)

该功能可以通过直接调用GM命令来实现各种功能,例如积分卷轴,升级卷轴等等

下面的SQL语句,是一个消耗品的模板,修改entry后可以直接使用,不要再问我怎么制作消耗品了

insert into `item_template` (`entry`, `class`, `subclass`, `SoundOverrideSubclass`, `name`, `displayid`, `Quality`, `Flags`, `FlagsExtra`, `BuyCount`, `BuyPrice`, `SellPrice`, `InventoryType`, `AllowableClass`, `AllowableRace`, `ItemLevel`, `RequiredLevel`, `RequiredSkill`, `RequiredSkillRank`, `requiredspell`, `requiredhonorrank`, `RequiredCityRank`, `RequiredReputationFaction`, `RequiredReputationRank`, `maxcount`, `stackable`, `ContainerSlots`, `StatsCount`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `ScalingStatDistribution`, `ScalingStatValue`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `delay`, `ammo_type`, `RangedModRange`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmRate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmRate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmRate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmRate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmRate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `description`, `PageText`, `LanguageID`, `PageMaterial`, `startquest`, `lockid`, `Material`, `sheath`, `RandomProperty`, `RandomSuffix`, `block`, `itemset`, `MaxDurability`, `area`, `Map`, `BagFamily`, `TotemCategory`, `socketColor_1`, `socketContent_1`, `socketColor_2`, `socketContent_2`, `socketColor_3`, `socketContent_3`, `socketBonus`, `GemProperties`, `RequiredDisenchantSkill`, `ArmorDamageModifier`, `duration`, `ItemLimitCategory`, `HolidayId`, `ScriptName`, `DisenchantID`, `FoodType`, `minMoneyLoot`, `maxMoneyLoot`, `flagsCustom`, `VerifiedBuild`) values('59205','15','0','-1','消耗品','13005','6','0','0','1','0','0','0','-1','-1','1','0','0','0','0','0','0','0','0','0','1','0','10','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','61456','0','-1','-1','1000','0','-1','0','0','0','0','-1','0','-1','0','0','0','0','-1','0','-1','0','0','0','0','-1','0','-1','0','0','0','0','-1','0','-1','1','','0','0','0','0','0','4','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','0','0','0','0','0','1');

下面是表格的配置方法

comment 备注
entry 物品的ID,对应item_template表中entry
reqId 使用该物品需要满足的消耗ID,对应_req表中reqId
rewId 使用该物品获得的奖励ID,对应_rew表中rewId
rewChance 获得奖励rewId的几率,例如50,则使用物品50%几率获得奖励
command 使用该物品调用的GM命令,支持同时调用多组命令,通过#分隔开,例如._add token 100#.character level 80,则使用该物品后,获得100积分并升级到80级
spell1-3 使用该物品释放的技能

 

物品装备控制(_itemmod_on_equip)

该功能控制物品的装备条件

comment 备注
entry 物品的ID,对应item_template表中entry
reqId 装备该物品需要满足的消耗ID,对应_req表中reqId

 

物品购买控制

_itemmod_on_buy,该表控制物品的购买条件,所有

 

comment 备注
entry 物品的ID,对应item_template表中entry,所有该entry的物品从商店购买,均需要满足reqId
reqId 装备该物品需要满足的消耗ID,对应_req表中reqId

npc_vendor

两种特殊情况下,可以使用npc_vendor配置购买条件

1不同商人售卖同一个物品,购买条件不同 2 突破官方购买物品最大数量255

entry 商人ID
slot 物品在售卖列表的位置
item 物品ID
maxcount 可购买的最大物品数量,为0时不限量购买
incrtime 物品刷新时间,与maxcount配合
ExtendedCost 额外花费,对应itemextendedcost.dbc
clientSlot 核心自定义字段,物品在售卖列表的位置,默认为0,启用时需要计算物品的位置,从1开始,且slot需要和clientSlot相等才会起作用
buyMaxCount 核心自定义字段,一次可购买的最大物品数量,可以突破官方255限制,默认为0,
reqId 核心自定义字段,购买该组物品需要满足的消耗模板,对应_req表中reqId,默认为0

 

物品售卖奖励(_itemmod_on_sale)

该功能控制售卖物品时所能获得的奖励,该表配置的物品不可回购

 

comment 备注
entry 物品的ID,对应item_template表中entry
rewId 售卖该物品获得的奖励ID,对应_rew表中rewId
rewChance 获得奖励rewId的几率,例如50,则售卖物品50%几率获得奖励
command 售卖该物品调用的GM命令,支持同时调用多组命令,通过#分隔开,例如._add token 100#.character level 80,则使用该物品后,获得100积分并升级到80级

猜你喜欢

转载自www.cnblogs.com/slwow/p/9171552.html
今日推荐