mob
proc
deathcheck()
if(src.hp <= 0)
view() << "[src] has been killed by [usr]!"
usr.exp += src.expgive
usr.Gold += src.goldgive
if(src.client)
if(src.goldgive == 0)
usr.goldgive += 30
world << "[usr] now has a bounty of [usr.goldgive] on his head!"
else
usr.Gold += src.goldgive
world << "[usr] has collected the bounty from [src]'s head! ([src.goldgive] gold)"
src.goldgive = 0
src.hp = src.MaxHp
src.Move(locate(73,172,1))
else
del(src)
Problem description: The problem is, that monsters get bountys on their heads too, and when a monster kills someone. they get their bounties removed! Even though i made an If(src.client) there >_<;
You have usr slain all through the code. Read up on Lummox JR's Dream Tutor usr Unfriendly Guide. I don't mean scan through a couple of paragraphs.. read through the whole thing. And read it thoroughly. =)
Therefor, you'd want to start your proc like so: