mob
full_admin
verb
Take_NPC_Control(mob/M in world)
set hidden=1
if(M.noob==1)
usr.control=1
usr.oldmob=usr.client.mob
usr.client.mob=M
usr.oldeye=usr.client.eye
usr.client.eye=M
usr.client.perspective = EYE_PERSPECTIVE
return
if(M.noob==0)
usr<<"I'm sorry but you can only Take Control of NPC's at this present time."
Return_To_Normal()
if(usr.control==1)
set hidden=1
usr.client.mob=usr.oldmob
usr.client.eye=usr.oldeye
usr.client.perspective = EYE_PERSPECTIVE
return
else
usr<<"You aren't controlling an NPC."
Problem description:
Well, what I'm trying to do is allow coded in admins to take control of an NPC and then return to their original mob. Changing mobs works... but it logs off the original mob and changes all the usr's vars to the mobs vars... which causes a problem because then I can't change back. So, I was wondering if there was a way to have me change mobs but keep my original mob on and still leave me with my normal vars such as the ones that give me admin.
Then whenever you want to control something just run the Control proc