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