newby
Active Member
- Joined
- Jun 11, 2016
- Messages
- 183
- Reaction score
- 43
I would like to use training monk without kill the old train methods like train with your friend using summoned monks.
So some advance like skills grow 2x out of training monks would be amazing
How to do it?
It would be necessary sources changes?
Or it's possible to do on LUA like on 1.0:
By using the:
Changing 2x multiplier to 0.5 instead.
Then in map editor the tile the player stands on when training just give it the action id of whatever you put on line 9.
Where is the function who works like onGainSkillTries 1.0 on 0.4
So some advance like skills grow 2x out of training monks would be amazing
How to do it?
It would be necessary sources changes?
3777/src at main · Fir3element/3777
The Forgotten Server 0.4 (rev 3777) with several improvements and bugfixes - Fir3element/3777
github.com
Or it's possible to do on LUA like on 1.0:
[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
By using the:
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
Changing 2x multiplier to 0.5 instead.
Then in map editor the tile the player stands on when training just give it the action id of whatever you put on line 9.
Where is the function who works like onGainSkillTries 1.0 on 0.4