魔兽世界怀旧服出生参数修改和技能学习

前言

计划搭建一个战场的服务器,所以需要提供一些功能:出生就满级、出生赠送金钱、提供出生地购买套装、学习技能。

过程

  • 出生满级和出生赠送的金钱

需要修改服务器的启动配置文件
配置文件路径 /home/mangos/mangos/run/etc/mangosd.conf

下面2项。

StartPlayerLevel = 1

StartPlayerMoney = 0

修改参数后启动服务器即可。

其中金钱 单位是铜。 100 铜 = 1银 ,100银=1金。

  • 套装的出售

以我昨天增加那个npc为载体。增加了 战士的力量套装。

INSERT INTO `npc_vendor` (`entry`, `item`, `maxcount`, `incrtime`, `condition_id`, `comments`)
VALUES
    (85878, 16861, 0, 0, 0, NULL),
(85878, 16862, 0, 0, 0, NULL),
(85878, 16863, 0, 0, 0, NULL),
(85878, 16864, 0, 0, 0, NULL),
(85878, 16865, 0, 0, 0, NULL),
(85878, 16866, 0, 0, 0, NULL),
(85878, 16867, 0, 0, 0, NULL),
(85878, 16868, 0, 0, 0, NULL);
32778-c4143b89a99b73d7.png
image.png
  • 增加技能学习。

直接添加职业训练师 到出生地

INSERT INTO creature (guid, id, map, modelid, equipment_id, position_x, position_y, position_z, orientation, spawntimesecsmin, spawntimesecsmax, spawndist, currentwaypoint, curhealth, curmana, DeathState, MovementType)
VALUES
(null, 914, 0, 0, 0, -6219.636, 340.254, 383.0809, 4.393, 490, 490, 0, 0, 6139, 0, 0, 0);

32778-adec6cacf96e75f4.png
image.png

存在的问题

  • 目前战士的技能,其中防御姿态、狂暴姿态是需要完成任务的。无法直接学习。

转载于:https://www.jianshu.com/p/50ba3482850b

猜你喜欢

转载自blog.csdn.net/weixin_34414650/article/details/91264522
今日推荐