ID:261483
 
Attack (mob/M in oview(1))

switch(icon_state)
if ("elf")
flick("elf_atk",src)
sleep(2)
if ("dwarf")
flick("dwarf_atk", src)
sleep(2)
if ("human")
flick("human_atk", src)
sleep(2)
if ("halfling")
flick("halfling_atk", src)
sleep(2)



Is there something wrong with this? It doesn't seem to work.
mob
verb
Attack (mob/M in oview(1))
flick("attack",usr)

just make an attack icon state for each race (make each race in an different icon.









In response to Freeker
I need to create an NPC, how do I create him and place him on the map?
In response to Guardian Angel
new/mob/NPC(src.loc)
or
new/mob/NPC(locate(x,y,z)) put the values in there like src.x+1 etc..

DarkTitan