summaryrefslogblamecommitdiff
path: root/npc/001-1/xilaxa.txt
blob: c52e83c6b978d2838becee967ed8a6f1e95b2d95 (plain) (tree)
1
2
3
4
5
6
7
8





                                          
                                                                    
 





                                    

            
                    

       
                           




























                                                                                                                     

                 
// Evol scripts.
// Author:
//    Reid
// Description:
//    Moon, main NPC for the urchin quest.

001-1,52,44,0	script	Xilaxa#001-1	NPC_UKAR_MALE_LEGION_ARTIS,{

    npc_pausemove();
    getmapxy(.@map$, .@cx, .@cy, 0);
    npc_turntoxy(.@cx, .@cy);
    npctalkonce("Hello.");
    npc_resumemove();
    close;

OnTimer1000:
    dographmovestep;

OnInit:
    .bodytype = BODYTYPE_3;
    .distance = 5;
    initmovegraph   "mid",          54,  43,  60,  46,
                    "left",         47,  50,  52,  55,
                    "right",        62,  50,  67,  55;

    setmovegraphcmd "mid",          "left",         1,  "dir 0; wait 4",
                    "mid",          "left",         4,  "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
                    "mid",          "left",         2,  "dir 4; wait 5; dir 0; wait 2",
                    "mid",          "left",         3,  "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
                    "mid",          "left",         1,  "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
                    "mid",          "right",        3,  "dir 0; wait 4",
                    "mid",          "right",        4,  "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
                    "mid",          "right",        2,  "dir 4; wait 5; dir 0; wait 2",
                    "mid",          "right",        1,  "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
                    "mid",          "right",        2,  "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",

                    "left",         "mid",          2,  "dir 0; wait 4",
                    "left",         "mid",          1,  "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
                    "left",         "mid",          3,  "dir 4; wait 5; dir 0; wait 2",
                    "left",         "mid",          2,  "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
                    "left",         "mid",          3,  "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",

                    "right",        "mid",          3,  "dir 0; wait 4",
                    "right",        "mid",          2,  "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
                    "right",        "mid",          1,  "dir 4; wait 5; dir 0; wait 2",
                    "right",        "mid",          1,  "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
                    "right",        "mid",          2,  "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5";

    firstmove "wait 5", "mid";
    initnpctimer;
}