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

Lua [Help] Teleport to player spell

JacobC

New Member
Joined
Apr 7, 2009
Messages
34
Reaction score
1
Hi guys.
I'm trying to make a teleport spell for the target.

this is my function:
Code:
local function onCastSpell2(parameters)
        npos = ???
            doTeleportThing(parameters.cid,npos)
            doSendMagicEffect(npos, CONST_ME_TELEPORT)
end

can someone help me compelte it?

Thanks in advance,
Jacob
 
i dont get it... your saying the spell is supposed to teleport to a specific location, or the spell caster chooses where it goes?
 
i dont think you need to have paramaters.cid, as for getting the position of the target i couldnt tell you right now i'd have to take a look at the list of lua functions which i cant
 
Lua:
DoTeleportThing (cid, )
also in function

function onTarget
OnTarget
or 
Local m =1 
and 
Function OnTarget Use
 
Back
Top Bottom