• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Feature Zanzoken

raezil

Member
Joined
Apr 17, 2012
Messages
57
Reaction score
17
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
Code:
Position Game::getClosestFreeTile(Creature* creature, Position pos, bool extended/* = false*/, bool ignoreHouse/* = true*/)
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:

This code was created by Raezil
 
Did I do something wrong, because someone says that There will be a crash, but I checked it and there wasnt any problem.
 
Back
Top