Crash when a script attached on a npc kills him

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

Crash when a script attached on a npc kills him

Post by Terciob »

Hi, finally i found the cause of a weird and old crash on my server. To reproduce:

npc ai:

Code: Select all

use os;
use npc;
program myself()
	while (self())
		start_script ("crash", self());
		sleep (10);
		wander();
	endwhile
endprogram 
the attached script:

Code: Select all

use uo;
use vitals;
program crash_my_server (npc)
	attach (npc);
	applyrawdamage (npc, 6000);
endprogram 
Dedicated for Muaddib which in the past analyzed a 1.2gb large crash dump trying to solve this issue.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Crash when a script attached on a npc kills him

Post by Turley »

Long ago but not forgotten, fixed in Rev. 559 :)
Post Reply