When I was using a commands, I found a insteresting option which can be used to create Zanzoken ;D. I am writting about /cliport and when I noticed that there is a CONDITION_GAMEMASTER, GAMEMASTER_TELEPORT, so I went to the source and started writting. This is zanzoken (has exh,effect, , teleports us to the tile, doesnt teleport us to pz or into walls. itd)
So, go to game.cpp and find bool Game:: playerAutoWalk(uint32_t playerId, std::list<Direction>& listDir)
Then change this whole function to http://wklej.to/bdrme
Now, go to
and Look for
http://wklej.to/980BU
and change it to
http://wklej.to/iuFy5
Now, You have to add this to a technique.
local teleport = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_TELEPORT)
i
doAddCondition(cid, teleport)
Tested on tfs 0.3.6plr1.
Zanzoken's testing:
So, go to game.cpp and find bool Game:: playerAutoWalk(uint32_t playerId, std::list<Direction>& listDir)
Then change this whole function to http://wklej.to/bdrme
Now, go to
Code:
Position Game::getClosestFreeTile(Creature* creature, Position pos, bool extended/* = false*/, bool ignoreHouse/* = true*/)
http://wklej.to/980BU
and change it to
http://wklej.to/iuFy5
Now, You have to add this to a technique.
local teleport = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_TELEPORT)
i
doAddCondition(cid, teleport)
Tested on tfs 0.3.6plr1.
Zanzoken's testing:
This code was created by Raezil