mob/Spell
verb
Apparate(varX as num, varY as num, varZ as num)
set category = "Spells"
if(varX > world.maxx) // if the number they put in is higher than the map's highest point
src.x = world.maxx //make it go as close as it can, that way they dont go off map and have to relog
else
if(varX < 1) // if its less than one
src.x = 1 //go to one since you cant have negative map points
if(varY > world.maxy)
src.y = world.maxy
else
if(varY < 1)
src.y = 1
if(varZ > world.maxz)
src.z = world.maxz
else
if(varZ < 1)
src.z = 1
src.loc = locate(varX,varY,varZ)
mob/Teacher
verb
Teach_Apparate(mob/M in world)
set category = "Charm Spells"
for(var/mob in world)
M.verbs+=new/mob/Spell/verb/Apparate
Problem description:Since I put in the Teach verb, whenever I click Apparate
it instead makes a list of all mobs in the world instead of making me list an x y and z to teleport to.