ID:146215
 
Ive created a saga coding for my game but i get these errors for some particular reason
bsystem.dm:3:error:src.race:duplicate definition
bsystem.dm:3:error:"Raditz1":duplicate definition
bsystem.dm:3:error:== :instruction not allowed here
bsystem.dm:3:error::duplicate definition
bsystem.dm:19:error:src.race:duplicate definition
bsystem.dm:19:error:"Buu (NPC)":duplicate definition
bsystem.dm:19:error:== :instruction not allowed here
bsystem.dm:19:error::duplicate definition
bsystem.dm:25:error:src.race:duplicate definition
bsystem.dm:25:error:"Vegeta (NPC)":duplicate definition
bsystem.dm:25:error:== :instruction not allowed here
bsystem.dm:25:error::duplicate definition
bsystem.dm:31:error:nappadead:duplicate definition
bsystem.dm:31:error:1:duplicate definition
bsystem.dm:31:error:== :instruction not allowed here
bsystem.dm:31:error::duplicate definition
bsystem.dm:49:error:src.race:duplicate definition
bsystem.dm:49:error:"Nappa (NPC)":duplicate definition
bsystem.dm:49:error:== :instruction not allowed here
bsystem.dm:49:error::duplicate definition
bsystem.dm:55:error:vegetadead:duplicate definition
bsystem.dm:55:error:1:duplicate definition
bsystem.dm:55:error:== :instruction not allowed here
bsystem.dm:55:error::duplicate definition
bsystem.dm:73:error:src.race:duplicate definition
bsystem.dm:73:error:"Ginew Force":duplicate definition
bsystem.dm:73:error:== :instruction not allowed here
bsystem.dm:73:error::duplicate definition
bsystem.dm:79:error:ginewleft:duplicate definition
bsystem.dm:79:error:0:duplicate definition
bsystem.dm:79:error:== :instruction not allowed here
bsystem.dm:79:error::duplicate definition
bsystem.dm:89:error:src.race:duplicate definition
bsystem.dm:89:error:"Lord Frieza":duplicate definition
bsystem.dm:89:error:== :instruction not allowed here
bsystem.dm:89:error::duplicate definition
bsystem.dm:101:error:src.race:duplicate definition
bsystem.dm:101:error:"Frieza":duplicate definition
bsystem.dm:101:error:== :instruction not allowed here
bsystem.dm:101:error::duplicate definition
bsystem.dm:102:error:src.state:duplicate definition
bsystem.dm:102:error:"Normal":duplicate definition
bsystem.dm:102:error:== :instruction not allowed here
bsystem.dm:102:error::duplicate definition
bsystem.dm:114:error:src.state:duplicate definition
bsystem.dm:114:error:"Form-2":duplicate definition
bsystem.dm:114:error:== :instruction not allowed here
bsystem.dm:114:error::duplicate definition
bsystem.dm:126:error:src.state:duplicate definition
bsystem.dm:126:error:"Form-3":duplicate definition
bsystem.dm:126:error:== :instruction not allowed here
bsystem.dm:126:error::duplicate definition
bsystem.dm:138:error:src.state:duplicate definition
bsystem.dm:138:error:"Form-4":duplicate definition
bsystem.dm:138:error:== :instruction not allowed here
bsystem.dm:138:error::duplicate definition
bsystem.dm:151:error:src.state:duplicate definition
bsystem.dm:151:error:"Rebuilt":duplicate definition
bsystem.dm:151:error:== :instruction not allowed here
bsystem.dm:151:error::duplicate definition
bsystem.dm:157:error:kingkolddead:duplicate definition
bsystem.dm:157:error:1:duplicate definition
bsystem.dm:157:error:== :instruction not allowed here
bsystem.dm:157:error::duplicate definition
bsystem.dm:169:error:src.state:duplicate definition
bsystem.dm:169:error:"King-Kold":duplicate definition
bsystem.dm:169:error:== :instruction not allowed here
bsystem.dm:169:error::duplicate definition
bsystem.dm:175:error:friezadead:duplicate definition
bsystem.dm:175:error:1:duplicate definition
bsystem.dm:175:error:== :instruction not allowed here
bsystem.dm:175:error::duplicate definition
bsystem.dm:187:error:src.race:duplicate definition
bsystem.dm:187:error:"19":duplicate definition
bsystem.dm:187:error:== :instruction not allowed here
bsystem.dm:187:error::duplicate definition
bsystem.dm:193:error:jo1:duplicate definition
bsystem.dm:193:error:1:duplicate definition
bsystem.dm:193:error:== :instruction not allowed here
bsystem.dm:193:error::duplicate definition
bsystem.dm:207:error:src.race:duplicate definition
bsystem.dm:207:error:"20":duplicate definition
bsystem.dm:207:error:== :instruction not allowed here
bsystem.dm:207:error::duplicate definition
bsystem.dm:213:error:jo:duplicate definition
bsystem.dm:213:error:1:duplicate definition
bsystem.dm:213:error:== :instruction not allowed here
bsystem.dm:213:error::duplicate definition
bsystem.dm:227:error:src.race:duplicate definition
bsystem.dm:227:error:"16":duplicate definition
bsystem.dm:227:error:== :instruction not allowed here
bsystem.dm:227:error::duplicate definition
bsystem.dm:233:error:sixdead:duplicate definition
bsystem.dm:233:error:1:duplicate definition
bsystem.dm:233:error:== :instruction not allowed here
bsystem.dm:233:error::duplicate definition
bsystem.dm:234:error:sevendead:duplicate definition
bsystem.dm:234:error:1:duplicate definition
bsystem.dm:234:error:== :instruction not allowed here

Heres my Coding

mob
proc/Die()

usr.zenni += 2500
world << "<font color=red><b><u>[usr] killed Raditz!"
usr << "<b>You get 2500 zenni from that kill."
world << "<font color=lime><b>NEW SAGA: Vegeta-Napa"
saga = "vegeta"
sagarefresh()
var/vege = /mob/monsters/Vegeta
new vege(locate(122,28,1))
var/napp = /mob/monsters/Nappa
new napp(locate(122,29,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)

if(src.race == "Buu (NPC)")
usr.zenni += 5000
usr << "<b>You get 5000 zenni from that kill."
usr.maxpowerlevel += (rand(1,1000))
src.loc=locate(0,0,0)
src.random = rand(1,5)
if(src.race == "Vegeta (NPC)")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Vegeta!"
vegetadead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(nappadead == 1)
world << "<font color=lime><b>NEW SAGA: Ginew Force"
saga = "ginew"
sagarefresh()
var/gi = /mob/monsters/Ginew
new gi(locate(98,51,5))
var/gii = /mob/monsters/Gurudo
new gii(locate(84,54,5))
var/giii = /mob/monsters/Burter
new giii(locate(106,53,5))
var/giiii = /mob/monsters/Jeise
new giiii(locate(107,53,5))
var/giiiii = /mob/monsters/Recoom
new giiiii(locate(101,42,5))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Nappa (NPC)")
usr.zenni += 250000
nappadead = 1
sagarefresh()
world << "<font color=red><b><u>[usr] has killed Nappa!"
usr << "<b>You get 250000 zenni from that kill."
if(vegetadead == 1)
world << "<font color=lime><b>NEW SAGA: Ginew Force"
saga = "ginew"
sagarefresh()
var/gi = /mob/monsters/Ginew
new gi(locate(98,51,5))
var/gii = /mob/monsters/Gurudo
new gii(locate(84,54,5))
var/giii = /mob/monsters/Burter
new giii(locate(106,53,5))
var/giiii = /mob/monsters/Jeise
new giiii(locate(107,53,5))
var/giiiii = /mob/monsters/Recoom
new giiiii(locate(101,42,5))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Ginew Force")
usr.zenni += 250000
ginewleft -= 1
sagarefresh()
world << "<font color=red><b><u>[usr] has killed [src.name]!"
usr << "<b>You get 250000 zenni from that kill."
if(ginewleft == 0)
world << "<font color=lime><b>NEW SAGA: Frieza"
saga = "frieza"
var/fi = /mob/monsters/Lord_Frieza
new fi(locate(98,51,5))
sagarefresh()
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Lord Frieza")
sagarefresh()
world << "<font color=red><b><u>[usr] has <u></b>angered</u><b> [src.name]!"
world << "<font color=lime><b>Frieza goes to attack mode!"
world << "<font color=lime><i>FRIEZA: <u>Okay, kiddies, it's time to play!"
saga = "frieza1"
sagarefresh()
var/fi = /mob/monsters/Frieza
new fi(locate(usr.x,usr.y - 1,usr.z))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Frieza")
if(src.state == "Normal")
sagarefresh()
world << "<font color=red><b><u>[usr] has <u></b>angered</u><b> [src.name]!"
world << "<font color=lime><b>Frieza goes to Form-2!"
world << "<font color=lime><i>FRIEZA: <u>You're beggining to annoy me, play time's over!!"
saga = "frieza2"
sagarefresh()
var/fi = /mob/monsters/Frieza2
new fi(locate(usr.x,usr.y - 1,usr.z))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.state == "Form-2")
sagarefresh()
world << "<font color=red><b><u>[usr] has <u></b>angered</u><b> [src.name]!"
world << "<font color=lime><b>Frieza goes to Form-3!"
world << "<font color=lime><i>FRIEZA: <u>Enough! You will not survive me!!"
saga = "frieza3"
sagarefresh()
var/fi = /mob/monsters/Frieza3
new fi(locate(usr.x,usr.y - 1,usr.z))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.state == "Form-3")
sagarefresh()
world << "<font color=red><b><u>[usr] has <u></b>greatly angered</u><b> [src.name]!"
world << "<font color=lime><b>Frieza goes to his final form!!!"
world << "<font color=lime><i>FRIEZA: <u>Ah! You will now feel my TRUE POWER!!!"
saga = "frieza4"
sagarefresh()
var/fi = /mob/monsters/Frieza4
new fi(locate(usr.x,usr.y - 1,usr.z))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.state == "Form-4")
sagarefresh()
world << "<font color=red><b><u>[usr] has <u></b>destroyed</u><b> [src.name]!"
world << "<font color=lime><b>NEW SAGA: Frieza/Android"
saga = "frieza5"
sagarefresh()
var/fi = /mob/monsters/Frieza5
new fi(locate(113,28,1))
var/fii = /mob/monsters/King_Kold
new fii(locate(114,28,1))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.state == "Rebuilt")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Frieza!"
friezadead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(kingkolddead == 1)
world << "<font color=lime><b>NEW SAGA: Android"
saga = "android"
sagarefresh()
var/fi = /mob/monsters/Android19
new fi(locate(110,28,1))
var/fi2 = /mob/monsters/Android20
new fi2(locate(108,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.state == "King-Kold")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed King Kold!"
kingkolddead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(friezadead == 1)
world << "<font color=lime><b>NEW SAGA: Android"
saga = "android"
sagarefresh()
var/fi = /mob/monsters/Android19
new fi(locate(110,28,1))
var/fi2 = /mob/monsters/Android20
new fi2(locate(108,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "19")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Android 19!!"
jo = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(jo1 == 1)
world << "<font color=lime><b>Gero activated Androids 16, 17, and 18!!"
saga = "android2"
sagarefresh()
var/an = /mob/monsters/Android16
new an(locate(108,28,1))
var/ann = /mob/monsters/Android17
new ann(locate(109,28,1))
var/annn = /mob/monsters/Android18
new annn(locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "20")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Android 20!!"
jo1 = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(jo == 1)
world << "<font color=lime><b>Gero activated Androids 16, 17, and 18!!"
saga = "android2"
sagarefresh()
var/an = /mob/monsters/Android16
new an(locate(108,28,1))
var/ann = /mob/monsters/Android17
new ann(locate(109,28,1))
var/annn = /mob/monsters/Android18
new annn(locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "16")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Android 16!!"
sixdead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(sixdead == 1)
if(sevendead == 1)
if(eightdead == 1)
world << "<font color=lime><b>Cell has appeared!!"
saga = "cell"
sagarefresh()
var/ce = /mob/monsters/Cell1
new ce (locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "17")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Android 17!!"
sevendead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(sixdead == 1)
if(sevendead == 1)
if(eightdead == 1)
world << "<font color=lime><b>Cell has appeared!!"
saga = "cell"
sagarefresh()
var/ce = /mob/monsters/Cell1
new ce (locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "18")
usr.zenni += 250000
world << "<font color=red><b><u>[usr] has killed Android 18!!"
eightdead = 1
sagarefresh()
usr << "<b>You get 250000 zenni from that kill."
if(sixdead == 1)
if(sevendead == 1)
if(eightdead == 1)
world << "<font color=lime><b>Cell has appeared!!"
saga = "cell"
sagarefresh()
var/ce = /mob/monsters/Cell1
new ce (locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Cell")
if(src.state == "Form-1")
world << "<font color=red><b><u>Cell has absorbed Android 17!!"
sagarefresh()
saga = "cell2"
sagarefresh()
var/ce = /mob/monsters/Cell2
new ce (locate(107,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Cell")
if(src.state == "Form-2")
world << "<font color=red><b><u>Cell has absorbed Android 18!!"
world << "<font color=lime><i>CELL: <u>Haha! I am now PERFECT! You will all die at my hands!!"
sagarefresh()
saga = "cell3"
sagarefresh()
var/ce = /mob/monsters/Cell3
new ce (locate(105,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Cell")
if(src.state == "Form-3")
world << "<font color=red><b><u>[usr] as killed Cell!!"
world << "<font color=lime><b>NEW SAGA: Buu"
world << "<font color=lime><i>BABIDI: <u>Go Majin Buu! Destroy them all!"
sagarefresh()
saga = "buu"
sagarefresh()
var/bu = /mob/monsters/Buu
new bu (locate(103,28,1))
var/buu = /mob/monsters/Babidi
new buu (locate(104,28,1))
var/buuu = /mob/monsters/Dabura
new buuu (locate(105,28,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Buu")
buudead = 1
sagarefresh()
if(buudead == 1)
if(daburadead == 1)
if(babididead == 1)
world << "<font color=red><b><u>Buu Transforms into Punk Buu!"
saga = "buu2"
sagarefresh()
var/bu = /mob/monsters/Buu2
new bu (locate(107,29,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Dabura")
daburadead = 1
sagarefresh()
if(buudead == 1)
if(daburadead == 1)
if(babididead == 1)
world << "<font color=red><b><u>Buu Transforms into Punk Buu!"
saga = "buu2"
sagarefresh()
var/bu = /mob/monsters/Buu2
new bu (locate(107,29,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Babidi")
babididead = 1
sagarefresh()
if(buudead == 1)
if(daburadead == 1)
if(babididead == 1)
world << "<font color=red><b><u>Buu Transforms into Punk Buu!"
saga = "buu2"
sagarefresh()
var/bu = /mob/monsters/Buu2
new bu (locate(107,29,1))
usr.maxpowerlevel += (rand(1,200))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "PunkBuu")
world << "<font color=red><b><u>Buu Transforms into Buutenks!"
saga = "buu3"
sagarefresh()
var/bu = /mob/monsters/Buu3
new bu(locate(108,28,1))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Buutenks")
world << "<font color=red><b><u>Buu Transforms into Buucillo!"
saga = "buu4"
sagarefresh()
var/bu = /mob/monsters/Buu4
new bu(locate(108,28,1))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Buucillo")
world << "<font color=red><b><u>Buu Transforms into Buuhan!"
saga = "buu5"
sagarefresh()
var/bu = /mob/monsters/Buu5
new bu(locate(109,28,1))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Buuhan")
world << "<font color=red><b><u>Buu Transforms into .ULTIMATE KID BUU!"
alert(usr,"If you've reached this far, you are either a great player, a cheating GM, or a stupid cheater with a hex editor, ok, now fight this guy =)")
saga = "buu6"
sagarefresh()
var/bu = /mob/monsters/Buu6
new bu(locate(109,28,1))
src.loc=locate(0,0,0)
sleep(2000)
del(src)
if(src.race == "Kid Buu")
world << "<font color=red><b><u>[usr] somehow managed to kill Kid Buu,....YAY!"
alert(usr,"God, I can't believe you won 0_o")
saga = "end"
sagarefresh()
src.loc=locate(0,0,0)
sleep(2000)
del(src)

mob/var
loc
mob/var
name


Got any ideas on how to fix this?
We're not helping you this time.
You keep on posting code, and not learning anything from it.
Please read the tutorials on the left, or browse through the forums for previous answers like this.
In response to Flame Sage
To add to that, I get the feeling that you didn't actually program that. There's no indentation, and it all had to be compiled at once for you to find so many errors. Or maybe you found errors in previous compiles, but though nothing of them, which wouldn't make any sense.

P_S
In response to Prodigal Squirrel
This guy needs to be banned from code problems. All he is doing is bringing his latest ripped code to us.
In response to Cheetoz
Yet again you bump the same exact crap for us to read.
In response to Flame Sage
The thing that makes me mad is when he says "I created this coding for my game.", which I am 99% sure he did not create.
In response to Sniper Joe
Only Post if ur gonna help
In response to Govegtos
It's so simple that if you learn the basics, you can fix it yourself.
In response to Mecha Destroyer JD
Look,Those Names Need to be in there but for some reason i get Raditz and etc.. its dupulcated got any ideas?
In response to Lou
And yet, by replying, you did it too...And By me replying to your reply - I have bumped it again! Man screams predictably, "When will it end?"
I will just help you out a bit, I did not read your code all the way but when I was skimming down I saw that after you did a if statement you just did enter and started on with the rest of the code. If you have a if statement put all the coding you want to be included with the if under the code but tab it once atleast, EX:
Code:
if(usr.powerlevel==100)
usr.name= "supersayjin 89684"//this applies with the if

usr.powerlevel=5//this doesnt because there is no tab


Now since you did the tab the usr.name applies to the if statement. I did not look at the rest of your code but just fix all your problems. Please learn from your mistakes.

->Calus CoRPS<-
Govegtos wrote:
Got any ideas on how to fix this?

Yep, but this time please learn it. You have so many errors because you never stop to absorb anything and you keep making the same mistakes. There are two things you can fix right away that you should've had right from the beginning.

  • Fix your indentation.
  • No put usr in proc. Ungh.

    I think a lot of the reason you get flak from people here, besides that you're asking for coding help on a rip, is that you don't try to learn from your mistakes. The usr thing has come up literally dozens of times for you.

    Lummox JR