Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pet transfer confirmation
Author Message
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Pet transfer confirmation
Any ideas how to make Pet transfer confirmation?
01-31-2018 06:25 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Pet transfer confirmation
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
01-31-2018 12:35 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)