[2.3] scripting help

Join Discord

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
I want to make a npc which you have to be there and click on the npc at the right time and date

#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK FRI
HOUR 18 19

atm i have this which checks if its friday and between 6 - 7pm and if 2 people are already in the map i want to make it so it check the same thing but on saturday and sunday aswell.

i am not that good at scripting as just started but i tryd these so for none have worked

#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK FRI SAT SUN
HOUR 18 19

#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK FRI
HOUR 18 19
#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK SAT
HOUR 18 19
#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK SUN
HOUR 18 19
#ACT then my command

none of these seem to work and was wondering if you can make the npc check the date for fri sat and sun and also check time between 6 - 7.
 

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
145
Have you tried it on seprate lines? just a thought not upto standards with scripting but thought id offer the advice i would test as no one else has posted back.


[@main]
#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK FRI
DAYOFWEEK SAT
DAYOFWEEK SUN
HOUR 18 19
mapmove MAPNAME CORD CORD
#ELSESAY
You are not aloud in here today!
<Close/@Exit>

Another one you could try is

[@main]
#IF
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK FRI
HOUR 18 19
mapmove MAPNAME CORD CORD
#ELSACT
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK SAT
HOUR 18 19
mapmove MAPNAME CORD CORD
#ELSEACT
CHECKMAPHUMANCOUNT 0125 < 2
DAYOFWEEK SUN
HOUR 18 19
mapmove MAPNAME CORD CORD
#ELSESAY
You are not aloud in here today!
<Close/@Exit>

Obviously you would need to pop the correct map name and cordinates in that you wish the player teles to.
 
Last edited:
Upvote 0

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
145
Ah ok good, sorry it didnt work im fairly rusty when it comes to scripting these days lol.
 
Upvote 0