Kuantikum
Member
- Joined
- Jul 3, 2015
- Messages
- 219
- Solutions
- 1
- Reaction score
- 20
[Event] Walkthrough everything Ctrl + Arrow keys [TFS 1.X]
[Event] Walkthrough everything Ctrl + Arrow keys [TFS 1.X]
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...otland.net
Go to events/events.xml and onTurn make sure write from 0 to 1.
¿How can i set this, if Nostalrius 7.7 do not have "events/events.xml" ?
Lua:
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
Can you help me ?