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

Windows Arrow like RL Tibia

mcccp

New Member
Joined
Apr 11, 2009
Messages
23
Reaction score
0
how can i make that arrow effect like in real tibia?
when you start the game it appears.
you know what i mean nu XDD :)
thanks :)
 
This has nothing to do with "[Windows]", it should be tagged as "
Lua:
"

[code=lua]function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(position, CONST_ME_TUTORIALARROW)
	return TRUE
end
 
Fail ;<

data/movements/scripts/scriptname.lua

Yep, I saw stepIn, and was about to post, and I said "I bet he replied already" :eek:

Here it is as a globalevent, so it goes all the time.

Code:
function onThink(interval, lastExecution)

local texts = 
{
    ["Tp Room"] = {x=816, y=477, z=7}
}

    for text, pos in pairs(texts) do
        doSendAnimatedText(pos, text, TEXTCOLOR_WHITE)
        doSendMagicEffect(pos, CONST_ME_TUTORIALARROW)
    end
    return TRUE
end
And in globalevents;

Code:
<globalevent name="arrows" interval="7.1" event="script"  value="arrows.lua"/>
Credits to me!

P.S, 7.1 seconds is the time the arrow effect lasts, so the next one will come right when the new one is. If you wanted, you could remove the text, and make a different script that sends the text in the same pos every second.
 
Last edited by a moderator:
Back
Top