From 43e4b7a7063cee0db76865ef9d6c1bdff5a4adc5 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Sat, 3 Mar 2018 20:37:42 -0300 Subject: Traps only trigger ontouch --- npc/001-4/traps.txt | 255 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 160 insertions(+), 95 deletions(-) (limited to 'npc/001-4/traps.txt') diff --git a/npc/001-4/traps.txt b/npc/001-4/traps.txt index 031c0640e..a6c88b080 100644 --- a/npc/001-4/traps.txt +++ b/npc/001-4/traps.txt @@ -29,9 +29,11 @@ L_disparar: 001-4,275,204,0 script #001-4_275x204 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 275; - @y = 204; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -44,9 +46,11 @@ OnTimer10000: } 001-4,260,182,0 script #001-4_260x182 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 260; - @y = 182; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -59,9 +63,11 @@ OnTimer10000: } 001-4,231,173,0 script #001-4_231x173 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 231; - @y = 173; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -74,9 +80,11 @@ OnTimer10000: } 001-4,199,171,0 script #001-4_199x171 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 199; - @y = 171; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -89,9 +97,11 @@ OnTimer10000: } 001-4,200,144,0 script #001-4_200x144 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 200; - @y = 144; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name = .name$; callfunc "SteelTrap"; close; @@ -105,8 +115,11 @@ OnTimer10000: 001-4,247,127,0 script #001-4_247x127 NPC_TRAP,0,0,{ @map$ = "001-4"; - @x = 247; - @y = 127; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -119,9 +132,11 @@ OnTimer10000: } 001-4,265,135,0 script #001-4_265x135 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 265; - @y = 135; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -134,9 +149,11 @@ OnTimer10000: } 001-4,271,110,0 script #001-4_271x110 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 271; - @y = 110; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -149,9 +166,11 @@ OnTimer10000: } 001-4,190,30,0 script #001-4_190x30 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 190; - @y = 30; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -164,9 +183,11 @@ OnTimer10000: } 001-4,163,33,0 script #001-4_163x33 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 163; - @y = 33; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -179,9 +200,11 @@ OnTimer10000: } 001-4,177,49,0 script #001-4_177x49 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 177; - @y = 49; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -200,9 +223,11 @@ OnTimer10000: } 001-4,164,89,0 script #001-4_164x89 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 164; - @y = 89; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -215,9 +240,11 @@ OnTimer10000: } 001-4,130,84,0 script #001-4_130x84 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 130; - @y = 84; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -230,9 +257,11 @@ OnTimer10000: } 001-4,126,47,0 script #001-4_126x47 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 126; - @y = 47; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -245,9 +274,11 @@ OnTimer10000: } 001-4,130,32,0 script #001-4_130x32 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 130; - @y = 32; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -260,9 +291,11 @@ OnTimer10000: } 001-4,107,33,0 script #001-4_107x33 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 107; - @y = 33; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -275,9 +308,11 @@ OnTimer10000: } 001-4,33,141,0 script #001-4_33x141 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 33; - @y = 141; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -290,9 +325,11 @@ OnTimer10000: } 001-4,82,149,0 script #001-4_82x149 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 82; - @y = 149; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -305,9 +342,11 @@ OnTimer10000: } 001-4,42,118,0 script #001-4_42x118 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 42; - @y = 118; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -320,9 +359,11 @@ OnTimer10000: } 001-4,24,106,0 script #001-4_24x106 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 24; - @y = 106; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -335,9 +376,11 @@ OnTimer10000: } 001-4,79,163,0 script #001-4_79x163 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 79; - @y = 163; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -350,9 +393,11 @@ OnTimer10000: } 001-4,42,175,0 script #001-4_42x175 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 42; - @y = 175; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -365,9 +410,11 @@ OnTimer10000: } 001-4,26,184,0 script #001-4_26x184 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 26; - @y = 184; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -380,9 +427,11 @@ OnTimer10000: } 001-4,32,198,0 script #001-4_32x198 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 32; - @y = 198; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -395,9 +444,11 @@ OnTimer10000: } 001-4,102,275,0 script #001-4_102x275 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 102; - @y = 275; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -410,9 +461,11 @@ OnTimer10000: } 001-4,128,274,0 script #001-4_128x274 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 128; - @y = 274; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -425,9 +478,11 @@ OnTimer10000: } 001-4,130,256,0 script #001-4_130x256 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 130; - @y = 256; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -440,9 +495,11 @@ OnTimer10000: } 001-4,128,220,0 script #001-4_128x220 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 128; - @y = 220; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -455,9 +512,11 @@ OnTimer10000: } 001-4,156,212,0 script #001-4_156x212 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 156; - @y = 212; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -470,9 +529,11 @@ OnTimer10000: } 001-4,166,246,0 script #001-4_166x246 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 166; - @y = 246; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -485,9 +546,11 @@ OnTimer10000: } 001-4,176,270,0 script #001-4_176x270 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 176; - @y = 270; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; @@ -500,9 +563,11 @@ OnTimer10000: } 001-4,160,270,0 script #001-4_160x270 NPC_TRAP,0,0,{ - @map$ = "001-4"; - @x = 160; - @y = 270; + mesn strcharinfo(0); + mesq l("Something seems off with that!"); + close; + +OnTouch: @object_name$ = .name$; callfunc "SteelTrap"; close; -- cgit v1.2.3-60-g2f50