Animal Ownership - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Animal Ownership (/Thread-Animal-Ownership) |
Animal Ownership - Leonidas - 02-06-2015 06:03 PM Hello, I'm trying to make a race ability "natural wonder". Once a player uses this, the server checks the distancetalk for animals and gives a memory to them thus giving the player ownership. I had this working fine, but I'm wanting to add in a part so if their arent any animals with "brain_animal" it tells them. This is where it stopped working. [function f_natural_wonder] forchars <serv.distancetalk> IF (<NPC> == 1) makemypet src.say Help me forest friends! return 1 else src.say There are no animals to help! return 1 ENDFOR ENDIF [function MakeMyPet] serv.newitem=i_memory new.color=memory_ipet new.link=<src> new.cont=<uid> I'd also like to add a timer on the animals so when it reaches zero the player no longer has ownership and they return to their spawn. I'm sure I could do this part but no harm in asking Thank you! Of course as soon as I post this i realize i'm retarded. I figured it out, nevermind RE: Animal Ownership - Coruja - 02-07-2015 01:35 AM lol RE: Animal Ownership - Extreme - 02-07-2015 06:02 AM WHAT hahaha lolĀ² RE: Animal Ownership - Leonidas - 02-11-2015 05:41 PM I have one problem with my script. Once the timer on the animals memory hits zero the player no longer has ownership and the animal goes on doing what it was doing. But if the player uses this on a horse, and mounts the horse before the timer runs out, he now has a free horse. How would I go about this? If there's even a way to disable a horse from being mounted when they use this skill, how would I do this? |