Hello,
Well some people have requested this missing feature which could be found in 0.3 series. Well i have made one for TFS 1.x.
I will send a pull request to the forgottenserver project, but in case it may not be accepted. Due to, this is mby a personal future. This way is alot better than 0.3, since 0.3 was hardcoded while this is made by lua with few lines. Which make it even more easier to edit stuff.
Go to events/events.xml and onTurn make sure write from 0 to 1.
Now go to events/scripts and open player.lua and find PlayernTurn(direction) and replace with this:
Cheers.
Well some people have requested this missing feature which could be found in 0.3 series. Well i have made one for TFS 1.x.
I will send a pull request to the forgottenserver project, but in case it may not be accepted. Due to, this is mby a personal future. This way is alot better than 0.3, since 0.3 was hardcoded while this is made by lua with few lines. Which make it even more easier to edit stuff.
Go to events/events.xml and onTurn make sure write from 0 to 1.
Now go to events/scripts and open player.lua and find PlayernTurn(direction) and replace with this:
Code:
function Player:onTurn(direction)
if self:getGroup():getAccess() and self:getDirection() == direction then
local nextPosition = self:getPosition()
nextPosition:getNextPosition(direction)
self:teleportTo(nextPosition, true)
end
return true
end
Cheers.
Last edited: