summaryrefslogblamecommitdiff
path: root/npc/001-4/traps.txt
blob: 54566fccb66267641c5198bc57ec0f050c814a0e (plain) (tree)





















                                                      
                     
                                                    
                       





                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             












                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             

















                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             











                                                      




                                             










                                             
// TMW2 Scripts
// Author:
//   The Mana World Brazil
// Description:
//   Traps.

function	script	SteelTrap	{
    //if (!(isin(@map$, @x, @y, @x, @y))) goto L_Away;
    if (getnpctimer(0) == 0) goto L_armar;
    goto L_disparar;

L_Away:
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    return;

L_armar:
    initnpctimer;
    setnpcdisplay @object_name$, NPC_TRAP_ONLINE;
    return;

L_disparar:
    setnpctimer 9000;
    setnpcdisplay @object_name$, NPC_TRAP_TRIGGERED;
    percentheal -80, 0;
    specialeffect 11;
    return;
}


001-4,275,204,0	script	#001-4_275x204	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_275x204", NPC_TRAP;
    end;
}

001-4,260,182,0	script	#001-4_260x182	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_260x182", NPC_TRAP;
    end;
}

001-4,231,173,0	script	#001-4_231x173	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_231x173", NPC_TRAP;
    end;
}

001-4,199,171,0	script	#001-4_199x171	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_199x171", NPC_TRAP;
    end;
}

001-4,200,144,0	script	#001-4_200x144	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_200x144", NPC_TRAP;
    end;
}

001-4,247,127,0	script	#001-4_247x127	NPC_TRAP,0,0,{
    @map$ = "001-4";
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_247x127", NPC_TRAP;
    end;
}

001-4,265,135,0	script	#001-4_265x135	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_265x135", NPC_TRAP;
    end;
}

001-4,271,110,0	script	#001-4_271x110	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_271x110", NPC_TRAP;
    end;
}

001-4,190,30,0	script	#001-4_190x30	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_190x30", NPC_TRAP;
    end;
}

001-4,163,33,0	script	#001-4_163x33	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_163x33", NPC_TRAP;
    end;
}

001-4,177,49,0	script	#001-4_177x49	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer5000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_177x49", NPC_TRAP;
    end;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_177x49", NPC_TRAP;
    end;
}

001-4,164,89,0	script	#001-4_164x89	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_164x89", NPC_TRAP;
    end;
}

001-4,130,84,0	script	#001-4_130x84	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_130x84", NPC_TRAP;
    end;
}

001-4,126,47,0	script	#001-4_126x47	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_126x47", NPC_TRAP;
    end;
}

001-4,130,32,0	script	#001-4_130x32	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_130x32", NPC_TRAP;
    end;
}

001-4,107,33,0	script	#001-4_107x33	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_107x33", NPC_TRAP;
    end;
}

001-4,33,141,0	script	#001-4_33x141	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_33x141", NPC_TRAP;
    end;
}

001-4,82,149,0	script	#001-4_82x149	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_82x149", NPC_TRAP;
    end;
}

001-4,42,118,0	script	#001-4_42x118	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_42x118", NPC_TRAP;
    end;
}

001-4,24,106,0	script	#001-4_24x106	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_24x106", NPC_TRAP;
    end;
}

001-4,79,163,0	script	#001-4_79x163	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_79x163", NPC_TRAP;
    end;
}

001-4,42,175,0	script	#001-4_42x175	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_42x175", NPC_TRAP;
    end;
}

001-4,26,184,0	script	#001-4_26x184	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_26x184", NPC_TRAP;
    end;
}

001-4,32,198,0	script	#001-4_32x198	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_32x198", NPC_TRAP;
    end;
}

001-4,102,275,0	script	#001-4_102x275	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_102x275", NPC_TRAP;
    end;
}

001-4,128,274,0	script	#001-4_128x274	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_128x274", NPC_TRAP;
    end;
}

001-4,130,256,0	script	#001-4_130x256	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_130x256", NPC_TRAP;
    end;
}

001-4,128,220,0	script	#001-4_128x220	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_128x220", NPC_TRAP;
    end;
}

001-4,156,212,0	script	#001-4_156x212	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_156x212", NPC_TRAP;
    end;
}

001-4,166,246,0	script	#001-4_166x246	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_166x246", NPC_TRAP;
    end;
}

001-4,176,270,0	script	#001-4_176x270	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_176x270", NPC_TRAP;
    end;
}

001-4,160,270,0	script	#001-4_160x270	NPC_TRAP,0,0,{
    mesn strcharinfo(0);
    mesq l("Something seems off with that!");
    close;

OnTouch:
    @object_name$ = .name$;
    callfunc "SteelTrap";
    close;

OnTimer10000:
    stopnpctimer;
    setnpctimer 0;
    setnpcdisplay "#001-4_160x270", NPC_TRAP;
    end;
}