mob
proc
Death()
if (src.hp <= 0)
if (!src.npc)
if (src.name == "Jiroubo" || src.name == "Tayuya" || src.name == "Sakon")
src.Frozen = 1
world<<"[src] was killed by [src.Killer]"
src.density = 0
src.layer = TURF_LAYER-100
for(var/mob/M in world) // If there is a player around 10 spaces...
if (M.name == src.Killer)// It sets it to its target
M<<"[src] is dead..."
M.quest4+=1
src.loc = src.savedloc
sleep (150)
src.Frozen = 0
src.density = 1
src.layer = TURF_LAYER+10000
else
src.savedloc = src.loc
src.loc = locate (90,96,1)
world << "<font color = white>[src.name] was killed by [src.Killer]!"
src.hp = src.maxhp
for(var/mob/M in world) // If there is a player around 10 spaces...
if (M.name == src.Killer)// It sets it to its target
M.Yen += src.bounty/2
M.bounty += src.Yen/2
src.Yen -= src.bounty*2
else
src.Frozen = 1
world<<"[src] was killed by [src.Killer]"
src.density = 0
src.layer = TURF_LAYER-100
sleep (150)
src.Frozen = 0
src.density = 1
src.layer = TURF_LAYER+10000
else
return
Problem description:What I pretend from this is: If Jiroubo, Tayuya and Sakon are not npc's and they are killed they freeze, go invisible and lost their density, and...(this is the part that dont works) Now, the guy that kills those mobs (Tayuya, Sakon and Jiroubo aka Sound4) should get an adding to the quest 4 var (to complete the quest) and receive a message about the death of the npc, well it doesnt work. Here is one of those mobs
mob/enemy/ANBU/Jiroubo
name = "Jiroubo"
icon = 'npcs.dmi'
icon_state = "Jiroubo"
hp = 100000
quest = 1
tai = 100000
npc = 1
New()
. = ..()
spawn()
Walk()
Bump(mob/M) //when badguy bumps into someone, thing it bumps into is M
if(M.quest4 == 0) //M is a client
MonsterAttack(M) //goes to monsterattack send M