SphereCommunity
Pet transfer confirmation - Printable Version

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



Pet transfer confirmation - WRWR - 01-31-2018 06:25 AM

Any ideas how to make Pet transfer confirmation?


RE: Pet transfer confirmation - Coruja - 01-31-2018 12:35 PM

you must override the default "transfer" command (sphere_speech.scp) with your custom code

something like this:
Code:
[SPEECH spk_pet]
...

ON=TRANSFER
IF (<ISMYPET>)
  SRC.TARGETF CustomFunctionToTransferPet <UID>
ENDIF
return 1


[FUNCTION CustomFunctionToTransferPet]
//SRC/I: the char using the transfer command (pet owner)
//ARGO: the selected char
//ARGS: the pet (you can set REF1=<ARGS> to replace <UID.<ARGS>.something> with <REF1.something>)

//add your custom code here