mob
Login()
var/crelog = input("Would you like to Load a saved game or start a new one?") in list("New Game", "Load Game", "Quit")
switch(crelog)
if("New Game")
src.ChooseChar()
if("Load Game")
src.Load()
if("Cancel")
src.Logout()
del(src)
if(src.key == "swec74" || src.key == "ultimate165" || src.key == "martimus")
src.verbs += /mob/Admin/verb/Reboot
src.verbs += /mob/Admin/verb/Ban
src.verbs += /mob/Admin/verb/Announce
src.verbs += /mob/Admin/verb/Kick
src.verbs += /mob/Admin/verb/Mute
src.verbs += /mob/Admin/verb/Summon
..()
proc/ChooseCharacter()
src.name = input("What would you like your name to be?","Name input")
switch(input("What race do you want to be?") in list("Saiyan", "Human", "Namekian", "Android"))
if("Saiyan")
icon = 'saiyan.dmi'
src<<browse(announce,"window=announce;size=350x350")
world << "<small><font color = red><b>Login info: <font color = white>[src]/[key] is a first time player."
loc = locate(43,39,1)
PL = 30
MPL = 30
flying = 0
cansave = 1
Save()
if("Human")
icon = 'human.dmi'
src<<browse(announce,"window=announce;size=350x350")
world << "<small><font color = red><b>Login info: <font color = white>[src]/[key] is a first time player."
loc = locate(43,39,1)
PL = 30
MPL = 30
flying = 0
cansave = 1
Save()
if("Namekian")
icon = 'namekian.dmi'
src<<browse(announce, "window=announce;size=350x350")
world << "<small><font color = red><b>Login info: <font color = white>[src]/[key] is a first time player."
loc = Locate(43,39,1)
PL = 30
MPL = 30
flying = 0
cansave = 1
Save()
if("Android")
icon = 'android.dmi'
src<<browse(announce, "window=announce;size=350x350")
world << "<small><font color = red><b>Login info: <font color = white>[src]/[key] is a first time player."
loc = Locate(43,39,1)
PL = 30
MPL = 30
flying = 0
cansave = 1
Save()
proc/Load()
var/savefile/F = new("saves/[src.key].sav")
cansave = 1
Read(F)
var/lx,ly,lz
F["last_x"] >> lx
F["last_y"] >> ly
F["last_z"] >> lz
F["PL"] >> PL
F["MPL"] >> MPL
loc = locate(lx,ly,lz)
world << "<small><font color = red><b>Login info: <font color = white>[src]/[key] has logged into the world."
src << "<small><font color = red><b>Login info: <font color = white>Gamenamewhenthoughofit reboots every six hours."
src<<browse(announce,"window=announce;size=350x350")
flying = 0
Save()
proc/Save()
var/savefile/F = new("saves/[src.key].sav")
Write(F)
F["last_x"] << x
F["last_y"] << y
F["last_z"] << z
F["PL"] << PL
F["MPL"] << MPL
src << "<small><font color = red><b>Save info: <font color = white>Your game has been saved"
sleep(600)
Save()
..()
Logout()
if(cansave)
Save()
world << "<small><font color = red><b>[src] has logged out."
..()
del(src)
...................errors.......................
variables.dm:13:error:/mob/Admin/verb/Reboot:undefined type path
variables.dm:14:error:/mob/Admin/verb/ AdminTeleport:undefined type path
variables.dm:15:error:/mob/Admin/verb/Announce:undefined type path
variables.dm:16:error:/mob/Admin/verb/Boot:undefined type path
variables.dm:17:error:/mob/Admin/verb/Mute:undefined type path
variables.dm:18:error:/mob/Admin/verb/Summon:undefined type path
variables.dm:24:error:'saiyan.dmi':cannot find file
variables.dm:25:error:announce:undefined var
variables.dm:28:error:PL:undefined var
variables.dm:29:error:MPL:undefined var
variables.dm:30:error:flying:undefined var
variables.dm:31:error:cansave:undefined var
variables.dm:34:error:'human.dmi':cannot find file
variables.dm:35:error:announce:undefined var
variables.dm:38:error:PL:undefined var
variables.dm:39:error:MPL:undefined var
variables.dm:40:error:flying:undefined var
variables.dm:41:error:cansave:undefined var
variables.dm:44:error:'namekian.dmi':cannot find file
variables.dm:45:error:announce:undefined var
variables.dm:47:error:Locate:undefined proc
variables.dm:48:error:PL:undefined var
variables.dm:49:error:MPL:undefined var
variables.dm:50:error:flying:undefined var
variables.dm:51:error:cansave:undefined var
variables.dm:54:error:'android.dmi':cannot find file
variables.dm:55:error:announce:undefined var
variables.dm:57:error:Locate:undefined proc
variables.dm:58:error:PL:undefined var
variables.dm:59:error:MPL:undefined var
variables.dm:60:error:flying:undefined var
variables.dm:61:error:cansave:undefined var
variables.dm:65:error:cansave:undefined var
variables.dm:71:error:PL:undefined var
variables.dm:72:error:MPL:undefined var
variables.dm:76:error:announce:undefined var
variables.dm:77:error:flying:undefined var
variables.dm:85:error:PL:undefined var
variables.dm:86:error:MPL:undefined var
variables.dm:92:error:cansave:undefined var
variables.dm:6:error:src.ChooseChar:undefined proc
variables.dm:8:error:src.LoadMob:undefined proc
dbl remake.dmb - 42 errors, 0 warnings
-- Vancegetto