From 55ca2cc74a8e6c211a9403aa1152019c0116469f Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 20 Oct 2009 18:37:34 -0600 Subject: Adjust Soul Menhirs for better respawn points --- npc/functions/soul_menhir.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc/functions/soul_menhir.txt') diff --git a/npc/functions/soul_menhir.txt b/npc/functions/soul_menhir.txt index 25ccc4db..29701b07 100644 --- a/npc/functions/soul_menhir.txt +++ b/npc/functions/soul_menhir.txt @@ -30,7 +30,17 @@ L_Shortversion: next; L_Save: + if (@x == 0 && @y == 0) goto L_FindPoint; + +L_Do_Save: savepoint @map$, @x, @y; + goto L_Return; + +L_FindPoint: + set @n, rand(0, getarraysize(@Xs)); + set @x, @Xs[@n]; + set @y, @Ys[@n]; + goto L_Do_Save; L_Return: return; -- cgit v1.2.3-70-g09d2