diff options
author | Reid <reidyaro@gmail.com> | 2016-01-24 02:31:40 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-01-24 02:31:40 +0100 |
commit | d6f98afd597eb05726a745756775ac45e6c9fecc (patch) | |
tree | eecb5cff14202e2d63f422a9e24793134dd7166f /npc | |
parent | 88da3f6da3acdcf97c5b7cc1278c7b206079cd99 (diff) | |
download | serverdata-d6f98afd597eb05726a745756775ac45e6c9fecc.tar.gz serverdata-d6f98afd597eb05726a745756775ac45e6c9fecc.tar.bz2 serverdata-d6f98afd597eb05726a745756775ac45e6c9fecc.tar.xz serverdata-d6f98afd597eb05726a745756775ac45e6c9fecc.zip |
Add savepoints on #29.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/001-2-29/_import.txt | 1 | ||||
-rw-r--r-- | npc/001-2-29/savepoint.txt | 113 |
2 files changed, 114 insertions, 0 deletions
diff --git a/npc/001-2-29/_import.txt b/npc/001-2-29/_import.txt index c6cca273..cf9ad44e 100644 --- a/npc/001-2-29/_import.txt +++ b/npc/001-2-29/_import.txt @@ -2,3 +2,4 @@ npc: npc/001-2-29/_warps.txt npc: npc/001-2-29/edouard.txt npc: npc/001-2-29/mapflags.txt +npc: npc/001-2-29/savepoint.txt diff --git a/npc/001-2-29/savepoint.txt b/npc/001-2-29/savepoint.txt new file mode 100644 index 00000000..3977b473 --- /dev/null +++ b/npc/001-2-29/savepoint.txt @@ -0,0 +1,113 @@ +// Evol scripts. +// Author: +// Reid +// Description: +// Saves locations in 001-2-29 map. + +001-2-29,29,28,0 script #001-2-29-1 NPC_SAVE_POINT,0,0,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 28; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; + +OnPCDieEvent: + PC_Is_Dead = 1; + close; +} + +001-2-29,29,35,0 script #001-2-29-2 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 35; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} + +001-2-29,29,42,0 script #001-2-29-3 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 42; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} + +001-2-29,29,49,0 script #001-2-29-4 NPC_SAVE_POINT,0,0,{ + narrator 4, + l("Do you want to use this place as save point?"); + + if (select (l("[Yes]"), l("[No]")) == 1) + { + savepointparticle "001-2-29.gat", 29, 49; + } + closedialog; + close; + +OnInit: + .distance = 2; + end; + +OnTouch: + if (PC_Is_Dead && INN_Register == REDPLUSH_INN) + { + INN_Register = NO_INN; + percentheal 100,100; + + PC_Is_Dead = 0; + } + close; +} |