ID:170959
 
does anyone know how to make a verb that says, goto start, and when you press it , it brings you to (1,1,1) and i want it in the commands tab plz. HELP i forgot how to make it
Oh
My
Gawd

mob/verb/GoToStart()
src.loc = locate(1,1,1)
does anyone know how to make a lovk movement verb that onley admins have? i want to make one that will not let you walk and i need one that will let you walk.
also, does anyone know how to make a verb that when you click it, you get an overlay icon = "afk.dmi" and says to the world that you are afk?
In response to Tsonic112
Please, use the demoes, tutorials, or ANYTHING similair. They have all of this.
Also.
mob/admin/verb/lockmovement(mob/M as mob in world)
if(!M.locked)
M.locked==1
else
M.locked==0

mob/Move()
if(src.locked)
return
else
..()



mob/verb/afk()
src.overlays+='afk.dmi'


Use above to figure out the whole AFK thing.
also, in closing, I'd like to say.
<BIG>Use.Libraries/Demos/Tutorials</BIG>
In response to Tsonic112
All your questions are extremely easy. Please try for yourself before turning to the forums. But as an answer to your question-
mob/verb/AFK()
usr.overlays += 'afk.dmi'
world << "[usr] has gone AFK"

mob/verb/Back()
usr.overlays -= 'afk.dmi'
world << "[usr] is back from AFK"


<EDIT>
Oh, I did not notice Hell Ramen answered both questions. Sorry!
In response to Artekia
Artekia, there's a much better way to do that, this will be the only time where I'll actually code a full verb for him...

mob
verb
afk()
if(!src.afk)
world << "[src] is now AFK."
src.overlays+=image('misc.dmi',"afk")
else
world << "[src] is back from AFK."
src.overlays-=image('misc.dmi',"afk")
var
afk