Timecall problems in server.

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
I search Timecall in forum, becouse i can't fix it in my server now.
I have it in 00default :

Code:
[@_StartUp]
#IF
#ACT
TimeCall 15 07 @Eventmsg
TimeCall 15 08 @Eventmsg
TimeCall 15 09 @Eventmsg
TimeCall 15 10 @Eventmsg
TimeCall 15 11 @Eventmsg
TimeCall 15 12 @Eventmsg


[@Eventmsg]
#ACT
linemsg [grobal] "prueba funciona"
sysmsg "funciona"
BREAK

I see in anothers post this script:

Code:
#IF
TimeCall 15 07
#ACT
eventmsg [grobal] "its work"
break

Any can post the correct form for create a time script, every day same hour recall a npc.
I don't need script move npc, i need script for recall with timecall.


Thanks.
 

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
@IdaBiga

I write it in my script:

[@_Startup]
#ACT
TimeCall 16 42 @EventOpen

[@EventOpen]
#ACT
LineMsg [Grobal] "The Event Is Now Open For 10 Minutes. Please Teleport To The Event Room using the Event NPC"

Its not work... i dont know why, is posible error for crueldragon setup ?
Or is needed script call in system ?
 
Upvote 0

Ardbeg

Legend
Legendary
Aug 8, 2004
3,211
1
144
260
Southern England
On Ida's example the actions after the [@SpeakingClock] are surrounded by braces. { }
That might be your problem.

Code:
[@SpeakingClock]
 {     ---------------HERE
 #ACT
TimeCall 10 00 @Its1000
TimeCall 10 30 @Its1030
TimeCall 11 00 @Its1100
TimeCall 11 30 @Its1130
TimeCall 12 00 @Its1200

 [@Its1000]
 #ACT
 Speak "Its 10:00"

 [@Its1030]
 #ACT
 Speak "Its 10:30"

 [@Its1100]
 #ACT
 Speak "Its 11:00"

 [@Its1130]
 #ACT
 Speak "Its 11:30"

 [@Its1200]
 #ACT
 Speak "Its 12:00"
 }   ---------------HERE
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
Yeah i think its now i try it. Thanks.

---------- Post Merged at 03:35 PM ---------- Previous Post was at 03:16 PM ----------

[@_StartUp]
#IF
#ACT
#CALL [System\Calls.txt] @Invocations


[@Invocations]
{
#IF
#ACT
TimeCall 17 33 @Speak
TimeCall 17 34 @Speak
TimeCall 17 35 @Speak
TimeCall 17 36 @Speak
TimeCall 17 37 @Speak



[@Speak]
#IF
#ACT
Eventmsg [Grobal] "Mensage funcional"
break
}



No work...any know how solve it?
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
On an NPC (doesn't matter which).

Code:
[@_StartUp]
#CALL [System\Calls.txt] @Invocations

In the file System\Calls.txt

Code:
[@Invocations]
{
#IF
#ACT
TimeCall 17 33 @Speak
TimeCall 17 34 @Speak
TimeCall 17 35 @Speak
TimeCall 17 36 @Speak
TimeCall 17 37 @Speak

[@Speak]
#IF
#ACT
Eventmsg Grobal "Mensage funcional"
break
}

No reason that should not work, although I have removed the [ and ] from around grobal.
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
It does work, you must be doing something fundamentally wrong.

The other option is to use DelayGoto, Hour and Min

i.e.

Code:
[@_Startup]
#ACT
Goto @StartTimer

[@StartTimer]
#ACT
DelayGoto [grobal] 300 @CheckTime

[@CheckTime]
#IF
Hour 17 17  ;Hour Must Be 17 - i.e. Between 17:00 and 17:59
Min 25 30   ;Minute must be between 25 and 30, link with Hour above, this means it must be between 17:25 and 17:30
#ACT
Speak "OMG!  Its about 17:25 ish... "

#IF
#ACT
Goto @StartTimer
 
Upvote 0