• 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!

Function

MaXwEllD

New Member
Joined
Sep 10, 2009
Messages
28
Reaction score
1
Location
Brazil
Well, in first, i'm a completely newbie over programation in tibia sources.

Let's go. Could someone make a function that when I move my character, or press the button to move it, return a creatureevent, like OnMove (cid, fromPosition, toPosition), i think you have Understood what i said.

Sorry my bad English.
 
uhm, if it's only going to be 3 or 4 tiles not like 100 tiles, then use onStepIn, or if you want it to make it only if you move from x sqm then onStepOut.
I.E:eek:nStepIn: if I step on yyy tile then the shiet will happen.
or
onStepOut:if I am at xxx tile and move out of it, the shiet will happen.
 
@Bogart
No, it's like a creatureevent, like onGainExp() that will be executed when i try to move from my sqm. And the function will return a creatureevent onmove, with the params: creatureid(cid), fromPosition, toPosition. and the tag will be:

Code:
	<event type="onmove" name="player_move" event="script" value="playermove.lua"/>
 
Back
Top