summaryrefslogblamecommitdiff
path: root/npc/029-1/tutorial.txt
blob: 870104d7e2757f9275460448b058d189c4348221 (plain) (tree)



















































                                                           
-	script	#TutorialConfig	NPC32767,{
    end;

OnInit:
    $@ScorpionFighter = 0;
    $@ScorpionTimer = 0;
    set $@ScorpDeath, 0; 
    $@SpokeToKaan = (1 << 31);
    end;
}
029-2,21,26,0	script	TutDebug	NPC154,{
    mes "[TutDebug]";
    mes "Reset?";
    menu
        "Reset Kaan/Hasan",L_Kaan,
        "Yes.",L_Reset,
        "No.",L_close;

L_Kaan:
    QL_BEGIN = 8;
    STARTAREA = STARTAREA &~ $@SpokeToKaan;
    mes "Reset!";
    goto L_close;

L_Reset:
    TUT_var = 0;
    QL_BEGIN = 0;
    STARTAREA = STARTAREA &~ $@SpokeToKaan;
    mes "Reset!";
    goto L_close;

L_close:
    close;

OnInit:
    if(!debug)
        disablenpc "TutDebug";
    end;
}
029-1,32,99,0	script	#tutorialoutside	NPC45,0,0,{
    if (QL_BEGIN >= 8)
        goto L_Warp;
    goto L_ResetTutorial;

L_ResetTutorial:
    QL_BEGIN = 8;
    goto L_Warp;

L_Warp:
    warp "029-2", 114, 92;
    end;
}