[CD3.55] opening npc every 3hrs (scripting fault?)

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
Code:
;;;;;;;;;;Door portal;;;;;;;;
[@start]
#IF
TimeCall 00 00
TIMECALL 03 00
TIMECALL 06 00
TIMECALL 09 00
TIMECALL 12 00
TIMECALL 15 00
TIMECALL 18 00
TIMECALL 21 00
#ACT
mapmove D2001 100 100
goto @doorconnect
#ELSESAY
The time vortex has not connected...\


[@doorconnect]
#IF
TIMECALL 00 05
TIMECALL 03 05
TIMECALL 06 05
TIMECALL 09 05
TIMECALL 12 05
TIMECALL 15 05
TIMECALL 18 05
TIMECALL 21 05
#ACT
EVENTMSG Grobal "The vortex has closed"
goto @start
;;;;;;;;

any ideas why my script dont work? it just keeps teleporting me into the cave :/
 

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
Time call is a call command m8, what u need is

#IF
HOUR 00
#ACT
mapmove D2001 100 100
#ELSESAY
The time vortex has not connected...\

do that with all the hours and will work
 
Upvote 0

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
ah ok thanks... i was looking around for time scripts on lomcn and saw TIMECALL and TIMERECALL so i tried them :L

+rep

---------- Post added at 12:28 PM ---------- Previous post was at 12:27 PM ----------

*when i can give you some* :L give you to much apparently.... not your fault your helpful ^^
Code:
[@MAIN]
#ACT
EventMsg Grobal "The dipolated seal has formed in time and space!"  [COLOR="#FF0000"]<< for 00default to check every 3hrs[/COLOR]

[@NPC]
#IF
HOUR 00
HOUR 03
HOUR 06
HOUR 09
HOUR 12
HOUR 15
HOUR 18
HOUR 21
#ACT
mapmove HD1F1 100 100
goto @doorconnect
#ELSESAY
The time vortex has not connected...\

[@doorconnect]
#IF
HOUR 00
MIN 05
HOUR 03
MIN 05
HOUR 06
MIN 05
HOUR 09
MIN 05
HOUR 12
MIN 05
HOUR 15
MIN 05
HOUR 18
MIN 05
HOUR 21
MIN 05
#ACT
EVENTMSG Grobal "The vortex has closed"
goto @NPC

is that ok now? :s
 
Last edited:
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
No that wont work m8, your basically saying, if the hour is 12 o clock 3 o clock 6 o clock etc then allow it, whereas its impossible to be more than 1 hour at a time lol so you need to do it like this

#IF
HOUR 00
MIN 00 05 ;;<<<< between o clock and 5 past
#ACT
mapmove HD1F1 100 100

#IF
HOUR 03
MIN 00 05 ;;<<<< between o clock and 5 past
#ACT
mapmove HD1F1 100 100

#IF
HOUR 06
MIN 00 05 ;;<<<< between o clock and 5 past
#ACT
mapmove HD1F1 100 100

#IF
HOUR 09
MIN 00 05 ;;<<<< between o clock and 5 past
#ACT
mapmove HD1F1 100 100

etc etc for all the times

For the global message when the gate is closed, you use timecall there

[@_StartUp]
#IF
TIMECALL 00 05
#ACT
goto @announce

#IF
TIMECALL 03 05
#ACT
goto @announce

#IF
TIMECALL 06 05
#ACT
goto @announce

#IF
TIMECALL 09 05
#ACT
goto @announce

[@announce]
#ACT
EVENTMSG Grobal "The vortex has closed"


If i understand what your doing right, then that is exactly what you need.
And lol *bluch* too much rep ty
 
Upvote 0