1local STEP_1 = 00
2local STEP_2 = 00
3local STEP_3 = 00
4local FastEffect = 400
5local PATH_EFFECT = {
6 [01] = {
7 [01] = {3979, 1860, 14},
8 [02] = {4001, 1859, 14},
9 [03] = {4000, 1847, 14},
10 [04] = {3992, 1848, 14},
11 [05] = {3993, 1856, 14},
12 [06] = {3996, 1855, 14},
13 [07] = {3995, 1851, 14},
14 };
15 [02] = {
16 [01] = {4062, 1860, 14},
17 [02] = {4084, 1859, 14},
18 [03] = {4083, 1847, 14},
19 [04] = {4075, 1848, 14},
20 [05] = {4076, 1856, 14},
21 [06] = {4079, 1855, 14},
22 [07] = {4078, 1851, 14},
23 };
24 [03] = {
25 [01] = {4145, 1860, 14},
26 [02] = {4167, 1859, 14},
27 [03] = {4166, 1847, 14},
28 [04] = {4158, 1848, 14},
29 [05] = {4159, 1856, 14},
30 [06] = {4162, 1855, 14},
31 [07] = {4161, 1851, 14},
32 };
33}
34local WAY_EFFECT = {
35 [01] = 22;
36 [02] = 12;
37 [03] = 08;
38 [04] = 08;
39 [05] = 03;
40 [06] = 04;
41 [07] = 11;
42}
43function onEffectPath(pos, count, cid, idd)
44 local player = Player(cid)
45 if idd == 01 then
46 if STEP_1 > 00 then
47 if STEP_1 == 01 then
48 if count == WAY_EFFECT[STEP_1] then
49 local tile = Tile(pos.x + 1, pos.y, pos.z)
50 local playerPosition = tile:getTopCreature()
51 if playerPosition ~= nil then
52 if playerPosition:isPlayer() then
53 if playerPosition:getDirection() == 00 then
54 STEP_1 = 02
55 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
56 local id = 01
57 EffectPos:sendMagicEffect(38)
58 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
59 else
60 STEP_1 = 00
61 return true
62 end
63 else
64 STEP_1 = 00
65 return true
66 end
67 else
68 STEP_1 = 00
69 return true
70 end
71 else
72 local position = Position(pos.x + 1, pos.y, pos.z)
73 count = count + 1
74 position:sendMagicEffect(38)
75 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
76 end
77 elseif STEP_1 == 02 then
78 if count == WAY_EFFECT[STEP_1] then
79 local tile = Tile(pos.x, pos.y - 1, pos.z)
80 local playerPosition = tile:getTopCreature()
81 if playerPosition ~= nil then
82 if playerPosition:isPlayer() then
83 if playerPosition:getDirection() == 03 then
84 STEP_1 = 03
85 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
86 local id = 01
87 EffectPos:sendMagicEffect(38)
88 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
89 else
90 STEP_1 = 00
91 return true
92 end
93 else
94 STEP_1 = 00
95 return true
96 end
97 else
98 STEP_1 = 00
99 return true
100 end
101 else
102 local position = Position(pos.x, pos.y - 1, pos.z)
103 count = count + 1
104 position:sendMagicEffect(38)
105 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
106 end
107 elseif STEP_1 == 03 then
108 if count == WAY_EFFECT[STEP_1] then
109 local tile = Tile(pos.x - 1, pos.y, pos.z)
110 local playerPosition = tile:getTopCreature()
111 if playerPosition ~= nil then
112 if playerPosition:isPlayer() then
113 if playerPosition:getDirection() == 02 then
114 STEP_1 = 04
115 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
116 local id = 01
117 EffectPos:sendMagicEffect(38)
118 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
119 else
120 STEP_1 = 00
121 return true
122 end
123 else
124 STEP_1 = 00
125 return true
126 end
127 else
128 STEP_1 = 00
129 return true
130 end
131 else
132 local position = Position(pos.x - 1, pos.y, pos.z)
133 count = count + 1
134 position:sendMagicEffect(38)
135 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
136 end
137 elseif STEP_1 == 04 then
138 if count == WAY_EFFECT[STEP_1] then
139 local tile = Tile(pos.x, pos.y + 1, pos.z)
140 local playerPosition = tile:getTopCreature()
141 if playerPosition ~= nil then
142 if playerPosition:isPlayer() then
143 if playerPosition:getDirection() == 01 then
144 STEP_1 = 05
145 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
146 local id = 01
147 EffectPos:sendMagicEffect(38)
148 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
149 else
150 STEP_1 = 00
151 return true
152 end
153 else
154 STEP_1 = 00
155 return true
156 end
157 else
158 STEP_1 = 00
159 return true
160 end
161 else
162 local position = Position(pos.x, pos.y + 1, pos.z)
163 count = count + 1
164 position:sendMagicEffect(38)
165 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
166 end
167 elseif STEP_1 == 05 then
168 if count == WAY_EFFECT[STEP_1] then
169 local tile = Tile(pos.x + 1, pos.y, pos.z)
170 local playerPosition = tile:getTopCreature()
171 if playerPosition ~= nil then
172 if playerPosition:isPlayer() then
173 if playerPosition:getDirection() == 00 then
174 STEP_1 = 06
175 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
176 local id = 01
177 EffectPos:sendMagicEffect(38)
178 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
179 else
180 STEP_1 = 00
181 return true
182 end
183 else
184 STEP_1 = 00
185 return true
186 end
187 else
188 STEP_1 = 00
189 return true
190 end
191 else
192 local position = Position(pos.x + 1, pos.y, pos.z)
193 count = count + 1
194 position:sendMagicEffect(38)
195 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
196 end
197 elseif STEP_1 == 06 then
198 if count == WAY_EFFECT[STEP_1] then
199 local tile = Tile(pos.x, pos.y - 1, pos.z)
200 local playerPosition = tile:getTopCreature()
201 if playerPosition ~= nil then
202 if playerPosition:isPlayer() then
203 if playerPosition:getDirection() == 03 then
204 STEP_1 = 07
205 local EffectPos = Position(PATH_EFFECT[idd][STEP_1][01], PATH_EFFECT[idd][STEP_1][02], PATH_EFFECT[idd][STEP_1][03])
206 local id = 01
207 EffectPos:sendMagicEffect(38)
208 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
209 else
210 STEP_1 = 00
211 return true
212 end
213 else
214 STEP_1 = 00
215 return true
216 end
217 else
218 STEP_1 = 00
219 return true
220 end
221 else
222 local position = Position(pos.x, pos.y - 1, pos.z)
223 count = count + 1
224 position:sendMagicEffect(38)
225 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
226 end
227 elseif STEP_1 == 07 then
228 if count == WAY_EFFECT[STEP_1] then
229 local party = player:getParty()
230 if not party then
231
232 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
233 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[10][01].RECOMPENSA[02])
234 player:getPosition():sendMagicEffect(15)
235 else
236 local members = party:getMembers()
237 members[#members + 1] = party:getLeader()
238 for _, member in ipairs(members) do
239
240 member:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
241 member:getPosition():sendMagicEffect(15)
242 end
243 end
244 return true
245 else
246 local position = Position(pos.x - 1, pos.y, pos.z)
247 count = count + 1
248 position:sendMagicEffect(38)
249 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
250 end
251 end
252 end
253 end
254 if idd == 02 then
255 if STEP_2 > 00 then
256 if STEP_2 == 01 then
257 if count == WAY_EFFECT[STEP_2] then
258 local tile = Tile(pos.x + 1, pos.y, pos.z)
259 local playerPosition = tile:getTopCreature()
260 if playerPosition ~= nil then
261 if playerPosition:isPlayer() then
262 if playerPosition:getDirection() == 00 then
263 STEP_2 = 02
264 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
265 local id = 01
266 EffectPos:sendMagicEffect(38)
267 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
268 else
269 STEP_2 = 00
270 return true
271 end
272 else
273 STEP_2 = 00
274 return true
275 end
276 else
277 STEP_2 = 00
278 return true
279 end
280 else
281 local position = Position(pos.x + 1, pos.y, pos.z)
282 count = count + 1
283 position:sendMagicEffect(38)
284 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
285 end
286 elseif STEP_2 == 02 then
287 if count == WAY_EFFECT[STEP_2] then
288 local tile = Tile(pos.x, pos.y - 1, pos.z)
289 local playerPosition = tile:getTopCreature()
290 if playerPosition ~= nil then
291 if playerPosition:isPlayer() then
292 if playerPosition:getDirection() == 03 then
293 STEP_2 = 03
294 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
295 local id = 01
296 EffectPos:sendMagicEffect(38)
297 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
298 else
299 STEP_2 = 00
300 return true
301 end
302 else
303 STEP_2 = 00
304 return true
305 end
306 else
307 STEP_2 = 00
308 return true
309 end
310 else
311 local position = Position(pos.x, pos.y - 1, pos.z)
312 count = count + 1
313 position:sendMagicEffect(38)
314 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
315 end
316 elseif STEP_2 == 03 then
317 if count == WAY_EFFECT[STEP_2] then
318 local tile = Tile(pos.x - 1, pos.y, pos.z)
319 local playerPosition = tile:getTopCreature()
320 if playerPosition ~= nil then
321 if playerPosition:isPlayer() then
322 if playerPosition:getDirection() == 02 then
323 STEP_2 = 04
324 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
325 local id = 01
326 EffectPos:sendMagicEffect(38)
327 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
328 else
329 STEP_2 = 00
330 return true
331 end
332 else
333 STEP_2 = 00
334 return true
335 end
336 else
337 STEP_2 = 00
338 return true
339 end
340 else
341 local position = Position(pos.x - 1, pos.y, pos.z)
342 count = count + 1
343 position:sendMagicEffect(38)
344 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
345 end
346 elseif STEP_2 == 04 then
347 if count == WAY_EFFECT[STEP_2] then
348 local tile = Tile(pos.x, pos.y + 1, pos.z)
349 local playerPosition = tile:getTopCreature()
350 if playerPosition ~= nil then
351 if playerPosition:isPlayer() then
352 if playerPosition:getDirection() == 01 then
353 STEP_2 = 05
354 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
355 local id = 01
356 EffectPos:sendMagicEffect(38)
357 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
358 else
359 STEP_2 = 00
360 return true
361 end
362 else
363 STEP_2 = 00
364 return true
365 end
366 else
367 STEP_2 = 00
368 return true
369 end
370 else
371 local position = Position(pos.x, pos.y + 1, pos.z)
372 count = count + 1
373 position:sendMagicEffect(38)
374 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
375 end
376 elseif STEP_2 == 05 then
377 if count == WAY_EFFECT[STEP_2] then
378 local tile = Tile(pos.x + 1, pos.y, pos.z)
379 local playerPosition = tile:getTopCreature()
380 if playerPosition ~= nil then
381 if playerPosition:isPlayer() then
382 if playerPosition:getDirection() == 00 then
383 STEP_2 = 06
384 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
385 local id = 01
386 EffectPos:sendMagicEffect(38)
387 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
388 else
389 STEP_2 = 00
390 return true
391 end
392 else
393 STEP_2 = 00
394 return true
395 end
396 else
397 STEP_2 = 00
398 return true
399 end
400 else
401 local position = Position(pos.x + 1, pos.y, pos.z)
402 count = count + 1
403 position:sendMagicEffect(38)
404 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
405 end
406 elseif STEP_2 == 06 then
407 if count == WAY_EFFECT[STEP_2] then
408 local tile = Tile(pos.x, pos.y - 1, pos.z)
409 local playerPosition = tile:getTopCreature()
410 if playerPosition ~= nil then
411 if playerPosition:isPlayer() then
412 if playerPosition:getDirection() == 03 then
413 STEP_2 = 07
414 local EffectPos = Position(PATH_EFFECT[idd][STEP_2][01], PATH_EFFECT[idd][STEP_2][02], PATH_EFFECT[idd][STEP_2][03])
415 local id = 01
416 EffectPos:sendMagicEffect(38)
417 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
418 else
419 STEP_2 = 00
420 return true
421 end
422 else
423 STEP_2 = 00
424 return true
425 end
426 else
427 STEP_2 = 00
428 return true
429 end
430 else
431 local position = Position(pos.x, pos.y - 1, pos.z)
432 count = count + 1
433 position:sendMagicEffect(38)
434 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
435 end
436 elseif STEP_2 == 07 then
437 if count == WAY_EFFECT[STEP_2] then
438 local party = player:getParty()
439 if not party then
440
441 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
442 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[10][01].RECOMPENSA[02])
443 player:getPosition():sendMagicEffect(15)
444 else
445 local members = party:getMembers()
446 members[#members + 1] = party:getLeader()
447 for _, member in ipairs(members) do
448
449 member:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
450 member:getPosition():sendMagicEffect(15)
451 end
452 end
453 return true
454 else
455 local position = Position(pos.x - 1, pos.y, pos.z)
456 count = count + 1
457 position:sendMagicEffect(38)
458 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
459 end
460 end
461 end
462 end
463 if idd == 03 then
464 if STEP_3 > 00 then
465 if STEP_3 == 01 then
466 if count == WAY_EFFECT[STEP_3] then
467 local tile = Tile(pos.x + 1, pos.y, pos.z)
468 local playerPosition = tile:getTopCreature()
469 if playerPosition ~= nil then
470 if playerPosition:isPlayer() then
471 if playerPosition:getDirection() == 00 then
472 STEP_3 = 02
473 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
474 local id = 01
475 EffectPos:sendMagicEffect(38)
476 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
477 else
478 STEP_3 = 00
479 return true
480 end
481 else
482 STEP_3 = 00
483 return true
484 end
485 else
486 STEP_3 = 00
487 return true
488 end
489 else
490 local position = Position(pos.x + 1, pos.y, pos.z)
491 count = count + 1
492 position:sendMagicEffect(38)
493 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
494 end
495 elseif STEP_3 == 02 then
496 if count == WAY_EFFECT[STEP_3] then
497 local tile = Tile(pos.x, pos.y - 1, pos.z)
498 local playerPosition = tile:getTopCreature()
499 if playerPosition ~= nil then
500 if playerPosition:isPlayer() then
501 if playerPosition:getDirection() == 03 then
502 STEP_3 = 03
503 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
504 local id = 01
505 EffectPos:sendMagicEffect(38)
506 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
507 else
508 STEP_3 = 00
509 return true
510 end
511 else
512 STEP_3 = 00
513 return true
514 end
515 else
516 STEP_3 = 00
517 return true
518 end
519 else
520 local position = Position(pos.x, pos.y - 1, pos.z)
521 count = count + 1
522 position:sendMagicEffect(38)
523 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
524 end
525 elseif STEP_3 == 03 then
526 if count == WAY_EFFECT[STEP_3] then
527 local tile = Tile(pos.x - 1, pos.y, pos.z)
528 local playerPosition = tile:getTopCreature()
529 if playerPosition ~= nil then
530 if playerPosition:isPlayer() then
531 if playerPosition:getDirection() == 02 then
532 STEP_3 = 04
533 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
534 local id = 01
535 EffectPos:sendMagicEffect(38)
536 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
537 else
538 STEP_3 = 00
539 return true
540 end
541 else
542 STEP_3 = 00
543 return true
544 end
545 else
546 STEP_3 = 00
547 return true
548 end
549 else
550 local position = Position(pos.x - 1, pos.y, pos.z)
551 count = count + 1
552 position:sendMagicEffect(38)
553 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
554 end
555 elseif STEP_3 == 04 then
556 if count == WAY_EFFECT[STEP_3] then
557 local tile = Tile(pos.x, pos.y + 1, pos.z)
558 local playerPosition = tile:getTopCreature()
559 if playerPosition ~= nil then
560 if playerPosition:isPlayer() then
561 if playerPosition:getDirection() == 01 then
562 STEP_3 = 05
563 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
564 local id = 01
565 EffectPos:sendMagicEffect(38)
566 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
567 else
568 STEP_3 = 00
569 return true
570 end
571 else
572 STEP_3 = 00
573 return true
574 end
575 else
576 STEP_3 = 00
577 return true
578 end
579 else
580 local position = Position(pos.x, pos.y + 1, pos.z)
581 count = count + 1
582 position:sendMagicEffect(38)
583 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
584 end
585 elseif STEP_3 == 05 then
586 if count == WAY_EFFECT[STEP_3] then
587 local tile = Tile(pos.x + 1, pos.y, pos.z)
588 local playerPosition = tile:getTopCreature()
589 if playerPosition ~= nil then
590 if playerPosition:isPlayer() then
591 if playerPosition:getDirection() == 00 then
592 STEP_3 = 06
593 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
594 local id = 01
595 EffectPos:sendMagicEffect(38)
596 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
597 else
598 STEP_3 = 00
599 return true
600 end
601 else
602 STEP_3 = 00
603 return true
604 end
605 else
606 STEP_3 = 00
607 return true
608 end
609 else
610 local position = Position(pos.x + 1, pos.y, pos.z)
611 count = count + 1
612 position:sendMagicEffect(38)
613 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
614 end
615 elseif STEP_3 == 06 then
616 if count == WAY_EFFECT[STEP_3] then
617 local tile = Tile(pos.x, pos.y - 1, pos.z)
618 local playerPosition = tile:getTopCreature()
619 if playerPosition ~= nil then
620 if playerPosition:isPlayer() then
621 if playerPosition:getDirection() == 03 then
622 STEP_3 = 07
623 local EffectPos = Position(PATH_EFFECT[idd][STEP_3][01], PATH_EFFECT[idd][STEP_3][02], PATH_EFFECT[idd][STEP_3][03])
624 local id = 01
625 EffectPos:sendMagicEffect(38)
626 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, idd)
627 else
628 STEP_3 = 00
629 return true
630 end
631 else
632 STEP_3 = 00
633 return true
634 end
635 else
636 STEP_3 = 00
637 return true
638 end
639 else
640 local position = Position(pos.x, pos.y - 1, pos.z)
641 count = count + 1
642 position:sendMagicEffect(38)
643 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
644 end
645 elseif STEP_3 == 07 then
646 if count == WAY_EFFECT[STEP_3] then
647 local party = player:getParty()
648 if not party then
649
650 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
651 player:setStorageValue(_SYSTEM.DANGEROUS[10][01].RECOMPENSA[01], _SYSTEM.DANGEROUS[10][01].RECOMPENSA[02])
652 player:getPosition():sendMagicEffect(15)
653 else
654 local members = party:getMembers()
655 members[#members + 1] = party:getLeader()
656 for _, member in ipairs(members) do
657
658 member:setStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE, 08)
659 member:getPosition():sendMagicEffect(15)
660 end
661 end
662 return true
663 else
664 local position = Position(pos.x - 1, pos.y, pos.z)
665 count = count + 1
666 position:sendMagicEffect(38)
667 addEvent(onEffectPath, FastEffect, position, count, player.uid, idd)
668 end
669 end
670 end
671 end
672end
673function onUse(player, item, fromPosition, target, toPosition, isHotkey)
674 local party = player:getParty()
675 -- PATH EFFECT
676 if item.uid == 10600 then
677 if player:getStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE) == 07 then
678 if STEP_1 == 00 then
679 STEP_1 = 01
680 local id = 01
681 local EffectPos = Position(PATH_EFFECT[01][STEP_1][01], PATH_EFFECT[01][STEP_1][02], PATH_EFFECT[01][STEP_1][03])
682 EffectPos:sendMagicEffect(38)
683 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, 01)
684 return true
685 else
686 player:getPosition():sendMagicEffect(03)
687 return true
688 end
689 else
690 player:getPosition():sendMagicEffect(03)
691 return true
692 end
693 end
694 if item.uid == 10601 then
695 if player:getStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE) == 07 then
696 if STEP_2 == 00 then
697 STEP_2 = 01
698 local id = 01
699 local EffectPos = Position(PATH_EFFECT[02][STEP_2][01], PATH_EFFECT[02][STEP_2][02], PATH_EFFECT[02][STEP_2][03])
700 EffectPos:sendMagicEffect(38)
701 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, 02)
702 return true
703 else
704 player:getPosition():sendMagicEffect(03)
705 return true
706 end
707 else
708 player:getPosition():sendMagicEffect(03)
709 return true
710 end
711 end
712 if item.uid == 10602 then
713 if player:getStorageValue(_SYSTEM.DANGEROUS[10][01].STORAGE) == 07 then
714 if STEP_3 == 00 then
715 STEP_3 = 01
716 local id = 01
717 local EffectPos = Position(PATH_EFFECT[03][STEP_3][01], PATH_EFFECT[03][STEP_3][02], PATH_EFFECT[03][STEP_3][03])
718 EffectPos:sendMagicEffect(38)
719 addEvent(onEffectPath, FastEffect, EffectPos, id, player.uid, 03)
720 return true
721 else
722 player:getPosition():sendMagicEffect(03)
723 return true
724 end
725 else
726 player:getPosition():sendMagicEffect(03)
727 return true
728 end
729 end
730 return true
731end
732