SphereCommunity
Pet teleports to owner - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Pet teleports to owner (/Thread-Pet-teleports-to-owner)



Pet teleports to owner - Lano - 06-20-2015 01:01 AM

I am trying to figure out a little script to make a/the pet(s) teleport to their owners if a certain distance level is broken when they are "on follow" .. but i am not having any luck...

Basicly it does not need to teleport them if a distance level is broken, its more of an "dont get lost/leave your pet behind" type of thing... but they often get stuck when the owner uses them for hunting in the woods and so on...

Any idieas?


RE: Pet teleports to owner - darksun84 - 06-20-2015 02:36 AM

Try this, for PETS only !

PHP Code:
[EVENTS e_pet_test]

ON=@NpcActFollow
if <distance <owner>> >= 15
    gouid 
<owner>
endif 
Remember that this will be fired often


RE: Pet teleports to owner - Lano - 06-22-2015 03:17 AM

Thanks, yeah i thought about something on NPCACTFOLLOW trigger, but just as you are saying, its gonna be triggered A LOT, but yeah.. maybe its the only way Smile - So thx again