Code: Select all
>fight_prog 20~
yell Help! Guards! $N is attacking me on $b!
if rand(40)
if quest(0,3,self) < 3
mpecho {70}A guard comes to help $I.
mpmload 2007
mpforce m2007 mpkill $n
mpmadd self quest 0 3 1
endif
endif
~
>death_prog 100~
mplog WITNESS: $n has killed $I on $b (room vnum $v)
mpmset self quest 0 3 0
~
The second program resets the 'number of guards called'.