From 20df2abc1aca00d6aa5dc78347133890f36b32f3 Mon Sep 17 00:00:00 2001 From: Saulc Date: Sat, 13 Jan 2018 20:50:42 +0100 Subject: Initial commit --- npc/001-2-23/ratto.txt | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 npc/001-2-23/ratto.txt (limited to 'npc/001-2-23/ratto.txt') diff --git a/npc/001-2-23/ratto.txt b/npc/001-2-23/ratto.txt new file mode 100644 index 000000000..91a822d3c --- /dev/null +++ b/npc/001-2-23/ratto.txt @@ -0,0 +1,68 @@ +// Evol scripts. +// Authors: +// Ablu +// Alastrim +// Reid +// Description: +// Ratto killer. + +// $@ARTIS_RAT1_CONTROL array explanation: +// [1] = Shows status of ratto number 1 (1 is dead and 0 is alive). +// [2] = Shows status of ratto number 2 (1 is dead and 0 is alive). +// [3] = Shows status of ratto number 3 (1 is dead and 0 is alive). +// [4] = Shows status of ratto number 4 (1 is dead and 0 is alive). +// [5] = Shows how many seconds passed since ratto number 1 died. +// [6] = Shows how many seconds passed since ratto number 2 died. +// [7] = Shows how many seconds passed since ratto number 3 died. +// [8] = Shows how many seconds passed since ratto number 4 died. +// [9] = Shows how many seconds passed since the player started the quest. + +001-2-23,47,30,0 script RattosControl#001-2-23 NPC_HIDDEN,{ + +OnSpawn: + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto1Death"; + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto2Death"; + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto3Death"; + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto4Death"; + close; + +OnRatto1Respawn: + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto1Death"; + $@ARTIS_RAT1_CONTROL[1] = 0; + $@ARTIS_RAT1_CONTROL[5] = 0; + end; + +OnRatto2Respawn: + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto2Death"; + $@ARTIS_RAT1_CONTROL[2] = 0; + $@ARTIS_RAT1_CONTROL[6] = 0; + end; + +OnRatto3Respawn: + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto3Death"; + $@ARTIS_RAT1_CONTROL[3] = 0; + $@ARTIS_RAT1_CONTROL[7] = 0; + end; + +OnRatto4Respawn: + areamonster "001-2-23", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#001-2-23::OnRatto4Death"; + $@ARTIS_RAT1_CONTROL[4] = 0; + $@ARTIS_RAT1_CONTROL[8] = 0; + end; + +OnRatto1Death: + $@ARTIS_RAT1_CONTROL[1] = 1; + end; + +OnRatto2Death: + $@ARTIS_RAT1_CONTROL[2] = 1; + end; + +OnRatto3Death: + $@ARTIS_RAT1_CONTROL[3] = 1; + end; + +OnRatto4Death: + $@ARTIS_RAT1_CONTROL[4] = 1; + end; +} -- cgit v1.2.3-70-g09d2