diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-20 18:37:34 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-20 18:37:34 -0600 |
commit | 55ca2cc74a8e6c211a9403aa1152019c0116469f (patch) | |
tree | 88303af26c14df848ca700d050c6a3a71d0f5968 /npc/functions | |
parent | 6a06f880e7ec60f3a20b68f9424ec4ad1979d91e (diff) | |
download | serverdata-55ca2cc74a8e6c211a9403aa1152019c0116469f.tar.gz serverdata-55ca2cc74a8e6c211a9403aa1152019c0116469f.tar.bz2 serverdata-55ca2cc74a8e6c211a9403aa1152019c0116469f.tar.xz serverdata-55ca2cc74a8e6c211a9403aa1152019c0116469f.zip |
Adjust Soul Menhirs for better respawn points
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/soul_menhir.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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; |