ID:149316
 
obj
Smifflion_Assimilator
icon = 'NewItem.dmi'
verb
get()
set src in oview(0)
new/obj/Smifflion_Assimilator(usr)
assimilate()
set src in usr.contents
if(usr.pet1 == 1)
usr.pet:key = usr.key
usr.key = usr.pet:key

Okay can you guess what and where the problem is? If you guessed
                    usr.pet:key = usr.key
usr.key = usr.pet:key

You are correct, I want it so that..well lets put it this way:
The Pet always follows Master
You control Master
after assimilation
The Master always follows the Pet
You control Pet

Can someone help me with this by:
1)Giving me advice
2)Giving me fixed code <=D

Thanks!
sure.. ask someone else.. i have no idea
I think you would want

usr.key = src.key//src as in the pet
The problem that I see is that you're setting the pet's key to the usr's key, then setting the usr's key to the pet's key (which is now the same as the usr's key). You have to store one of these (let's say, the usr's key) in another variable, set the keys equal, then load the variable back into the pet or usr. Get it?