From 9ff05672c1aa2c152928733282e218be6863ef27 Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Tue, 24 Oct 2023 16:33:32 -0300 Subject: [PATCH] Fixed Trainer Machine bug, after reload scripts. --- .../trainers/training_machine.lua} | 3 ++- .../scripts/custom/movement_trainer_entrance.lua | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename data-otservbr-global/{scripts/custom/monster_training_machine.lua => monster/trainers/training_machine.lua} (97%) diff --git a/data-otservbr-global/scripts/custom/monster_training_machine.lua b/data-otservbr-global/monster/trainers/training_machine.lua similarity index 97% rename from data-otservbr-global/scripts/custom/monster_training_machine.lua rename to data-otservbr-global/monster/trainers/training_machine.lua index 7ef2f78d707..c5a98a9ce28 100644 --- a/data-otservbr-global/scripts/custom/monster_training_machine.lua +++ b/data-otservbr-global/monster/trainers/training_machine.lua @@ -1,6 +1,7 @@ local mType = Game.createMonsterType("Training Machine") local monster = {} -monster.description = "Training Machine" + +monster.description = "a training machine" monster.experience = 0 monster.outfit = { lookType = 1142, diff --git a/data-otservbr-global/scripts/custom/movement_trainer_entrance.lua b/data-otservbr-global/scripts/custom/movement_trainer_entrance.lua index 161c0ffb220..c7d805e8f42 100644 --- a/data-otservbr-global/scripts/custom/movement_trainer_entrance.lua +++ b/data-otservbr-global/scripts/custom/movement_trainer_entrance.lua @@ -67,8 +67,8 @@ function trainerEntrance.onStepIn(creature, item, position, fromPosition) end calculatingRoom(creature.uid, config.firstRoomPosition, 0, 0) - Game.createMonster("training machine", creature:getPosition(), true, false) - Game.createMonster("training machine", creature:getPosition(), true, false) + Game.createMonster("Training Machine", creature:getPosition(), true, false) + Game.createMonster("Training Machine", creature:getPosition(), true, false) return true end