ID:145898
 
Code:
if(src.level==2||4||6||8||10)


Problem description: No matter what level you are, this works...

You're doing this in effect:

If the level is two, pass.
If 4 isn't empty, pass.
If 6 isn't empty, pass.
If 8 isn't empty, pass.
If 10 isn't empty, pass.

So of course that'd always work.

What you want is if(src.level==2||src.level==4) etc.
In response to DeathAwaitsU
We should be able to do something like this.
if(src.level==(2||3||7||10))

That's make our code much easier as well as shorter. But alas, we cannot.
In response to CaptFalcon33035
Love ya

        Dragon
icon='BlackDragon(enemy).dmi'
icon_state="TL"
race="Dragon"
hp = 2
maxhp = 2
agi = 1
power = 1
def = 1
knowledge = 1
mob = 1
mobtype = "noob"
gold = 20000
maxexp = 1000
respawn = 1
pieces = 4
respawn=10
New()
..()
move_AddFOBJ(icon('BlackDragon(enemy).dmi',,icon_state="TR",,density=1,,hp=2,,maxhp=2,,race="Dragon",,exp=0,,maxexp=100,,respawn=10,,gold=10000),"TR",1,0)
move_AddFOBJ(icon('BlackDragon(enemy).dmi',,icon_state="BL",,density=1,,hp=2,,maxhp=2,,race="Dragon",,exp=0,,maxexp=100,,respawn=10,,gold=10000),"BL",0,-1)
move_AddFOBJ(icon('BlackDragon(enemy).dmi',,icon_state="BR",,density=1,,hp=2,,maxhp=2,,race="Dragon",,exp=0,,maxexp=100,,respawn=10,,gold=10000),"BR",1,-1)


The AddFOBJ worked before, but now it just doesn't appear anymore!

            if(New.race=="Archer")
New.verbs+=/mob/archer/verb/Shoot
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.contents += /obj/Arrow
New.arrows = 10
New.contents += /obj/equipment/arms/left/Bow


This doesn't work.. Should I make a list for it?
In response to Mysame
You should make a for() proc.
var/arrow=0
for(arrow,arrow<=10,arrow++)New.contents.Add(new/obj/arrow/)
New.arrow=10


But, to suyccessfully help you out, it could be something else wrong with the system. Please, show us.
In response to CaptFalcon33035
Since when was for() a while() proc? :p
In response to Elation
Never, I messed up. No typo, I just thought I was going to use a while proc, then I remembered for() could probably do it better and with less code and less variables, so I placed that. I just forgot to change while() to for(). I'll do it now.