summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-22 19:18:16 -0200
committerJesusaves <cpntb1@ymail.com>2018-10-22 19:18:16 -0200
commitb1921cb04ab36a383b5db6ffaca1d2894e06b718 (patch)
treecf099714cad0e45620fdbcb42b5f7d4f9c270327
parent21ba706b1ea7de6c4d82c93fc39268ca3f1f2fe6 (diff)
downloadserverdata-b1921cb04ab36a383b5db6ffaca1d2894e06b718.tar.gz
serverdata-b1921cb04ab36a383b5db6ffaca1d2894e06b718.tar.bz2
serverdata-b1921cb04ab36a383b5db6ffaca1d2894e06b718.tar.xz
serverdata-b1921cb04ab36a383b5db6ffaca1d2894e06b718.zip
021-4 Switches
Seu ramo está à frente de 'upstream/master' por 12 submissões.
-rw-r--r--npc/021-4/main.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt
index 04efb6d28..8494d5393 100644
--- a/npc/021-4/main.txt
+++ b/npc/021-4/main.txt
@@ -12,4 +12,25 @@
// check to abort script after a hour. If this happen, everyone inside the cave
// will be banned for cheating. This should not be possible without @monsterignore anyway :<
+// Switches
+function script CindySwitch_Check_214 {
+ .@st1=getvariableofnpc(.lifetime, "#CindySwitch_06")-gettimetick(2);
+ .@st2=getvariableofnpc(.lifetime, "#CindySwitch_07")-gettimetick(2);
+ .@st3=getvariableofnpc(.lifetime, "#CindySwitch_08")-gettimetick(2);
+ .@st4=getvariableofnpc(.lifetime, "#CindySwitch_09")-gettimetick(2);
+ .@st5=getvariableofnpc(.lifetime, "#CindySwitch_10")-gettimetick(2);
+ .@i=0;
+ if (.@st1 > 0) .@i++;
+ if (.@st2 > 0) .@i++;
+ if (.@st3 > 0) .@i++;
+ if (.@st4 > 0) .@i++;
+ if (.@st5 > 0) .@i++;
+ return .@i;
+}
+021-4,77,25,0 duplicate(#CindySwitch_01) #CindySwitch_06 NPC_SWITCH_OFFLINE
+021-4,66,71,0 duplicate(#CindySwitch_01) #CindySwitch_07 NPC_SWITCH_OFFLINE
+021-4,25,57,0 duplicate(#CindySwitch_01) #CindySwitch_08 NPC_SWITCH_OFFLINE
+021-4,23,13,0 duplicate(#CindySwitch_01) #CindySwitch_09 NPC_SWITCH_OFFLINE
+021-4,56,41,0 duplicate(#CindySwitch_01) #CindySwitch_10 NPC_SWITCH_OFFLINE
+