ID:270367
 
Code:
verab

usr gm


Problem description:How do i make this code work

I_Not_Scared164 wrote:
How do i make this code work

Well, you don't. It doesn't do anything and it's not even valid syntax. Perhaps if you explained what you want to do, someone can give you help achieving that.

Lummox JR
In response to Lummox JR
no im trying to make a verb
In response to I_Not_Scared164
maybe you should read the blue book... verab???

This is what it looks like:

mob //who is getting the verb
verb //defining that you are giving the mob the verb
program() //The name of the verb
src << "READ THE BLUE BOOK!" // a message!

Copy and paste this and run it. I think you will get the message =)
In response to Lummox JR
i wnt to make a verb where gms can ban each other
In response to I_Not_Scared164
Why would you want GMs to ban each other?

Anyway, seriously, if you know that little, I suggest reading the DM guide. That code you posted above is dreadfully annoying to look at. wtf is a verab?
In response to I_Not_Scared164
Okay, to begin, read the DM guide/blue book, as you obviously have extremely little to no grasp on what DM coding is, or looks like. After your done their, you may also want to check out the DM Reference and Developer FAQ. Finally, when you DO know what your doing, its a very bad Idea to have a post that gives little code and asks a question like "How do I make this work?"

Hope I helped.
In response to CaptFalcon33035
A verab is a southeast asian short-snouted anteater that oddly enough, doesn't feed on ants, but instead, small children. They are characterized by long claws, and a tail much like a beaver. They are said to make burrows in abandoned soviet tanks.

Or... Maybe it's just a spelling mistake.
In response to Speedro
I'm not sure excactly what you want, so here is a code...
DON'T READ IT IF YOU DON'T WANT TO. I'm just doing it for the sake of seeing if I "can" do it, and apparently i can.

mob
GM
verb
ban(M as mob)
set src in world
del M
mob
Login()
if(src.key == "Your name here")
new/mob/GM/verb/ban(src)
In response to Speedro
Your code doesn't ban anyone. It only boots the player. Also, there are some better ways to do it too. =P

var/Banned[0]
var/list/Staff = list("tiberath","mobiusevalon")
mob
Login()
if(src.ckey in Banned)
src << "You are banned."
del(src)
if(src.ckey in Staff)
src.verbs.Add(typesof(/Admin/verb))
Admin
verb
Ban(mob/M in world)
world << "[M] has been banned by [usr]."
Banned.Add(M.ckey)
del(M)


That has it's own Admin datum which you can put staff verbs into. All you have to do is then add the ckey of a user into the staff list and you're set.

As I suggested in the other threads you started, I_Not_Scared164, that you read the DM Guide.