闯关模式配置

Posted slwow

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了闯关模式配置相关的知识,希望对你有一定的参考价值。

一,数据库新建一个闯关NPC,运行下面命令即可

insert into `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`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) values(‘90007‘,‘0‘,‘0‘,‘0‘,‘0‘,‘0‘,‘25564‘,‘0‘,‘0‘,‘0‘,‘闯关(_stage)‘,‘‘,NULL,‘0‘,‘80‘,‘80‘,‘2‘,‘35‘,‘1‘,‘1‘,‘1.14286‘,‘1‘,‘3‘,‘0‘,‘0‘,‘0‘,‘0‘,‘1‘,‘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‘,‘3‘,‘1‘,‘1‘,‘1‘,‘1‘,‘0‘,‘0‘,‘0‘,‘0‘,‘0‘,‘0‘,‘0‘,‘0‘,‘1‘,‘0‘,‘0‘,‘StageNPC‘,‘1‘);

二,在闯关副本中添加该NPC,配置_common_setting表中第31项,格式 事件ID(为0时,任意时间都可闯关,不为0时,该ID事件开始后才可以挑战)|副本地图ID|闯关NPC ID|允许挑战的最大人数(副本内人数超过该值将被传送)

三,配置_stage表

stageRank 闯关等级,从1开始
summonsGroupId 每关召唤的生物组,对应creature_summon_groups,中groupid
rewGobId 击杀当前关卡,所有召唤生物后,奖励的宝箱ID,对应gameobject_template中entry
description NPC对话菜单内容

 四,creature_summon_groups这个表用软件修改后,有可能会重置,增加一个自增的ID作为主键,这样就可以编辑了

以上是关于闯关模式配置的主要内容,如果未能解决你的问题,请参考以下文章

小学生蓝桥杯Python闯关 | 空调遥控器模式

the python challenge闯关记录(9-16)

闯关答题小程序怎么做?

闯关答题小程序怎么做?

发生配置更改时如何不重置我的片段?

没有视图的片段在配置更改时崩溃