| 魔兽私服网 发布时间:2008-4-30 16:30:34 |
第一课 我们先来了解一下 数据库中的格表都起什么作用 这个也是新手老会问到问题 Navicat.for.SQL" onclick="tagshow(event)" class="t_tag">MySQL.v8.0 就是通常大大门说的mysql
数据库各表的中文对照 account 帐号 areatrigger_involvedrelation 传送(区域触发)包含的关系,可能 areatrigger_tavern 进传送门id指向template----OK触发 areatrigger_template 传送区域的具体坐标等(副本都在里边与travern所对应) auctionhouse 拍卖行(参数--观看时所对应) auctionhouse_bid 拍卖行的投标 auctionhouse_item 拍卖的清单 bugreport 应该是给GM发信所对应的数据 character 创建的人物资料对应playercreateinfo character_action 创建的人物所会的技能对应playercreateinfo_action(仅出生) character_aura 不明 character_homebind 创建人物的出生地 character_inventory 创建人物的包里的东西 character_kill 创建人物的荣誉信息(杀或被杀,有无荣誉等) character_pet 创建人物的宠物信息 character_queststatus 创建人物的任务信息 character_reputation 可能是声望(不明) character_social 好友列表 character_spell 人物的魔法书(仅会魔法的人才会出现ID) character_ticket 不明 character_tutorial 不明 command GM命令 creature NPC 怪物等信息 creature_grid 可能是跟NPC对话的有效距离(不明) creature_involvedrelation NPC或怪物(特殊类)可给与任务(不明) creature_movement 怪物或NPC移动的关系,活动范围 creature_questrelation 不明 creature_template 怪物或NPC的具体信息如HP,SP等 game_corpse 尸体所在地信息 game_graveyard 人物死亡后所回到的墓地(复活需要对应game_corpse表) game_spell 魔法(参数有可以创造什么,比如FS做水) game_talent 游戏的天赋系统 game_weather 天气系统 gameobject 物品信息(地上的箱子,草,矿)仅刷新点,时间,位置 gameobject_grid 可以拿取的有效距离(不明) gameobject_template 具体物品信息所对应的 草,矿等 guild 工会信息 guild_member 工会成员 guild_rank 工会的阶级系统 ip_banned 被封的IP列表 item_instance 不明() item_page 游戏中一些信件等的具体内容 item_template 道具及任务物品的详细信息 loot_template 掉率 mail 邮件系统 mail_item 邮物品的信息 npc_gossip NPC没事说的话,比如暴风城的小孩,BOSS遇到你说的话 npc_gossip_textid 话的内容对应NPC_gossip npc_option 不明 npc_text 跟NPC说话的内容,不同于任务内容 npc_trainer 训练师所对应的内容 npc_vendor 卖东西的NPC object_involvedrelation object物品与任务之间的联系(和object_questrelation有关) object_questrelation object物品触发任务之间的联系 playercreateinfo 人物出生的信息,character是根据此系列来的,就不解释了 quest_template 任务的详细信息(可接范围等)对应QUESTID可能跟object_involvedrelation有关系 realmlist 服务器的登入信息(服务器IP等) taxi_node WOW的飞机系统(具体不明) taxi_path 飞到哪的价格什么的吧(不明) taxi_pathnode 飞机的完整表(对应taxi_NODE taxi_path)
有了以上这个表 新手们就可以进去查询了 也明白如何用了
第2课 Ascent表结构说明
Ascent表结构说明
worldmap_info: 副本/战场定义 - mapid - name says all 地图代号 - screenid - screen for instance loading usally the same as mapid but not always. 画面代号,通常跟地图代号相同 - type - 0 - other/default , 2 - instance, 3 battleground 类0:约定类型,2:副本,3:战场 - maxplayers - <value> 最大玩家数 - repop x,y,z,mapid - coords where playered is beeing port when he tries to join an invaild instance. 该地图关联的墓地
- area_name - <varchar> 地区名称 - flags - 1 - continent, 3 - bg/instance from wow, 9 - TBC instance/bg 标志 1:陆地,3:WOW的战场或副本,9:TBC的战场或副本 - cooldown - time needed to pass until next time player can join instance in milisecounds 刷新周期,单位毫秒
vendors: 商人 - vendorGuid - vendor id 商人代号 - itemGuid - item id 物品代号 - amount - its for stackable items like arrows food etc... 一次可购买的最大数量
trainerspelloverride: - spellid - spell id 法术代号
- cost - in copper 花费,单位:铜币
- requiredspell - required spell id 学习该法术需要的前提法术
- deletespell – id 学习该法术后需要删除的法术
- requiredskill – skillid 学习该法术需要的技能
- requiredskillvalue - req skill level 学习该法术需要的技能等级
- reqlevel - ...name says all 学习该法术需要的玩家等级
- requiredclass - bitwise for mixed classes (warrior - 1, pally - 2, hunter - 4, rouge - 8, priest - 16, shaman - 64, mage - 128, warlock - 256, druid -
职业:1:战士,2:圣骑士,4:猎人,8:盗贼,16:牧师,64:撒满,128:法师,256:术士,1024:德鲁依
traniers: 训练师 - creatureid - traniner id 生物代号,训练师编号(与生物表同,为什么不用entry,非得另起一名称)
- skilllineXX - skillline id from skilline.dbc 技能索引 totemspells: - spellid - totem spell id 图腾魔法代号
- spelltocast1 - spell that is beeing casted by totem <look for them on thotbot> 图腾能施展的法术1
- spelltocast2 - same as above 图腾能施展的法术2
- spelltocast3 - ... 图腾能施展的法术3
quests: 任务 this db is preety easy all you need are flags here... classes warrior - 1, pally - 2, hunter - 4, rouge - 8, priest - 16, shaman - 64, mage - 128, warlock - 256, druid - 1024 - scritem - for deliver quests <itemid> 赋予任务的物品代号
- race - i dont remember all of them anyway 77 - ally, 176 for horde 种族
- flags (taken from source) 任务类别FLAG
QUEST_FLAG_NONE = 0, 无
QUEST_FLAG_DELIVER = 1, 赋予
QUEST_FLAG_KILL = 2, 杀某生物
QUEST_FLAG_SPEAKTO = 4, 跟某生物说话
QUEST_FLAG_REPEATABLE = 8, 可重复的
QUEST_FLAG_EXPLORATION = 16, 勘查
QUEST_FLAG_TIMED = 32, 有时间限制
QUEST_FLAG_REPUTATION = 128, 跟名誉相关
pvpareas: PVP区域 - areaid - name says all 地区代号
- areaname <varchar> 地区名称
- pvptype - 1 -horde territory, 2 -ally territory, 3 –contested 1部落地盘 2联盟地盘 3争夺中的地区
gameobject_quest_item_binding: 任务物品连结
its for go's lootable only for certain quest
- gameobject_entry – goid 游戏物件实体
- quest_id - <--- 任务代码
- item_id ... 物品代码
- itemcount - chance is always 100% for those go's here you can set how many quest items r droped on loot 物品量
gameobject_quest_pickup_relation 任务取得关联
this one is used for quests that require go interaction
- gameobject_entry – goid 游戏物件实体
- quest_id - <--- 任务代码
- required_count 需求数量
areatriggers: 区域触发 - AreaTriggerID - obvious crap (areatriggers.dbc) 区域触发代号,由areatriggers.dbc定义
- type - 1 - instance entrance, 3 - inn, city for resting system, 4 - portal (w/o loadning screen or sth i have it for rutheran portal and wizards sanctum) 类型。1:副本入口,3:旅店或者城市,4:没明白
- mapid - map id for tp 地图代号
- screen - usally same as mapid for loading screen 画面代号,通常跟地图代号相同
- name <varchar100 latin> 名称 - x,y,z - coords for tp 触发该触发点将传送到的坐标,与mapid构成完整的传送点坐标。
- required_honor_rank ... 需要的荣誉
- required_level ... 需要的等级
第3课 如何填加NPC 以一个卖装备的NPC为例子
如何添加一个套装销售NPC! 主要在3个表插入信息 creature_names NPC名称、外形等参数 字段 entry, creature_name, Subname, Flags1, type, Family, Rank, unk4, SpellDataID, displayid, unk2, unk3, Civilian, Leader ------------------------------------------------------------------ creature_proto NPC属性、类型 字段 entry, level, faction, health, mana, scale, npcflags, attacktime, mindamage, maxdamage, rangedattacktime, rangedmindamage, rangedmaxdamage, mountdisplayid, item1slotdisplay, item1info1, item1info2, item2slotdisplay, item2info1, item2info2, item3slotdisplay, item3info1, item3info2, respawntime, resistance0_armor, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, combat_reach, bounding_radius, auras, boss 这里主要注意这个npcflags 4为物品出售,其他可以自己去试 ------------------------------------------------------------------ vendors NPC销售物品列表 字段 vendorGuid, itemGuid, amount 第一个字段就是NPC的编号,第二个是物品编号(可以去items中自己查),第三个物品数量(0表示不限制数量) ------------------------------------------------------------------ 下面是一个简单的销售骑士T2的NPC,大家可以自己修改
Copy code INSERT INTO creature_names VALUES (90010, "T2促销员", "圣骑士T2商人", 0, 7, 0, 0, 0, 0, 15527, 1, 1, 1, 0); INSERT INTO creature_proto VALUES (90010, 100, 1080, 9000000, 5000, 1, 4, 1000, 50000, 55000, 0, 1000, 5000, 0, 23316, 33492482, 13, 0, 0, 0, 0, 0, 0, 2000, 0, 0, 0, 0, 0, 0, 0, 1, 0.5, "", 0); INSERT INTO vendors VALUES ("90010", "16951", 0); INSERT INTO vendors VALUES ("90010", "16952", 0); INSERT INTO vendors VALUES ("90010", "16953", 0); INSERT INTO vendors VALUES ("90010", "16954", 0); INSERT INTO vendors VALUES ("90010", "16955", 0); INSERT INTO vendors VALUES ("90010", "16956", 0); INSERT INTO vendors VALUES ("90010", "16957", 0); INSERT INTO vendors VALUES ("90010", "16958", 0);
|
|