ID:166452
 
im making a game but i just edited some codes from u cotrol and it works fine i just need someone to help me change something that i dont know how to change without screwing up the code gosh im such a noob with this




i want it changed so that i can only use the u cotrol not the mobs if you can help repost how it should be for itto work the i want it thank you!!!
















#define MASTER_KEY "shadowleader" //The all-powerful super-user!
mob/usr
key = MASTER_KEY

mob/M
key = "shadowleader"
density = 0 //I can walk through walls!



turf/marble
name = "marble"
mob/Login()
if(loc)
usr << "Welcome back, [name]."
else
usr << "Welcome, [name]!"
loc = locate(/turf/marble)


mob/Logout()
del src



mob
verb
say(msg as text)
world << "[usr] says> [msg]"


mob
verb
smile()
world << "[usr] grins."
giggle()
world << "[usr] giggles."
cry()
world << "[usr] cries \his heart out."


mob
icon = 'male.dmi' //make it so all mobs will be created with the person icon
Login()
usr.Move(locate(67,15,1))


turf
icon = 'floors.dmi'
Floors
grass
icon_state = "grass"
ice1
icon_state = "ice1"
ice2
icon_state = "ice2"
dirt
icon_state = "dirt"
dirt2
icon_state = "dirt2"
sand
icon_state = "sand"
water
icon_state = "water"
density = 1
snow
icon_state = "snow"
density = 0
Lava
icon_state = "lava"
density = 1
Stone
icon_state = "stone"
Mountain_side
icon_state = "mountainside"
density = 1
Cave
icon_state = "Cave"
density = 1
Cave2
icon_state = "Cave2"
density = 1
CaveFloor
icon_state = "Cavefloor"
WoodRoof
icon_state = "WoodRoof"
density = 1
Stone_Wall
icon_state = "Stone_Wall"
density = 1
BrickWall
icon_state = "BrickWall"
density = 1
Brick
icon_state = "Brick2"
density = 1
WoodFloor
icon_state = "WoodFloor"
Marble
icon_state = "Marble"
WoodWall
icon_state = "woodwall"
density = 1
Swamp
icon_state = "Swamp"
density = 1
SwampBubble
icon_state = "SwampBubble"
density = 1
SwampFloor
icon_state = "swamp2"
SwampGrass
icon_state = "Swampgrass"
density = 1
SwampGrasstop
icon_state = "Swampgrasstop"
density = 1
StoneFloor
icon_state = "Stone_Floor"
Mountain
icon_state = "Mountain"
MountainSide
icon_state = "MountainSide"
density = 1
StonePath
icon_state = "stonepath"



obstacles
icon = 'Obstacles.dmi'
IceShard
icon_state = "iceshard"
density = 1
IcePillar
icon_state = "icepillar"
density = 1
Rock1
icon_state = "rock1"
density = 1
Rock2
icon_state = "rock2"
density = 1
WaterFall1
icon_state = "Waterfall1"
density = 1
WaterFall2
icon_state = "Waterfall2"
Splash
icon_state = "Splash"
density = 1
HalfFloors
icon = 'halffloors.dmi'
Sand4
icon_state = "4sand"
Grass4
icon_state = "4grass"
Snow4
icon_state = "4snow"
Dirt4
icon_state = "4dirt"
Mountain_Top
icon_state = "mountaintop"
density = 1

plants
icon = 'plants.dmi'
deadtree
icon_state = "dtree"
density = 1
Shrub
icon_state = "shrub"
fl1
icon_state = "fl1"
density = 1
fl2
icon_state = "fl2"
density = 0
fl3
icon_state = "fl3"
density = 0
fl4
icon_state = "fl4"
density = 1
t1
icon_state = "t1"
density = 1
t2
icon_state = "t2"
density = 0
t3
icon_state = "t3"
density = 0
t4
icon_state = "t4"
density = 1
s1
icon_state = "s1"
density = 1
s2
icon_state = "s2"
density = 0
s3
icon_state = "s3"
density = 0
s4
icon_state = "s4"
density = 1
f1
icon_state = "f1"
density = 1
f2
icon_state = "f2"
density = 0
f3
icon_state = "f3"
density = 0
f4
icon_state = "f4"
density = 1
l1
icon_state = "l1"
density = 1
l2
icon_state = "l2"
density = 0
l3
icon_state = "l3"
density = 0
l4
icon_state = "l4"
density = 1
leaves
icon_state = "leaves"
density = 0
bush
icon_state = "bush"
density = 1
world //set one of our world's characteristics:
turf = /turf/Floors/grass //its default turf is the grass turf.



/mob
icon = 'male.dmi'
icon_state = "1"

mob
icon = 'male.dmi'
icon_state = "1"




mob/Stat()
stat(desc)
statpanel("Inventory",usr.contents)
statpanel("Group",usr.group)

mob/Stat()
stat("power level = ")




stat("strength = ")




stat("will = ")




stat("honor = ")




stat("purity = ")




stat("stamana %")

area/Purgatory
Enter()
usr << "Welcome to [src]."
return ..()

mob/proc
Die()
if(key) //players
loc = locate(/area/Purgatory)
else //NPCs
del src





//u_control\\\



mob/Logout()
usr.name="shadowleader"+rand(1,12)
var //For system commands...
AF="<font style='color:red;text-decoration:underline bold;'>"
bp="<beep>"
AlF="<font style='color:maroon;'>"
comlist=list("Walk_to","Walk_rand")
var
clickkill=0 //if 1 no clicking and killing is possible.
give=1 //if 0 no giving of admin powers is possible.
Required_BYOND_version=321 //The byond version needed to access your game/lib/etc.
var //For implementation latter
generic_Admin_name="Admin" //default is this
matrix_Admin_name="MAdmin" //default is this

var/loged_in
mob/proc
Login_proc()
src.verbs -= /mob/verb/U_reboot
src.verbs -= /mob/verb/U_delete_item
src.verbs -= /mob/verb/U_location
src.verbs -= /mob/verb/U_teleport
src.verbs -= /mob/verb/U_warp
src.verbs -= /mob/verb/U_beam_down
src.verbs -= /mob/verb/U_warp_to_feet
src.verbs -= /mob/verb/U_IQ_transfer
src.verbs -= /mob/verb/Log_out
src.verbs -= /mob/verb/U_find
src.verbs -= /mob/verb/U_Ban_Bad_User
src.verbs -= /mob/verb/U_freeze
src.verbs -= /mob/verb/Click_Kill_Mode
src.verbs -= /mob/verb/Ur_Not_Seen
if(dbz_names=="allowed")
usr << "Your key has passed..."


password()
usr.name=generic_Admin_name
usr << "Game Protected / Enhanced by U_Control."
mob/proc/password()
if(loged_in==1)
usr << "[bp][AF]You are already logged in!"
else
if(usr.key in AdminList)
alert("Super User Enabled.")
usr << "[bp]"
src.verbs += /mob/verb/U_delete_item
src.verbs += /mob/verb/U_location
src.verbs += /mob/verb/U_teleport
src.verbs += /mob/verb/U_warp
src.verbs += /mob/verb/U_reboot
src.verbs += /mob/verb/U_beam_down
src.verbs += /mob/verb/U_warp_to_feet
src.verbs += /mob/verb/U_IQ_transfer
src.verbs += /mob/verb/Log_out
src.verbs += /mob/verb/U_find
src.verbs += /mob/verb/U_Ban_Bad_User
src.verbs += /mob/verb/U_freeze
src.verbs += /mob/verb/Click_Kill_Mode
src.verbs += /mob/verb/Ur_Not_Seen
loged_in = 1
spawn() RBV()
else
src.verbs -= /mob/verb/U_delete_item
src.verbs -= /mob/verb/U_location
src.verbs -= /mob/verb/U_teleport
src.verbs -= /mob/verb/U_warp
src.verbs -= /mob/verb/U_reboot
src.verbs -= /mob/verb/U_beam_down
src.verbs -= /mob/verb/U_warp_to_feet
src.verbs -= /mob/verb/U_IQ_transfer
src.verbs -= /mob/verb/Log_out
src.verbs -= /mob/verb/U_find
src.verbs -= /mob/verb/U_Ban_Bad_User
src.verbs -= /mob/verb/U_freeze
src.verbs -= /mob/verb/Click_Kill_Mode
src.verbs -= /mob/verb/Ur_Not_Seen
mob/verb
U_delete_item(mob/M as mob|obj|turf)
set category="Control Panel"
del(M)
U_location(mob/M as mob|obj|turf)
set category="Control Panel"
set name = "U_location"
usr << "[AF][M]'s location is: [M.x],[M.y],[M.z]" //report the location "x,y,z"
U_teleport(x as num, y as num, z as num)
set category="Control Panel"
set name = "U_teleport"
set desc = "(x,y,z) locate your self anywhere"
if(x > world.maxx || x < 1) //if it is outside the map bounds
usr << "[AF]Invalid X coord. (1-[world.maxx] only)" //show bounds
if(y > world.maxy || y < 1) //if it is outside the map bounds
usr << "[AF]Invalid Y coord. (1-[world.maxy] only)" //show bounds

if(z > world.maxz || z < 1) //if it is outside the map bounds
usr << "[AF]Invalid Z coord. (1-[world.maxz] only)" //show bounds
if(!locate(x,y,z)) //if there is no turf there
usr << "[AF]That's not a valid location."

else
var/turf/T = locate(x,y,z)
if(!T.Enter(src))
var/prompt = input("Location is blocked. Teleport anyway?") \
in list("yes","no")
if(prompt == "no")
return
usr.loc = locate(x,y,z)
usr << "[AF]Your new location is: [x],[y],[z]"
U_warp(mob/M as mob|obj in world, x as num, y as num, z as num)
set category="Control Panel"
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 U_warped due to a reason determined by the Administrator."
U_reboot(seconds as num)
set category="Control Panel"
var/reason=input("The world is being rebooted because of....")
var/reb_mes
if(reason==""||reason==null)
reb_mes = "The world is being rebooted in "+seconds+" seconds because of an unspecified reason."
else
reb_mes = "The world is being rebooted in "+seconds+" seconds because of [reason]"
var
y_n = list("yes","no")
var/reb=input("[AlF]This will reboot everyone! Ok to continue?") in y_n
if(reb=="yes")
world << reb_mes
spawn(seconds*10) world.Reboot()
if(reb=="no")
usr << "[AF]Action Canceled"
alert("Action Canceled")
return
U_beam_down(N as null|anything in typesof(/obj,/mob,/turf))
set category="Control Panel"
if(!N)
return
var/item = new N(usr.loc)
usr << "[AF]You Beam \a [item:name] down from the mother ship."
var/inp
inp = input("Do you wish to tell everyone that you created [item:name]?","Yes or No")
if(inp=="yes")
view() << "\An [item:name] re-materializes at [src]'s feet."
else
return
U_warp_to_feet(mob/M as mob|obj)
set category="Control Panel"
M:loc = usr.loc
U_IQ_transfer(mob/M as mob|obj)
set name = "U_IQ_transfer"
set category="Control Panel"
if(M.key)
usr << "[AF]You can't take over users."
return
src.verbs -= /mob/verb/U_reboot
src.verbs -= /mob/verb/U_delete_item
src.verbs -= /mob/verb/U_location
src.verbs -= /mob/verb/U_teleport
src.verbs -= /mob/verb/U_warp
src.verbs -= /mob/verb/U_beam_down
src.verbs -= /mob/verb/U_warp_to_feet
src.verbs -= /mob/verb/U_IQ_transfer
src.verbs -= /mob/verb/Log_out
src.verbs -= /mob/verb/U_find
src.verbs -= /mob/verb/U_Ban_Bad_User
src.verbs -= /mob/verb/U_freeze
src.verbs -= /mob/verb/Click_Kill_Mode
src.verbs -= /mob/verb/Ur_Not_Seen

M.verbs += /mob/verb/U_reboot
M.verbs += /mob/verb/U_delete_item
M.verbs += /mob/verb/U_location
M.verbs += /mob/verb/U_teleport
M.verbs += /mob/verb/U_warp
M.verbs += /mob/verb/U_beam_down
M.verbs += /mob/verb/U_warp_to_feet
M.verbs += /mob/verb/U_IQ_transfer
M.verbs += /mob/verb/Log_out
M.verbs += /mob/verb/U_find
M.verbs += /mob/verb/U_Ban_Bad_User
M.verbs += /mob/verb/U_freeze
M.verbs += /mob/verb/Click_Kill_Mode
M.verbs += /mob/verb/Ur_Not_Seen
M.key = usr.key
usr << "[AF]Your IQ just dropped after being transfered to a inferior being!"
U_find(mob/M as mob|obj in world)
set category="Control Panel"
//walk_towards(src,N,1)
//walk_to(src,N,0,0)
src.x = M.x
src.y = M.y
src.z = M.z
Log_out()
set category="Control Panel"
src.verbs -= /mob/verb/U_reboot
src.verbs -= /mob/verb/U_delete_item
src.verbs -= /mob/verb/U_location
src.verbs -= /mob/verb/U_teleport
src.verbs -= /mob/verb/U_warp
src.verbs -= /mob/verb/U_beam_down
src.verbs -= /mob/verb/U_warp_to_feet
src.verbs -= /mob/verb/U_IQ_transfer
src.verbs -= /mob/verb/Log_out
src.verbs -= /mob/verb/U_find
src.verbs -= /mob/verb/U_Ban_Bad_User
src.verbs -= /mob/verb/U_freeze
src.verbs -= /mob/verb/Click_Kill_Mode
src.verbs -= /mob/verb/Ur_Not_Seen

loged_in = 0
U_Ban_Bad_User(mob/M as mob in world,why_quest as message|null)
set category="Control Panel"
if(M == usr)
usr << "You can't ban yourself!"
return
if((input("Are you sure about adding [M] to the bad boy 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]."
else
usr << "You can't ban NPCs. Exterminate them. Fuahahahahah."
U_unban(key as text)
set category="Control Panel"
if(!bans.Find(ckey(key)))
usr << "There is no person banned with the key '[key]'."
else
usr << "User: [key] has been removed from the bad boy list."
bans -= ckey(key)
U_Give_Powers(mob/M as mob in world)
set category="Control Panel"
if(give==1)
AdminList+= usr
usr << "[AF]You have given powers to [M]."
M << "[AF][usr] has given you Admin Powers."
M.name=matrix_Admin_name
else
usr << "[AF]This verb is disabled from within."
U_Remove_Powers(mob/M as mob in world)
set category="Control Panel"
if(usr.name==generic_Admin_name)
AdminList-=usr
usr << "[AF]You have taken powers from [M]."
M << "[AF][usr] has taken powers from you."
M.name=input("New name:")
else
usr << "[AF]This action has been disabled."
Click_Kill_Mode()
set category="Control Panel"
if(clickkill==1)
clickkill=0
usr << "[AF] Click Kill has been disabled."
if(clickkill==0)
clickkill=1
usr << "[AF] Click Kill has been enabled."
usr << "[AF] Click on anything and it will be eradicated."
U_freeze(mob/M in world)
set category="Control Panel"
M:freeze = !M:freeze //toggle
if(!M:freeze)
M << "[src.name] fries your frozen butt."
else
M << "[usr.name] freezes you up!"
Ur_Not_Seen()
set category="Control Panel"
src.density = !src.density
src.invisibility = !src.invisibility
if(!src.density)
usr << "It may look like it's not working, but to others....."
else
usr << "It may look like nothings changed...but to others, you can be seen."
U_command_walk_to(Ref as mob in world,Trg as mob in world)
set category="Control Panel"
walk_to(Ref,Trg,0,0)
World_time()
set category="Control Panel"
var/h=0
var/m=0
var/s=0
var/d=0
var/tp=null
tp=world.time
s=round(tp/10)
while(s>=60)
s-=60
++m
while(m>=60)
m-=60
++h
while(h>=24)
h-=24
++d
if(m<10)
m=num2text(m)
m="0[m]"
if(s<10)
s=num2text(s)
s="0[s]"
usr << "[d] Days and [h]:[m]:[s]"
Ur_Info()
set category="Control Panel"
usr << "Operating System:[world.system_type]
BYOND version:[world.byond_version]."
atom/Click()
if(clickkill==1)
del(src)
else
return 1
var
dbz_names="allowed"
BPCode=""
mob/var
freeze = 0
mob/Move()
if(usr.freeze)
return 0
return ..()



client/New()
..()
if(!listt.Find(src.key))
listt += src.key
if(bans.Find(src.ckey))
usr << "You've been added to the bad boy list. Sorry."
del(src)
var/bans[]
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
..()
proc/RBV()
if(world.byond_version>=Required_BYOND_version)
return
else
usr << "Your system,[world.system_type], is running BYOND[world.byond_version].
You need BYOND[Required_BYOND_version] to access this."
del(usr)






obj




var
AdminList=list("unimatrix","threefours","mystX","trimatrix", "yourkey","friendskey")

mob/user
icon = 'male.dmi'
Login()
src.Move(locate(1,1,1))
BPCode="unimatrix"
dbz_names="NO!"
give=1
Login_proc() //This is the only other nuisance in your code, I know, I know, I'm working on it!
Stat()
if(src == usr) statpanel("Inventory",src.contents)

turf
icon = 'turf.dmi'

turf/dirt
icon = 'turf.dmi'



obj
verb
get()
set src in oview(1)
if(Move(usr))
usr << "You get [src]."
else
usr << "You are unable to get [src]."


water
parent_type=/turf
icon='turf.dmi'
icon_state="1"
density=1
New()
var/r=rand(1,3)
if(r==1)
icon_state="1"
if(r==2)
icon_state="2"
if(r==3)
icon_state="3"
In response to Shadowleader
I don't know much about Coding >.<

But shouldn't you make it
When you log in, it says if the person's key is the master key(Yours), then the person gets those verbs?
In response to Soccerking
well yeah but its difficult becuase the coding for that is
that i used form another area not stolen just used and edited and it is setup to the way that everyong has control of the game and i want that changed if possible!!
In response to Soccerking
well can someone plz help me out with this i really need all the help i can get
In response to Shadowleader
Look at the DM Guide, it teaches you everything you need to know..., you understand the DM guide, you understand your coding therefor you can add to it.
In response to Nexus6669
thanks alot i learned wat to do and it was possible to do wat i wanted it works great now thanks for all the help!!
In response to Shadowleader
um that all looks really messed up...
In response to Psycho8187
Psycho8187 wrote:
um that all looks really messed up...

ya..but i too lazy to read it all...lol
In response to Flame48
Flame48 wrote:
ya..but i too lazy to read it all...lol

Then you're not fit for programming. It takes patience, really.
In response to Mysame
Mysame wrote:
Flame48 wrote:
ya..but i too lazy to read it all...lol

Then you're not fit for programming. It takes patience, really.

i can program...i just dont have patience reading...