Crash when a script attached on a npc kills him
Posted: Mon Feb 06, 2012 10:03 am
Hi, finally i found the cause of a weird and old crash on my server. To reproduce:
npc ai:
the attached script:
Dedicated for Muaddib which in the past analyzed a 1.2gb large crash dump trying to solve this issue.
npc ai:
Code: Select all
use os;
use npc;
program myself()
while (self())
start_script ("crash", self());
sleep (10);
wander();
endwhile
endprogram Code: Select all
use uo;
use vitals;
program crash_my_server (npc)
attach (npc);
applyrawdamage (npc, 6000);
endprogram