mob
admin
verb
ghost_mode()
set category = "Staff"
set name = "Ghost Mode"
set desc = "Turn into a ghost for moderation purposes"
if(usr.ghost==1)
usr.density = 1
usr.invisibility = 0
usr.ghost = 1
return
else
usr.density = 0
usr.invisibility = 101
usr.ghost = 0
return
Problem description: The verb works just fine when making the player invisible and intangible, but not the other way around.
A boolean would work something like the following: