warriorfrog
Active Member
- Joined
- Jul 29, 2015
- Messages
- 334
- Reaction score
- 35
@FenX made this topic to training room increase the player's skill gain rate, i wanna make something like that
but the solution there was to 1.0, i'm using 0.4
is anyone know how to convert that?
data/events/scripts/player.lua
on 0.4 the foldder /data/events even doesnt exist... Fir3element/3777 (https://github.com/Fir3element/3777/tree/master/data)
topic link:
but the solution there was to 1.0, i'm using 0.4
is anyone know how to convert that?
data/events/scripts/player.lua
Code:
function Player:onGainSkillTries(skill, tries)
if APPLY_SKILL_MULTIPLIER == false then
return tries
end
-- Training Room Tile
local tile = self:getTile()
local ground = tile and tile:getGround()
if ground and ground.actionid == 9000 then -- change 9000 to whatever action id you set the tiles to
tries = math.floor(tries * 2) -- example: 2x skill rate
end
if skill == SKILL_MAGLEVEL then
return tries * configManager.getNumber(configKeys.RATE_MAGIC)
end
return tries * configManager.getNumber(configKeys.RATE_SKILL)
end
topic link:
[REQUEST] Training Monk tiles give faster skill gain rates.
Hi, Project: OT-ServBR Request description: I am looking for a way to make tiles in the training room increase the player's skill gain rate (that includes all combat skills) while training as for example, there will be 2 sections to the training monks, standard & advanced. I presume this is...
otland.net