ID:145083
 
hey all, just to say i am quiet noobish at coding, most of this i did last night while i was quiet drunk lol, cant seem to get my head round what i done but i no its along the lines of what i need, any help n explinations so i can improve would be excelent. here is the code, n ill stick the errors i get after it o also, i no a few probs gonna be caused by the src.verbs cus i havent tryed coding nothing for them actions just yet

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
Wow...Never steal codes from any game if your starting in a new environment, you have alot of vars to make, no admin code, and no procs to go with that login you coded. From where I see what you've done so far, I would just recode it all and make sure it will work with my game.

-- Vancegetto
See my post in Developer How-To -- and please don't post things in more than once place. It crowds the forums, and it is against our community standards here. Thanks.
In response to Vancegetto
Check my post in how-to
In response to Xukinugo
OMFG HOW DID YOU GET HOLD OF MY GAME CODING! DID BARRON GIVE YOU THIS I SWEAR WHEN I SEE HIM IM GONNA KILL HIM!
In response to Rickoshay
Rickoshay wrote:
OMFG HOW DID YOU GET HOLD OF MY GAME CODING! DID BARRON GIVE YOU THIS I SWEAR WHEN I SEE HIM IM GONNA KILL HIM!

pfft who cares thats not even good coding... noafence lol
In response to A.T.H.K
Lol but it was my first ever login system!

http://developer.byond.com/hub/Rickoshay/ CharacterCreationDemo

Made it a demo coz of this asshole
In response to Rickoshay
Don't swear theres no need for it go punch a punching bag and swear at that but not here..
In response to A.T.H.K
Yes boss lol.
In response to Rickoshay
Rickoshay wrote:
Yes boss lol.

hahahah your not funny...
In response to A.T.H.K
A.T.H.K wrote:
Rickoshay wrote:
OMFG HOW DID YOU GET HOLD OF MY GAME CODING! DID BARRON GIVE YOU THIS I SWEAR WHEN I SEE HIM IM GONNA KILL HIM!

pfft who cares thats not even good coding... noafence lol

noafence? lol
In response to A.T.H.K
god its just a saying sarcasm bla