summaryrefslogtreecommitdiff
path: root/npc/001-1/devis.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
commit20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch)
tree4ad4a8bb8b0605473a702e314799a4626347721a /npc/001-1/devis.txt
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/001-1/devis.txt')
-rw-r--r--npc/001-1/devis.txt100
1 files changed, 100 insertions, 0 deletions
diff --git a/npc/001-1/devis.txt b/npc/001-1/devis.txt
new file mode 100644
index 000000000..5f0d4868b
--- /dev/null
+++ b/npc/001-1/devis.txt
@@ -0,0 +1,100 @@
+// Evol scripts.
+// Authors:
+// Reid
+// Travolta
+// Description:
+// La Johanne crew member.
+
+001-1,193,109,0 script Devis#001-1 NPC_DEVIS_ARTIS,{
+
+ function say_random_greeting {
+ .@enora = getq(ArtisQuests_Enora);
+ if (.@enora == 0)
+ {
+ speech
+ l("Enora, from the Legion of Aemil, has been warned that you were aboard."),
+ l("She is waiting for you on the dock.");
+
+ return;
+ }
+
+ .@rand = rand(5);
+ if (.@rand == 0) goodbye;
+ else if (.@rand == 1)
+ {
+ speech S_LAST_NEXT,
+ l("A sunny and hot day,"),
+ l("a quiet place,"),
+ l("a ground!"),
+ l("What else do you need?");
+ }
+ else if (.@rand == 2) npctalk3 l("A-hoy matey!");
+ else if (.@rand == 3) npctalk3 l("We are glad captain Nard has let you join the crew!");
+ else if (.@rand == 4) npctalk3 l("Howdy?");
+
+ return;
+ }
+
+ function face_to_PC {
+ getmapxy(.@map$, .@cx, .@cy, 0);
+ @Devis_old_dir = .dir;
+ npc_turntoxy(.@cx, .@cy);
+
+ return;
+ }
+
+ function local_close {
+ if (@Devis_old_dir > 0)
+ {
+ .dir = @Devis_old_dir;
+ }
+ npc_resumemove;
+
+ close;
+ }
+
+ @Devis_old_dir = -1;
+
+ npc_pausemove;
+ face_to_PC;
+ say_random_greeting;
+ local_close;
+
+OnTimer1000:
+ dographmovestep;
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 5;
+ initmovegraph "start_pos", 193, 109,
+ "dock_ent", 194, 109,
+ "dock_right", 192, 114, 195, 115,
+ "dock_left", 151, 103, 160, 106,
+ "dock_bot", 161, 119, 163, 127,
+ "dock_top", 184, 91, 195, 92,
+ "ship_ent", 19, 28,
+ "ship_sit", 28, 26,
+ "dock_mid", 174, 105;
+
+ setmovegraphcmd "start_pos", "dock_mid", 1, "dir 0; wait 2",
+ "dock_ent", "dock_right", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_ent", "dock_mid", 2, "moveon",
+ "dock_bot", "dock_left", 1, "dir 6; wait 8",
+ "dock_bot", "dock_mid", 2, "moveon",
+ "dock_left", "dock_bot", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_left", "dock_mid", 2, "moveon",
+ "dock_right", "dock_ent", 1, "warp 001-2-21 ship_ent",
+ "dock_right", "dock_mid", 2, "moveon",
+ "dock_top", "dock_mid", 1, "moveon",
+ "dock_mid", "dock_bot", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_mid", "dock_right", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_mid", "dock_left", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_mid", "dock_top", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
+ "dock_mid", "dock_ent", 2, "warp 001-2-21 ship_ent",
+ "ship_ent", "ship_sit", 1, "dir 4; sit; wait 14; stand; wait 1",
+ "ship_sit", "ship_ent", 1, "warp 001-1 dock_ent";
+
+ firstmove "wait 8", "start_pos";
+ initnpctimer;
+}
+