diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-03 10:51:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-03 10:51:15 -0300 |
commit | a06c57388e479c660ef915cdc7619101344c2e0f (patch) | |
tree | c5b3da5d3966e087df70b1e63cfe1a994910e113 /npc/015-8-1 | |
parent | aa9f4167edf59b60a4a58e43eb7bed3a2cd91c4e (diff) | |
download | serverdata-a06c57388e479c660ef915cdc7619101344c2e0f.tar.gz serverdata-a06c57388e479c660ef915cdc7619101344c2e0f.tar.bz2 serverdata-a06c57388e479c660ef915cdc7619101344c2e0f.tar.xz serverdata-a06c57388e479c660ef915cdc7619101344c2e0f.zip |
Add 015-8-1 puzzle: Up to 12 traps on the map %%e
Diffstat (limited to 'npc/015-8-1')
-rw-r--r-- | npc/015-8-1/puzzle.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/npc/015-8-1/puzzle.txt b/npc/015-8-1/puzzle.txt index 6c91c6bf0..105187a8a 100644 --- a/npc/015-8-1/puzzle.txt +++ b/npc/015-8-1/puzzle.txt @@ -27,4 +27,47 @@ OnTouch: } +015-8-1,0,0,0 script #SaggyBossTrap01 NPC_TRAP,0,0,{ + end; +OnTouchNPC: +OnTouch: + // instance_id() + SteelTrap(rand2(10, 40), 5, any(0,0,0,1)); + end; + +OnTimer10000: + stopnpctimer; + setnpctimer 0; + setnpcdisplay .name$, NPC_TRAP; + end; + + +OnInstanceInit: + .@x=rand(20,80); + .@y=rand(20,80); + movenpc instance_npcname(.name$), .@x, .@y; + // It's on a wall, let's remove it + if (!checkcell(instance_mapname("015-8-1"), .@x, .@y, cell_chkpass)) { + disablenpc instance_npcname(.name$); + } + end; + +OnInit: + disablenpc .name$; + end; +} + +// Create more traps. (They can be on walls so amount is random >.<) +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap02 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap03 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap04 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap05 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap06 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap07 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap08 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap09 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap10 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap11 NPC_TRAP +015-8-1,0,0,0 duplicate(#SaggyBossTrap01) #SaggyBossTrap12 NPC_TRAP +// twelve traps should be enough |