diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/000-2-2/_import.txt | 1 | ||||
-rw-r--r-- | npc/000-2-2/doors.txt | 71 | ||||
-rw-r--r-- | npc/000-2-2/ratto.txt | 76 |
3 files changed, 78 insertions, 70 deletions
diff --git a/npc/000-2-2/_import.txt b/npc/000-2-2/_import.txt index 9cef91a1..cfe2d6b8 100644 --- a/npc/000-2-2/_import.txt +++ b/npc/000-2-2/_import.txt @@ -3,3 +3,4 @@ npc: npc/000-2-2/_mobs.txt npc: npc/000-2-2/_warps.txt npc: npc/000-2-2/doors.txt npc: npc/000-2-2/mapflags.txt +npc: npc/000-2-2/ratto.txt
\ No newline at end of file diff --git a/npc/000-2-2/doors.txt b/npc/000-2-2/doors.txt index 942ddab3..562c1fc4 100644 --- a/npc/000-2-2/doors.txt +++ b/npc/000-2-2/doors.txt @@ -4,7 +4,7 @@ // Alastrim // Reid // Description: -// Ratto killer. +// Doors NPCs. 000-2-2.gat,48,29,0,1 script DoorUpwards 0,0,0,{ @@ -62,72 +62,3 @@ l_Warp: close; } - -000-2-2.gat,47,30,0,1 script RattosControl 32767,{ -// $@RAT_SAILOR_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. - -OnSpawn: - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto1Death"; - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto2Death"; - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto3Death"; - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto4Death"; - - close; - -OnRatto1Respawn: - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto1Death"; - set $@RAT_SAILOR_CONTROL[1], 0; - set $@RAT_SAILOR_CONTROL[5], 0; - - end; - -OnRatto2Respawn: - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto2Death"; - set $@RAT_SAILOR_CONTROL[2], 0; - set $@RAT_SAILOR_CONTROL[6], 0; - - end; - -OnRatto3Respawn: - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto3Death"; - set $@RAT_SAILOR_CONTROL[3], 0; - set $@RAT_SAILOR_CONTROL[7], 0; - - end; - -OnRatto4Respawn: - areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto4Death"; - set $@RAT_SAILOR_CONTROL[4], 0; - set $@RAT_SAILOR_CONTROL[8], 0; - end; - -OnRatto1Death: - set $@RAT_SAILOR_CONTROL[1], 1; - - end; - -OnRatto2Death: - set $@RAT_SAILOR_CONTROL[2], 1; - - end; - -OnRatto3Death: - set $@RAT_SAILOR_CONTROL[3], 1; - - end; - -OnRatto4Death: - set $@RAT_SAILOR_CONTROL[4], 1; - - end; - -} diff --git a/npc/000-2-2/ratto.txt b/npc/000-2-2/ratto.txt new file mode 100644 index 00000000..b3cd5abd --- /dev/null +++ b/npc/000-2-2/ratto.txt @@ -0,0 +1,76 @@ +// Evol scripts. +// Authors: +// Ablu +// Alastrim +// Reid +// Description: +// Ratto killer. + +000-2-2.gat,47,30,0,1 script RattosControl 32767,{ +// $@RAT_SAILOR_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. + +OnSpawn: + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto1Death"; + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto2Death"; + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto3Death"; + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto4Death"; + + close; + +OnRatto1Respawn: + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto1Death"; + set $@RAT_SAILOR_CONTROL[1], 0; + set $@RAT_SAILOR_CONTROL[5], 0; + + end; + +OnRatto2Respawn: + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto2Death"; + set $@RAT_SAILOR_CONTROL[2], 0; + set $@RAT_SAILOR_CONTROL[6], 0; + + end; + +OnRatto3Respawn: + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto3Death"; + set $@RAT_SAILOR_CONTROL[3], 0; + set $@RAT_SAILOR_CONTROL[7], 0; + + end; + +OnRatto4Respawn: + areamonster "000-2-2.gat",23, 19, 50, 40,"Ratto",1005,1,"RattosControl::OnRatto4Death"; + set $@RAT_SAILOR_CONTROL[4], 0; + set $@RAT_SAILOR_CONTROL[8], 0; + end; + +OnRatto1Death: + set $@RAT_SAILOR_CONTROL[1], 1; + + end; + +OnRatto2Death: + set $@RAT_SAILOR_CONTROL[2], 1; + + end; + +OnRatto3Death: + set $@RAT_SAILOR_CONTROL[3], 1; + + end; + +OnRatto4Death: + set $@RAT_SAILOR_CONTROL[4], 1; + + end; + +} |