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

[Help] Hunting Assistance Npc

olasa

New Member
Joined
Dec 28, 2010
Messages
8
Reaction score
0
I have the Npc hunting assisance and i want to know if someone can help me.
I just want that the Npc (pet) follow the owner But standing in the same sqm than the owner, i have something like this:

-- Update following
selfFollow(owner)

-- On floor change ;)
local myPos = getCreaturePosition(getNpcCid())
local ownerPos = getCreaturePosition(owner)
if (myPos.z ~= ownerPos.z) then
doSendMagicEffect(myPos, CONST_ME_POFF)
doTeleportThing(getNpcCid(), ownerPos)
doSendMagicEffect(ownerPos, CONST_ME_TELEPORT)
end



Like in this Picture: ImageShack® - Online Photo and Video Hosting
 
Back
Top