TrinityCore3.3.5a 12340版本 自定义商人步骤,其他类型道具商人可参考。
涉及3个表:
1)creature_template npc列表 npcflag=128为道具商人
2) item_template 道具列表
3)npc_vendor 商人售卖道具列表
delete from 335_trinity_world.creature_template where entry=200300;
INSERT INTO 335_trinity_world.creature_template (entry, difficulty_entry_1, difficulty_entry_2, difficulty_entry_3, KillCredit1, KillCredit2, modelid1, modelid2, modelid3, modelid4, name, subname,
IconName, gossip_menu_id, minlevel, maxlevel, `exp`, faction, npcflag, speed_walk, speed_run, `scale`, `rank`, dmgschool, BaseAttackTime, RangeAttackTime, BaseVariance, RangeVariance, unit_class,
unit_flags, unit_flags2, dynamicflags, family, `type`, type_flags, lootid, pickpocketloot, skinloot, PetSpellDataId, VehicleId, mingold, maxgold, AIName, MovementType, HoverHeight, HealthModifier,
ManaModifier, ArmorModifier, DamageModifier, Expe