summaryrefslogblamecommitdiff
path: root/npc/000-2-2/ratto.txt
blob: 5a6099716dc668dcab9899d2cf95ec0fb25e0e23 (plain) (tree)


















                                                                          
                                                            

        



                                                                                                    


                
                                                                                                    




                                
                                                                                                    




                                
                                                                                                    




                                
                                                                                                    



















                                
// Evol scripts.
// Authors:
//    Ablu
//    Alastrim
//    Reid
// Description:
//    Ratto killer.

// $@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.

000-2-2,47,30,0	script	RattosControl#000-2-2	NPC_HIDDEN,{

OnSpawn:
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto1Death";
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto2Death";
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto3Death";
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto4Death";
    close;

OnRatto1Respawn:
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto1Death";
    $@RAT_SAILOR_CONTROL[1] = 0;
    $@RAT_SAILOR_CONTROL[5] = 0;
    end;

OnRatto2Respawn:
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto2Death";
    $@RAT_SAILOR_CONTROL[2] = 0;
    $@RAT_SAILOR_CONTROL[6] = 0;
    end;

OnRatto3Respawn:
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto3Death";
    $@RAT_SAILOR_CONTROL[3] = 0;
    $@RAT_SAILOR_CONTROL[7] = 0;
    end;

OnRatto4Respawn:
    areamonster "000-2-2", 23, 19, 50, 40, "Ratto", 1005, 1, "RattosControl#000-2-2::OnRatto4Death";
    $@RAT_SAILOR_CONTROL[4] = 0;
    $@RAT_SAILOR_CONTROL[8] = 0;
    end;

OnRatto1Death:
    $@RAT_SAILOR_CONTROL[1] = 1;
    end;

OnRatto2Death:
    $@RAT_SAILOR_CONTROL[2] = 1;
    end;

OnRatto3Death:
    $@RAT_SAILOR_CONTROL[3] = 1;
    end;

OnRatto4Death:
    $@RAT_SAILOR_CONTROL[4] = 1;
    end;
}