ID:147977
 
Okay, I got another one.

Summon(mob/M in world)
set category="MGM"
set name="Summon"
set desc="Brings someone or something to you."
if(M.Owner == 1)
M << if(alert("Will you allow [src] to summon you?","Summon","Yes","No") == "No")
if("No")
src << "[M] denied your request to summon them."
return
if(M.MGM == 1)
M << if(alert("Will you allow [src] to summon you?","Summon","Yes","No") == "No")
src << "[M] denied your request to summon them."
return
else
M.loc=usr.loc
M << "[usr] has summoned you!"
usr << "You have summoned [M]."

It always alerts src and not M. Meh.</<></<>
Alert by default sends it's box to usr. you can change that by having alert(M,"YourText"... instead of just alert("YourText"...