No Topic in Developer Help
|
|
Code:
mob/proc/deathcheck(mob/M) if(M.health<=0) M.DieParty() if(M.name==src.name)return 0 if(M.village==src.village) if(!M.INEXAM) switch(alert(src, "Betray your Comrad?", "Betray", "Betray","Leave Wounded")) if("Betray") if(M in oview(1)) M<<"[src] has chosen to betray you." M.exp=src.exp/2 src.kills ++ src<<"<small>You have betrayed [M]!</small>" M.deaths ++ src.Yen+=M.Yen M.Yen = 0 M.health=src.maxhealth M.SpawnV() if("Leave Wounded") src<<"You can't betray [M], a comrad..." M<<"[src] can't betray a comrad and leaves you wounded..." M.health=10 return 0 else if(M.InSquads) if(M.SquadsName == src.SquadsName) M<<"[src] can't betray a comrad and leaves you wounded..." src<<"You can't betray [M], a comrad..." return 0 if(M.npc)return 0 else if(M.client) M.createcorpse() M.overlays-='suna.dmi' M.overlays-='sousou.dmi' M.overlays-='goukakyuu.dmi' M.overlays-='kyuu.dmi' M.underlays-= image('kagemane.dmi',"head") M.overlays-= image('kagemane.dmi',"tail") M.DieParty() M << sound(null) M<<"<small>[src] has killed you!</small>" M.SpawnV() M.exp=M.exp/3 M.move=0 M.health = M.maxhealth if(src.client) src.kills ++ src<<"<small>You have killed [M]!</small>" M.deaths ++ src.Yen+=M.Yen M.Yen = 0 src.exp+=M.exp/3 src.Levelup()
|
Problem description:
Any time you kill some one who not in our village, they get booted idk why
|