Envoy Posted January 8, 2020 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 48 Reputation: 7 Joined: 01/08/19 Last Seen: January 23 Share Posted January 8, 2020 Buenas, quiero hacer que un npc cambie de mapa con respecto al dia de la semana. por ejemplo, si es lunes, está en prontera, martes en izulde y cosas así, hay alguna forma de obtener el dia de la semana en el script? Quote Link to comment Share on other sites More sharing options...
BeWan Posted January 8, 2020 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 403 Reputation: 249 Joined: 07/04/19 Last Seen: 21 hours ago Share Posted January 8, 2020 are you talking about the maintown? Quote Link to comment Share on other sites More sharing options...
Angeluz Posted January 18, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 13 hours ago Share Posted January 18, 2020 Para los días de la semana usa *gettime(<type>) This function will return specified information about the current system time. DT_SECOND - Seconds (of the current minute) DT_MINUTE - Minutes (of the current hour) DT_HOUR - Hour (of the current day) DT_DAYOFWEEK - Week day (constants for MONDAY to SUNDAY are available) DT_DAYOFMONTH - Day of the current month DT_MONTH - Month (constants for JANUARY to DECEMBER are available) DT_YEAR - Year DT_DAYOFYEAR - Day of the year DT_YYYYMMDD - current date in the form YYYYMMDD It will only return numbers. If another type is supplied -1 will be returned. if (gettime(DT_DAYOFWEEK) == SATURDAY) mes "It's a Saturday. I don't work on Saturdays."; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.