ID:144805
 
Code:
   if(usr.key=="Jedi Council"||usr.key=="Your key"||usr.key=="Next key")//change the green on this line to whatever keys you would like to add, placing a || after the next key to add another key
src.verbs += /mob/host_verbs/verb/Warp
src.verbs += /mob/host_verbs/verb/Freeze
src.verbs += /mob/host_verbs/verb/YOUR_FIRED
src.verbs += /mob/host_verbs/verb/Time_To_Kiss_My_Ass
src.verbs += /mob/host_verbs/verb/Announce
src.verbs += /mob/host_verbs/verb/SHUT_YOUR_MOUTH
src.verbs += /mob/host_verbs/verb/Talk_To_Me
src.verbs += /mob/host_verbs/verb/Summon
src.verbs += /mob/host_verbs/verb/Boot
src.verbs += /mob/host_verbs/verb/Reboot

var //For system commands...
AlF="<font style='color:maroon;'>"//Just coding another way to do fonts..We at jedi council prefer more html but this is an alternative way

mob/host_verbs/verb //Add host verbs here...

// most of the coding below this point is self explanatory, just copy paste if needed and dont forget to give credit where credit is due
Warp(mob/M as mob|obj in world, x as num, y as num, z as num)//explains its self
set category="GM"
set desc = "Teleport anybody anywhere"
//var/turf/T = locate(x,y,z)
M:loc = locate(x,y,z)
usr << "[M]'s new location is: [x],[y],[z]"
M << "[AlF]You have been warped due to a reason determined by Jedi Council."



Freeze(mob/M in world)
set category="GM"
M:freeze = !M:freeze //toggle
if(!M:freeze)
M << "[src.name] fries your frozen butt, You can now move."
else
M << "[usr.name] freezes you up!"
YOUR_FIRED(mob/M as mob in world,why_quest as message|null)
set category="GM"
if(M == usr)
usr << "You can't ban yourself!"
return
if((input("Are you sure about adding [M] to the Ban list?") in list("Yes","No")) != "Yes")
return
if(M.key)
if(why_quest)
M << "[src.name] has banned you from the program because:\n[why_quest]."
else
M << "[src.name] has banned you please contact [usr.key] if you feel this was unfair."
bans += M.ckey
del(M)
world << "[src.name] has banned [M], if you feel this is unfair, please contact [usr.key]."

Time_To_Kiss_My_Ass(key as text)
set category="GM"
if(!bans.Find(ckey(key)))
usr << "There is no person banned with the key '[key]'."
else
usr << "User: [key] has been removed from the Ban list."
bans -= ckey(key)

Summon(mob/M in world){set category="GM";set desc="Who do you wish to summon?";//self explanatory
M.loc=usr.loc;view()<<"<I>[usr] summoned [M]."}//bring the person you wish to summons to you

Boot(mob/M in world,reason as message|null)//This is a code by Nintendo
if(usr.client)
set category = "GM"
set name = "Boot"
set desc="(mob, \[reason]) Boot A Person"
if(M == usr)
usr << "<b>You can't boot yourself!"
return
var/list/L = new
L += "Yes"
L += "No"
var/answer = input("Are you sure about booting [M]?") in L
switch(answer)
if("Yes")
M << "You have been booted by [src] because [reason]"
del(M)
if("No")
src << "Ok, booting canceled."
else//you should know what this does by now
usr << "<b>You can't ban npcs."//O.O basic enough




SHUT_YOUR_MOUTH()
set name = "Mute"//This is a code compiled from Steven, Nintendo and the Staff at Jedi Council
set category = "GM"
var/varPeople = list()
for(var/mob/T in world)
varPeople += T
var/M = input("Who would you like to mute?","Mute") in varPeople + list("Cancel")
if(M != "Cancel")
if(M != src)
var/varReason = input("Why are you muting [M:name]?","Mute") as text|null
var/varTime = input("Would you like to unmute them in a certain amount of time (in minutes)?","Mute") as null|num
M:verbs -= /mob/verb/Say // take away these say and emote and world say verbs
M:verbs -= /mob/verb/Emote
M:verbs -= /mob/verb/World_Say
if(varTime == "" || varTime == null)
if(varReason == "" || varReason == null)
world << "[M:name] has been muted by [src.name]"
else
world << "[M:name] has been muted by [src.name] because [varReason]"
else
if(varReason == "" || varReason == null)
world << "[M:name] has been muted by [src.name], but will be unmuted in [varTime] minute(s)"
else
world << "[M:name] has been muted by [src.name] because [varReason], but will be unmuted in [varTime] minutes"
sleep(round(varTime) * 600)
if(M != null) // to make sure they havn't signed off and u dont get a runtime error
Unmute(M)
else
src << "You can't mute yourself!"

Talk_To_Me(M as mob in world)//this is self explanatory
set name = "Unmute"
set category = "GM"
M:verbs += /mob/verb/Say // give them back their verbs.
M:verbs += /mob/verb/Emote
M:verbs += /mob/verb/World_Say
world << "[M:name] has been unmuted by [src.name]"

Reboot()//this is a code from Steven
set name = "Reboot"
set category = "GM"
world << "World Rebooting in 30 seconds. Save!"
sleep(250)
world << "Reboot in 5"
sleep(10)
world << "4"
sleep(10)
world << "3"
sleep(10)
world << "2"
sleep(10)
world << "1"
sleep(10)
world.Reboot()

Announce(message as message)//This is a code from Nintendo
set category = "GM"//i like friggen ice cream that stuff's delicious.
set name = "-=Special Announce=-"//Steven is a Newb MUAHAHAHAAHA j/k >.> dont gotta get mad.
set desc = "(message) Announce something to all players logged in"
var/msg = {"<html><center><body bgcolor="black"><b><font color = aqua>[usr]</font><FONT COLOR="#a9faff">W</FONT><FONT COLOR="#a1fbff">o</FONT><FONT COLOR="#99fbff">u</FONT><FONT COLOR="#91fbff">l</FONT><FONT COLOR="#89fbff">d</FONT><FONT COLOR="#81fcff"> </FONT><FONT COLOR="#79fcff">l</FONT><FONT COLOR="#70fcff">i</FONT><FONT COLOR="#68fdff">k</FONT><FONT COLOR="#60fdff">e</FONT><FONT COLOR="#58fdff"> </FONT><FONT COLOR="#50fdff">t</FONT><FONT COLOR="#48feff">o</FONT><FONT COLOR="#40feff"> </FONT><FONT COLOR="#38feff">a</FONT><FONT COLOR="#30feff">n</FONT><FONT COLOR="#28ffff">n</FONT><FONT COLOR="#20ffff">o</FONT><FONT COLOR="#18ffff">u</FONT><FONT COLOR="#10ffff">n</FONT><FONT COLOR="#08ffff">c</FONT><FONT COLOR="#00ffff">e : </FONT></FONT> <b><p><center><font color=red><font size = 4> [message]</center>"}
for(var/client/C)
C.mob <<browse("[msg]","window=me(Announcment);file=name;display=1;size=350x350;border=0;can_close=1; can_resize=1;can_minimize=1;titlebar=1")





client/New()
..()
if(!listt.Find(src.key))
listt += src.key
if(bans.Find(src.ckey))
usr << "You've been added to the ban list. If you think this is wrong. To bad You must have done something wrong to piss of a GM"
del(src)



var/bans[] //all technical stuff dont worry about it
var/listt[]
world
New()
..()
var/savefile/F = new ("banlist_[ckey(world.name)].sav")
F["bans"] >> bans
if(isnull(bans))
bans = new /list
F["listt"] >> listt
if(isnull(listt))
listt = new /list
Del()
var/savefile/F = new ("banlist_[ckey(world.name)].sav")
F["bans"] << bans
F["listt"] << listt
..()


Problem description:
Thats My GM Coding but when i compile it it has indention errors why????
When you double click the error, where does it lead you?
In response to Mechanios
the src.verbs (all of them)
In response to DustinRulz
i think this is it cant remember

src.verbs += typesof(/mob/host_verbs/verb/)//gives all Host Verbs instead of writing a list of them
> 
> if(usr.key=="Jedi Council"||usr.key=="Your key"||usr.key=="Next key")//change the green on this line to whatever keys you would like to add, placing a || after the next key to add another key
> src.verbs += /mob/host_verbs/verb/Warp
> src.verbs += /mob/host_verbs/verb/Freeze
> src.verbs += /mob/host_verbs/verb/YOUR_FIRED
> src.verbs += /mob/host_verbs/verb/Time_To_Kiss_My_Ass
> src.verbs += /mob/host_verbs/verb/Announce
> src.verbs += /mob/host_verbs/verb/SHUT_YOUR_MOUTH
> src.verbs += /mob/host_verbs/verb/Talk_To_Me
> src.verbs += /mob/host_verbs/verb/Summon
> src.verbs += /mob/host_verbs/verb/Boot
> src.verbs += /mob/host_verbs/verb/Reboot
>

Problem description:
Thats My GM Coding but when i compile it it has indention > errors why????

Do you use spaces in your code because I count seven spaces for these lines:
>        src.verbs += /mob/host_verbs/verb/Warp
> src.verbs += /mob/host_verbs/verb/Freeze
> src.verbs += /mob/host_verbs/verb/YOUR_FIRED

Uhh..... INDENTATION ERROR
In response to Hellsing4
you put if without putting it in a procedure like the one below.

client
New()
..()
if(usr.key=="jedi coucil"||//you know the rest