SphereCommunity
Summon your pets - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Summon your pets (/Thread-Summon-your-pets)



Summon your pets - Joe Loop - 12-25-2012 09:23 AM

SRC.SUMMONTO=<SRC.ISMYPET> why not?

Whats the easiest way to summon your pets from all over the world to you?


RE: Summon your pets - Elmortis - 12-26-2012 03:20 AM

you need memory.ipet


RE: Summon your pets - Joe Loop - 12-27-2012 12:45 AM

I tried that cant get it to work due to its on an item not an event on the pet, basicly it should be a check if it has memori.ipet and a check if it matches the player... but cant make it work Sad


RE: Summon your pets - Shaklaban - 12-28-2012 07:03 AM

as i know there is no way to detect pets of a players. of course you can use giant forchars loop but it will hang server.

only way is to implement a system like followers, when player tame, buy or get a pet with another way you need to consider all that situations and hold that pets uids on list, mysql, tag or var. also when player loses a pet you need to remove their uid from list.


RE: Summon your pets - Joe Loop - 12-28-2012 10:08 AM

Uff Sad thought at could make a simple function that teleports player to his/hers pets or pets to him/her, due to i often see players loose their monts and pets and stuff... but i am no über scripter so if there is no simple way Smile they just gotta live with the risk of forgetting and loose some pets every now and then... thanks for the answers


RE: Summon your pets - Oxtar - 12-30-2012 01:41 AM

I use this to find who's pet it is or not.

Code:
SRC.MEMORYFINDTYPE.MEMORY_IPET.LINK.TAG.OWNER