mob
var
start = 0
planet = ""
planet2 = ""
race = ""
hair = "bald"
blood = 0
currency = 0
mcurrency = 500
banked = 0
bank = "None"
mbanked = 0
exp = 0
mexp = 500
typ = "Char"
flying = 0
pod = 0
dojo = 0
bed = 1
meditating = 0
attacking = 0
mute = 0
dead = 0
nozenni = 0
rank = "Player"
skills = list()
items = list()
move = 0
firing = 0
dragonballs = 0
defence = 0
mdefence = 0
strength = 0
mstrength = 0
energy = 100
menergy = 100
powerlevel = 0
mpowerlevel = 0
weight = 0
maxweight = 7
training = 0
NPC = 0
dragon = 0
//Training vars
train = 0
rest = 0
tweight = 1
//skill vars
learnsense = 0
learnbuk = 0
learnkiblast = 0
learnkibeam = 0
//Gym's
//red dragon
reddragon = 0
reddragonm = 0
gym = ""
//lower class saiyans
lowerclass = 0
lowerclassm = 0
Stat()
statpanel("[usr.key]")
stat("")
stat("Race:",src.race)
stat("Genetic Purity:",src.blood)
stat("Home Planet:",src.planet)
stat("Current Planet:",src.planet2)
stat("")
stat("Power:","[src.powerlevel]/[src.mpowerlevel]")
stat("Energy:","[src.energy]/[src.menergy]")
stat("Strength:","[src.strength]/[src.mstrength]")
stat("Defence:","[src.defence]/[src.mdefence]")
stat("Experience:","[src.exp]/[src.mexp]")
stat("")
stat("Gym:","[src.gym]")
stat("Zenni:","[src.currency]/[src.mcurrency]")
stat("Banked:","[src.banked]/[src.mbanked]")
stat("Bank Account:",src.bank)
stat("X:",src.x)
stat("Y:",src.y)
statpanel("Skills",src.skills)
statpanel("Items",src.items)
statpanel("DragonBalls",src.contents)
statpanel("Players")
for(var/mob/M in world)
if(M.typ == "Char")
if(M.client)
stat("[M]","[M.rank]")
stat("Race","[M.race]")
stat("Home Planet","[M.planet]")
stat("Current Planet:","[M.planet2]")
stat("--------------")
obj
start
icon = 'start.png'
Click()
if(usr.start == 0)
usr << "Welcome to Character Creation."
sleep(15)
usr << "Selecting Planet."
var/ran = rand(0,2)
if(ran <= 1)
usr << "Planet Vegeta Selected."
usr.skills += new /obj/Train
usr.skills += new /obj/Rest
usr.overlays += /obj/tail
usr.planet = "Vegeta"
usr.planet2 = "Vegeta"
usr.race = "Saiyan"
sleep(15)
usr << "Selecting Skin."
var/ran2 = rand(1,3)
if(ran2 == 1)
usr << "White Skin Selected."
usr.icon = 'Base - White.dmi'
usr << "Processing Stats."
sleep(25)
var/ran3 = rand(1,6)
if(ran3 == 1)
usr << "Stats Processed."
usr.overlays += 'gohan black.dmi'
usr.hair = "gohan black"
usr.strength = 3
usr.mstrength = 3
usr.blood = 50
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(646,740,1)
usr.start = 1
usr.defence = 4
usr.mdefence = 4
if(ran3 == 2)
usr << "Stats Processed."
usr.overlays += 'gokuu black.dmi'
usr.hair = "gokuu black"
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 80
usr.strength = 10
usr.mstrength = 10
usr.defence = 6
usr.mdefence = 6
if(ran3 == 3)
usr << "Stats Processed."
usr.overlays += 'gokuu brown.dmi'
usr.hair = "gokuu brown"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 30
usr.strength = 6
usr.mstrength = 6
usr.defence = 2
usr.mdefence = 2
if(ran3 == 4)
usr << "Stats Processed."
usr.overlays += 'gohan brown.dmi'
usr.hair = "gohan brown"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 70
usr.strength = 4
usr.mstrength = 4
usr.defence = 1
usr.mdefence = 1
if(ran3 == 5)
usr << "Stats Processed."
usr.overlays += 'vegeta black.dmi'
usr.hair = "vegeta black"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 5
usr.strength = 9
usr.mstrength = 9
usr.defence = 3
usr.mdefence = 3
if(ran3 == 6)
usr << "Stats Processed."
usr.overlays += 'vegeta brown.dmi'
usr.hair = "vegeta brown"
usr.powerlevel = 900
usr.mpowerlevel = 900
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 30
usr.strength = 4
usr.mstrength = 4
usr.defence = 4
usr.mdefence = 4
if(ran2 == 2)
usr << "Tanned Skin Selected."
usr.icon = 'Base - Tan.dmi'
usr << "Processing Stats."
sleep(25)
var/ran4 = rand(1,6)
if(ran4 == 1)
usr << "Stats Processed."
usr.overlays += 'vegeta black.dmi'
usr.hair = "vegeta black"
usr.blood = 5
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(646,740,1)
usr.start = 1
usr.defence = 5
usr.mdefence = 5
usr.strength = 5
usr.mstrength = 5
if(ran4 == 2)
usr << "Stats Processed."
usr.overlays += 'gohan black.dmi'
usr.hair = "gohan black"
usr.blood = 80
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(646,740,1)
usr.start = 1
usr.strength = 10
usr.mstrength = 10
usr.defence = 6
usr.mdefence = 6
if(ran4 == 3)
usr << "Stats Processed."
usr.overlays += 'gohan brown.dmi'
usr.hair = "gohan brown"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 50
usr.strength = 8
usr.mstrength = 8
usr.defence = 3
usr.mdefence = 3
if(ran4 == 4)
usr << "Stats Processed."
usr.overlays += 'gokuu brown.dmi'
usr.hair = "gokuu brown"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 70
usr.strength = 7
usr.mstrength = 7
usr.defence = 2
usr.mdefence = 2
if(ran4 == 5)
usr << "Stats Processed."
usr.overlays += 'vegeta black.dmi'
usr.hair = "vegeta black"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 30
usr.strength = 1
usr.mstrength = 1
usr.defence = 5
usr.mdefence = 5
if(ran4 == 6)
usr << "Stats Processed."
usr.overlays += 'gokuu black.dmi'
usr.hair = "gokuu black"
usr.powerlevel = 1900
usr.mpowerlevel = 1900
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 30
usr.strength = 9
usr.mstrength = 9
usr.defence = 1
usr.mdefence = 1
if(ran2 == 3)
usr << "Black Skin Selected."
usr.icon = 'Base - Black.dmi'
usr << "Processing Stats."
sleep(25)
var/ran5 = rand(1,6)
if(ran5 == 1)
usr << "Stats Processed."
usr.overlays += 'gokuu black.dmi'
usr.hair = "gokuu black"
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 30
usr.strength = 2
usr.mstrength = 2
usr.defence = 1
usr.mdefence = 1
if(ran5 == 2)
usr << "Stats Processed."
usr.overlays += 'gokuu black.dmi'
usr.hair = "gokuu black"
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 80
usr.strength = 10
usr.mstrength = 10
usr.defence = 6
usr.mdefence = 6
if(ran5 == 3)
usr << "Stats Processed."
usr.overlays += 'gohan brown.dmi'
usr.hair = "gohan brown"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 50
usr.strength = 7
usr.mstrength = 7
usr.defence = 5
usr.mdefence = 5
if(ran5 == 4)
usr << "Stats Processed."
usr.overlays += 'vegeta black.dmi'
usr.hair = "vegeta black"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 50
usr.strength = 9
usr.mstrength = 9
usr.defence = 2
usr.mdefence = 2
if(ran5 == 5)
usr << "Stats Processed."
usr.overlays += 'gohan black.dmi'
usr.hair = "gohan black"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 70
usr.strength = 4
usr.mstrength = 4
usr.defence = 3
usr.mdefence = 3
if(ran5 == 6)
usr << "Stats Processed."
usr.overlays += 'vegeta brown.dmi'
usr.hair = "vegeta brown"
usr.powerlevel = 1900
usr.mpowerlevel = 1900
usr.loc = locate(646,740,1)
usr.start = 1
usr.blood = 5
usr.strength = 5
usr.mstrength = 5
usr.defence = 1
usr.mdefence = 1
else
usr << "Planet Earth Selected."
usr.planet = "Earth"
usr.planet2 = "Earth"
usr.race = "Earthling"
usr.skills += new /obj/Train
usr.skills += new /obj/Rest
sleep(15)
usr << "Selecting Skin."
var/ran2 = rand(1,3)
if(ran2 == 1)
usr << "White Skin Selected."
usr.icon = 'Base - White.dmi'
usr << "Processing Stats."
sleep(25)
var/ran6 = rand(1,6)
if(ran6 == 1)
usr << "Stats Processed."
usr.overlays += 'black spike.dmi'
usr.hair = "black spike"
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 5
usr.strength = 2
usr.mstrength = 2
usr.defence = 7
usr.mdefence = 7
if(ran6 == 2)
usr << "Stats Processed."
usr.overlays += 'grey long.dmi'
usr.hair = "grey long"
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 80
usr.strength = 6
usr.mstrength = 6
usr.defence = 10
usr.mdefence = 10
if(ran6 == 3)
usr << "Stats Processed."
usr.overlays += 'blonde short.dmi'
usr.hair = "blonde short"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 50
usr.strength = 5
usr.mstrength = 5
usr.defence = 5
usr.mdefence = 5
if(ran6 == 4)
usr << "Stats Processed."
usr.overlays += 'black long.dmi'
usr.hair = "black long"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 30
usr.strength = 3
usr.mstrength = 3
usr.defence = 7
usr.mdefence = 7
if(ran6 == 5)
usr << "Stats Processed."
usr.overlays += 'black short.dmi'
usr.hair = "black short"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 5
usr.strength = 2
usr.mstrength = 2
usr.defence = 8
usr.mdefence = 8
if(ran6 == 6)
usr << "Stats Processed."
usr.overlays += 'brown long.dmi'
usr.hair = "brown long"
usr.powerlevel = 1300
usr.mpowerlevel = 1300
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 70
usr.strength = 4
usr.mstrength = 4
usr.defence = 4
usr.mdefence = 4
if(ran2 == 2)
usr << "Tanned Skin Selected."
usr.icon = 'Base - Tan.dmi'
usr << "Processing Stats."
sleep(25)
var/ran7 = rand(1,6)
if(ran7 == 1)
usr << "Stats Processed."
usr.overlays += 'brown short.dmi'
usr.hair = "brown short"
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 70
usr.strength = 1
usr.mstrength = 1
usr.defence = 6
usr.mdefence = 6
if(ran7 == 2)
usr << "Stats Processed."
usr.overlays += 'brown spike.dmi'
usr.hair = "brown spike"
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 80
usr.strength = 6
usr.mstrength = 6
usr.defence = 3
usr.mdefence = 3
if(ran7 == 3)
usr << "Stats Processed."
usr.overlays += 'grey spike.dmi'
usr.hair = "grey spike"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 50
usr.strength = 4
usr.mstrength = 4
usr.defence = 9
usr.mdefence = 9
if(ran7 == 4)
usr << "Stats Processed."
usr.overlays += 'grey long.dmi'
usr.hair = "grey long"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 50
usr.strength = 2
usr.mstrength = 2
usr.defence = 7
usr.mdefence = 7
if(ran7 == 5)
usr << "Stats Processed."
usr.overlays += 'grey short.dmi'
usr.hair = "grey short"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 30
usr.strength = 5
usr.mstrength = 5
usr.defence = 3
usr.mdefence = 3
if(ran7 == 6)
usr << "Stats Processed."
usr.overlays += 'blonde long.dmi'
usr.hair = "blonde long"
usr.powerlevel = 1300
usr.mpowerlevel = 1300
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 5
usr.strength = 1
usr.mstrength = 1
usr.defence = 2
usr.mdefence = 2
if(ran2 == 3)
usr << "Black Skin Selected."
usr.icon = 'Base - Black.dmi'
usr << "Processing Stats."
sleep(25)
var/ran8 = rand(1,6)
if(ran8 == 1)
usr << "Stats Processed."
usr.overlays += 'blonde short.dmi'
usr.hair = "blonde short"
usr.powerlevel = 12
usr.mpowerlevel = 12
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 30
usr.strength = 3
usr.mstrength = 3
usr.defence = 1
usr.mdefence = 1
if(ran8 == 2)
usr << "Stats Processed."
usr.overlays += 'blonde spike.dmi'
usr.hair = "blonde spike"
usr.powerlevel = 1
usr.mpowerlevel = 1
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 80
usr.strength = 6
usr.mstrength = 6
usr.defence = 10
usr.mdefence = 10
if(ran8 == 3)
usr << "Stats Processed."
usr.overlays += 'grey spike.dmi'
usr.hair = "grey spike"
usr.powerlevel = 120
usr.mpowerlevel = 120
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 50
usr.strength = 3
usr.mstrength = 3
usr.defence = 9
usr.mdefence = 9
if(ran8 == 4)
usr << "Stats Processed."
usr.overlays += 'black spike.dmi'
usr.hair = "black spike"
usr.powerlevel = 342
usr.mpowerlevel = 342
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 70
usr.strength = 1
usr.mstrength = 1
usr.defence = 9
usr.mdefence = 9
if(ran8 == 5)
usr << "Stats Processed."
usr.hair = "bald"
usr.powerlevel = 540
usr.mpowerlevel = 540
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 5
usr.strength = 1
usr.mstrength = 1
usr.defence = 3
usr.mdefence = 3
if(ran8 == 6)
usr << "Stats Processed."
usr.hair = "bald"
usr.powerlevel = 1300
usr.mpowerlevel = 1300
usr.loc = locate(107,174,1)
usr.start = 1
usr.blood = 80
usr.strength = 4
usr.mstrength = 4
usr.defence = 1
usr.mdefence = 1
mob/Move()
if(usr.move == 0) // can move
..()
else
return
mob/Move()
if(usr.training == 0) // can move
..()
else
return
mob/Move()
if(usr.dragon == 0) // can move
..()
else
return
How can i fix that?
1) In the Stat() proc, you have a for() loop through every mob. That can/will cause some lag in your game...
2) Your first if() after Click() says if(var == 0)...Now I'm assuming that the 2 values for the var are 1 and 0, so it should say if(!var).
3) Skipping the chain of if()s after that, I get to the Move() procs. You should only define one of each proc for each class- mob/Move() shouldn't have 3 definitions!
4) Things like if(var == 0) should be shortened to if(!var)
...I'll leave the if() chain for someone a little more generous with their time.
Hiead