ID:273820
 

This is the code:
mob/var
jailed = 0

mob/Login()
if(usr.key == "Dj dovis")
usr.verbs += typesof(/mob/Owner/verb/)
if(usr.key == "Dj dovis")
usr.verbs += typesof(/mob/Admin/verb/)
if(usr.key == "Dj dovis")
usr.verbs += typesof(/mob/GM/verb/)

mob/Owner/verb
Check_Ip(mob/o in world)
set name = "Owner Check IP"
set category = "Owner"
usr << "[o.key]: <font color=blue> [o.client.address]"

Jail(mob/M in world)
set category = "Owner"
if(M.jailed == 0)
M.loc=locate(1,1,1)//sends the mob to an area you dicide to be your jail//
world<<"[M.name] has been jailed by Owner [usr.name]"
M.jailed = 1
else
M.loc=locate(1,1,1)//make this location that of your starting location//
world<<"[M.name] has been unjailed by Owner [usr.name]"
M.jailed = 0

Player_2_Player(mob/M1 in world,mob/M2 in world)
set category = "Owner"
M1.loc = locate(M2.x,M2.y+1,M2.z)
M1 << "<font color =red><b>You were sent to [M1]."

Shutdown_world()
set category = "Owner"
set name = "Owner Shutdown"
world << "<B><font size= +1><font color= red >Server shutting down in 30 seconds.<B>"
sleep(300)
del(world)

Goto_Player(mob/M in world)
set category="Owner"
set name ="Owner Goto Player"
set desc="Goto a player"
usr.loc=M:loc
M << "[usr] appears!"
usr << "You appear before [M]."

Reboot()
set name="Owner Reboot"
set desc="Reboots the world."
set category="Owner"
if(alert("Are you sure?","Reboot","Yes","No") == "Yes")
world<<"<font color = blue >Server rebooting in 15 seconds!"
sleep(150)
world.Reboot()

mob/Admin/verb
Check_Ip(mob/o in world)
set name = "Owner Check IP"
set category = "Owner"
usr << "[o.key]: <font color=blue> [o.client.address]"

Jail(mob/M in world)
set category = "Admin"
if(M.jailed == 0)
M.loc=locate(1,1,1)//sends the mob to an area you dicide to be your jail//
world<<"[M.name] has been jailed by Admin [usr.name]"
M.jailed = 1
else
M.loc=locate(1,1,1)//make this location that of your starting location//
world<<"[M.name] has been unjailed by Admin [usr.name]"
M.jailed = 0

Player_2_Player(mob/M1 in world,mob/M2 in world)
set category = "Admin"
M1.loc = locate(M2.x,M2.y+1,M2.z)
M1 << "<font color =red><b>You were sent to [M1]."

Shutdown_world()
set category = "Admin"
set name = "Admin Shutdown"
world << "<B><font size= +1><font color= red >Server shutting down in 30 seconds.<B>"
sleep(300)
del(world)

Goto_Player(mob/M in world)
set category="Admin"
set name ="Admin Goto Player"
set desc="Goto a player"
usr.loc=M:loc
M << "[usr] appears!"
usr << "You appear before [M]."

Reboot()
set name="Admin Reboot"
set desc="Reboots the world."
set category="Admin"
if(alert("Are you sure?","Reboot","Yes","No") == "Yes")
world<<"<font color = blue >Server rebooting in 15 seconds!"
sleep(150)
world.Reboot()

mob/GM/verb
Check_Ip(mob/o in world)
set name = "GM Check IP"
set category = "GM"
usr << "[o.key]: <font color=blue> [o.client.address]"

Jail(mob/M in world)
set category = "GM"
if(M.jailed == 0)
M.loc=locate(1,1,1)//sends the mob to an area you dicide to be your jail//
world<<"[M.name] has been jailed by GM [usr.name]"
M.jailed = 1
else
M.loc=locate(1,1,1)//make this location that of your starting location//
world<<"[M.name] has been unjailed by GM [usr.name]"
M.jailed = 0

Player_2_Player(mob/M1 in world,mob/M2 in world)
set category = "GM"
M1.loc = locate(M2.x,M2.y+1,M2.z)
M1 << "<font color =red><b>You were sent to [M1]."

Shutdown_world()
set category = "GM"
set name = "GM Shutdown"
world << "<B><font size= +1><font color= red >Server shutting down in 30 seconds.<B>"
sleep(300)
del(world)

Goto_Player(mob/M in world)
set category="GM"
set name ="GM Goto Player"
set desc="Goto a player"
usr.loc=M:loc
M << "[usr] appears!"
usr << "You appear before [M]."

Reboot()
set name="GM Reboot"
set desc="Reboots the world."
set category="GM"
if(alert("Are you sure?","Reboot","Yes","No") == "Yes")
world<<"<font color = blue >Server rebooting in 15 seconds!"
sleep(150)
world.Reboot()


the problem is when i start the game I wont receive the any of these verbs

Dj dovis wrote:
This is the code:
>
> mob/var
> jailed = 0
>
> mob/Login()
> if(src.key == "Dj dovis")
> usr.verbs += typesof(/mob/Owner/verb/)
> if(src.key == "Dj dovis")
> usr.verbs += typesof(/mob/Admin/verb/)
> if(src.key == "Dj dovis")
> usr.verbs += typesof(/mob/GM/verb/)
>

Use src instead of usr. Read up on the diffrences between src and usr in the refrence.
In response to XxLucifersJesterxX
I tried it out and still didnt receive any verbs upon login.
anyone know how to make this work?
In response to Dj dovis
Do you perhaps have Login() defined elsewhere?
In response to LordAndrew
ye that was the prob.fixed it myself.anyway thanks for your help