Time and Day added to Game :DDDDDD

Potnoodle

LOMCN Veteran
Veteran
Jul 11, 2010
269
20
45
could also throw your life away with more pointless posts like that 1 anyway as i said earlyer n1 relentless and good luck with anything else you add to your server :)
 

TheDayIDie

Banned
Banned
Dedicated Member
Jul 29, 2011
4,071
99
135
UK
You mean the novelty of setting the time on the server, will win many players?
Remember, that Mirthology server are using a GameInter without even grateful and put me in the credits as we agreed. I can say the same, any guy can open a server with a new GameInter, predesigned by someone else and take all the credit. And what about the Kaori and other veterans who have developed the files?
They have created this community to development of this game, you've learned from this community and give to understand that you do not want to teach or share your knowledge with the rest of "newbies"


PS: I do not care at all put time and day on the server. I just wanted to demonstrate that you already done with hex editor, not scripted.

It's fine helping and releasing scripts but it will get to the point were every server will be identical, everyone can open a server within 5minutes etc. You need to make it so the newbies have something to work for and not just leech work and get money.
 

chinaboy

LOMCN Veteran
Veteran
Feb 14, 2012
269
39
55
china
Code:
;;;;;;;;;;;;
[@NPC_Main_0_3] 
{
#if 
dayofweek sun 
#act 
mov s1 7 
goto @hour 
break 


#if 
dayofweek mon 
#act 
mov s1 1 
goto @hour 
break 


#if 
dayofweek tue 
#act 
mov s1 2 
goto @hour 
break 


#if 
dayofweek wed 
#act 
mov s1 3 
goto @hour 
break 


#if 
dayofweek thu 
#act 
mov s1 4 
goto @hour 
break 


#if 
dayofweek fri 
#act 
mov s1 5 
goto @hour 
break 


#if 
dayofweek sat 
#act 
mov s1 6 
goto @hour 
break 


[@hour] 
#if 
hour 0 
#act 
mov s2 0 
goto @min 
break 


#if 
hour 1 
#act 
mov s2 1 
goto @min 
break 


#if 
hour 2 
#act 
mov s2 2 
goto @min 
break 


#if 
hour 3 
#act 
mov s2 3 
goto @min 
break 


#if 
hour 4 
#act 
mov s2 4 
goto @min 
break 


#if 
hour 5 
#act 
mov s2 5 
goto @min 
break 


#if 
hour 6 
#act 
mov s2 6 
goto @min 
break 


#if 
hour 7 
#act 
mov s2 7 
goto @min 
break 


#if 
hour 8 
#act 
mov s2 8 
goto @min 
break 


#if 
hour 9 
#act 
mov s2 9 
goto @min 
break 


#if 
hour 10 
#act 
mov s2 10 
goto @min 
break 


#if 
hour 11 
#act 
mov s2 11 
goto @min 
break 


#if 
hour 12 
#act 
mov s2 12 
goto @min 
break 


#if 
hour 13 
#act 
mov s2 13 
goto @min 
break 


#if 
hour 14 
#act 
mov s2 14 
goto @min 
break 


#if 
hour 15 
#act 
mov s2 15 
goto @min 
break 


#if 
hour 16 
#act 
mov s2 16 
goto @min 
break 


#if 
hour 17 
#act 
mov s2 17 
goto @min 
break 


#if 
hour 18 
#act 
mov s2 18 
goto @min 
break 


#if 
hour 19 
#act 
mov s2 19 
goto @min 
break 


#if 
hour 20 
#act 
mov s2 20 
goto @min 
break 


#if 
hour 21 
#act 
mov s2 21 
goto @min 
break 


#if 
hour 22 
#act 
mov s2 22 
goto @min 
break 


#if 
hour 23 
#act 
mov s2 23 
goto @min 
break 


[@min] 
#if 
min 0 
#act 
mov s3 00 
goto @xianshi 
break 


#if 
min 1 
#act 
mov s3 01 
goto @xianshi 
break 


#if 
min 2 
#act 
mov s3 02 
goto @xianshi 
break 


#if 
min 3 
#act 
mov s3 03 
goto @xianshi 
break 


#if 
min 4 
#act 
mov s3 04 
goto @xianshi 
break 


#if 
min 5 
#act 
mov s3 05 
goto @xianshi 
break 


#if 
min 6 
#act 
mov s3 06 
goto @xianshi 
break 


#if 
min 7 
#act 
mov s3 07 
goto @xianshi 
break 


#if 
min 8 
#act 
mov s3 08 
goto @xianshi 
break 


#if 
min 9 
#act 
mov s3 09 
goto @xianshi 
break 


#if 
min 10 
#act 
mov s3 10 
goto @xianshi 
break 


#if 
min 11 
#act 
mov s3 11 
goto @xianshi 
break 


#if 
min 12 
#act 
mov s3 12 
goto @xianshi 
break 


#if 
min 13 
#act 
mov s3 13 
goto @xianshi 
break 


#if 
min 14 
#act 
mov s3 14 
goto @xianshi 
break 


#if 
min 15 
#act 
mov s3 15 
goto @xianshi 
break 


#if 
min 16 
#act 
mov s3 16 
goto @xianshi 
break 


#if 
min 17 
#act 
mov s3 17 
goto @xianshi 
break 


#if 
min 18 
#act 
mov s3 18 
goto @xianshi 
break 


#if 
min 19 
#act 
mov s3 19 
goto @xianshi 
break 


#if 
min 20 
#act 
mov s3 20 
goto @xianshi 
break 


#if 
min 21 
#act 
mov s3 21 
goto @xianshi 
break 


#if 
min 22 
#act 
mov s3 22 
goto @xianshi 
break 


#if 
min 23 
#act 
mov s3 23 
goto @xianshi 
break 


#if 
min 24 
#act 
mov s3 24 
goto @xianshi 
break 


#if 
min 25 
#act 
mov s3 25 
goto @xianshi 
break 


#if 
min 26 
#act 
mov s3 26 
goto @xianshi 
break 


#if 
min 27 
#act 
mov s3 27 
goto @xianshi 
break 


#if 
min 28 
#act 
mov s3 28 
goto @xianshi 
break 


#if 
min 29 
#act 
mov s3 29 
goto @xianshi 
break 


#if 
min 30 
#act 
mov s3 30 
goto @xianshi 
break 


#if 
min 31 
#act 
mov s3 31 
goto @xianshi 
break 


#if 
min 32 
#act 
mov s3 32 
goto @xianshi 
break 


#if 
min 33 
#act 
mov s3 33 
goto @xianshi 
break 


#if 
min 34 
#act 
mov s3 34 
goto @xianshi 
break 


#if 
min 35 
#act 
mov s3 35 
goto @xianshi 
break 


#if 
min 36 
#act 
mov s3 36 
goto @xianshi 
break 


#if 
min 37 
#act 
mov s3 37 
goto @xianshi 
break 


#if 
min 38 
#act 
mov s3 38 
goto @xianshi 
break 


#if 
min 39 
#act 
mov s3 39 
goto @xianshi 
break 


#if 
min 40 
#act 
mov s3 40 
goto @xianshi 
break 


#if 
min 41 
#act 
mov s3 41 
goto @xianshi 
break 


#if 
min 42 
#act 
mov s3 42 
goto @xianshi 
break 


#if 
min 43 
#act 
mov s3 43 
goto @xianshi 
break 


#if 
min 44 
#act 
mov s3 44 
goto @xianshi 
break 


#if 
min 45 
#act 
mov s3 45 
goto @xianshi 
break 


#if 
min 46 
#act 
mov s3 46 
goto @xianshi 
break 


#if 
min 47 
#act 
mov s3 47 
goto @xianshi 
break 


#if 
min 48 
#act 
mov s3 48 
goto @xianshi 
break 


#if 
min 49 
#act 
mov s3 49 
goto @xianshi 
break 


#if 
min 50 
#act 
mov s3 50 
goto @xianshi 
break 


#if 
min 51 
#act 
mov s3 51 
goto @xianshi 
break 


#if 
min 52 
#act 
mov s3 52 
goto @xianshi 
break 


#if 
min 53 
#act 
mov s3 53 
goto @xianshi 
break 


#if 
min 54 
#act 
mov s3 54 
goto @xianshi 
break 


#if 
min 55 
#act 
mov s3 55 
goto @xianshi 
break 


#if 
min 56 
#act 
mov s3 56 
goto @xianshi 
break 


#if 
min 57 
#act 
mov s3 57 
goto @xianshi 
break 


#if 
min 58 
#act 
mov s3 58 
goto @xianshi 
break 


#if 
min 59 
#act 
mov s3 59 
goto @xianshi 
break 


[@xianshi] 
#if 
equal s1 1 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期一{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 2 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期二{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 3 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期三{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 4 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期四{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 5 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期五{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 6 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期六{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\


#if 
equal s1 7 
#say 
{FCOLOR/10}<$USERNAME>{FCOLOR/12},你好,今天是{FCOLOR/10}星期天{FCOLOR/12},现在时间是{FCOLOR/10}<$OUTPUT(s2)>点<$OUTPUT(s3)>分{FCOLOR/12}。\ 
\\
<知道了/@exit>\
}
;;;;;;;;;;;
-edit-
Added coded tags. /Hazuki
 
Last edited by a moderator:

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
the fact you redone it and it worked is more likely his script was bad and not serane adding it into the server wrong

I didn't redo it. If you'd have read i simply used %A1 instead of A1. After 3 years of never touching mir and not testing it think my script was quite good.

If hexing is the correct way to add a clock why don't we just get rid of every NPC command and just hex everything in?
 

Potnoodle

LOMCN Veteran
Veteran
Jul 11, 2010
269
20
45
you was claiming you had a faster better solution to it and posted a example of your solution which was wrong if you gonna goto the effort of writing up a supposed fix why not do it properly if it only takes you 2 mins as you claim but instead you post up a "fix" and get arsey when your told it didnt work rofl if you dont like it stop spamming thread and jog on maybe spam some other threads with pointless arguements trying to defend your ego
 

Koriban

Addict
Legendary
Loyal Member
Aug 18, 2006
5,842
215
260
Brighton
you was claiming you had a faster better solution to it and posted a example of your solution which was wrong if you gonna goto the effort of writing up a supposed fix why not do it properly if it only takes you 2 mins as you claim but instead you post up a "fix" and get arsey when your told it didnt work rofl if you dont like it stop spamming thread and jog on maybe spam some other threads with pointless arguements trying to defend your ego

The only one getting "arsey" here is you, fyi.
 

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
you was claiming you had a faster better solution to it and posted a example of your solution which was wrong if you gonna goto the effort of writing up a supposed fix why not do it properly if it only takes you 2 mins as you claim but instead you post up a "fix" and get arsey when your told it didnt work rofl if you dont like it stop spamming thread and jog on maybe spam some other threads with pointless arguements trying to defend your ego

Yes, my solution was faster, more sensible, and better. My 'supposed' fix worked fine. Excuse me for making a typo which i then corrected within an hour of seeing Seranes post.

If you think Rentless's method is a much more practical way of doing it then use his method. Oh wait..
 

Relentless

LOMCN Veteran
Veteran
Mar 9, 2012
494
35
55
Hull-England
Can't test for mir3 as dont have one setup but this should work. (Using ferrits idea.)

Code:
[@main]
#IF
DAYOFWEEK sun
#ACT
mov A1 Sunday
goto @hour
#IF
DAYOFWEEK mon
#ACT
mov A1 Monday
goto @hour
#IF
DAYOFWEEK tue
#ACT
mov A1 Tuesday
goto @hour
#IF
DAYOFWEEK wed
#ACT
mov A1 Wednesday
goto @hour
#IF
DAYOFWEEK thu
#ACT
mov A1 Thursday
goto @hour
#IF
DAYOFWEEK fri
#ACT
mov A1 Friday
goto @hour
#IF
DAYOFWEEK sat
#ACT
mov A1 Saturday
goto @hour

[@hour]
#IF
HOUR 0
#ACT
mov A2 00
goto @min
#IF
HOUR 1
#ACT
mov A2 01
goto @min
#IF
HOUR 2
#ACT
mov A2 02
goto @min
#IF
HOUR 3
#ACT
mov A2 03
goto @min
#IF
HOUR 4
#ACT
mov A2 04
goto @min
#IF
HOUR 5
#ACT
mov A2 05
goto @min
#IF
HOUR 6
#ACT
mov A2 06
goto @min
#IF
HOUR 7
#ACT
mov A2 07
goto @min
#IF
HOUR 8
#ACT
mov A2 08
goto @min
#IF
HOUR 9
#ACT
mov A2 09
goto @min
#IF
HOUR 10
#ACT
mov A2 10
goto @min
#IF
HOUR 11
#ACT
mov A2 11
goto @min
#IF
HOUR 12
#ACT
mov A2 12
goto @min
#IF
HOUR 13
#ACT
mov A2 13
goto @min
#IF
HOUR 14
#ACT
mov A2 14
goto @min
#IF
HOUR 15
#ACT
mov A2 15
goto @min
#IF
HOUR 16
#ACT
mov A2 16
goto @min
#IF
HOUR 17
#ACT
mov A2 17
goto @min
#IF
HOUR 18
#ACT
mov A2 18
goto @min
#IF
HOUR 19
#ACT
mov A2 19
goto @min
#IF
HOUR 20
#ACT
mov A2 20
goto @min
#IF
HOUR 21
#ACT
mov A2 21
goto @min
#IF
HOUR 22
#ACT
mov A2 22
goto @min
#IF
HOUR 23
#ACT
mov A2 23
goto @min

[@min]
#IF
MIN 1
#ACT
mov A3 1
goto @time
#IF
MIN 2
#ACT
mov A3 2
goto @time
#IF
MIN 3
#ACT
mov A3 3
goto @time
#IF
MIN 4
#ACT
mov A3 4
goto @time
#IF
MIN 5
#ACT
mov A3 5
goto @time
#IF
MIN 6
#ACT
mov A3 6
goto @time
#IF
MIN 7
#ACT
mov A3 7
goto @time
#IF
MIN 8
#ACT
mov A3 8
goto @time
#IF
MIN 9
#ACT
mov A3 9
goto @time
#IF
MIN 10
#ACT
mov A3 10
goto @time
#IF
MIN 11
#ACT
mov A3 11
goto @time
#IF
MIN 12
#ACT
mov A3 12
goto @time
#IF
MIN 13
#ACT
mov A3 13
goto @time
#IF
MIN 14
#ACT
mov A3 14
goto @time
#IF
MIN 15
#ACT
mov A3 15
goto @time
#IF
MIN 16
#ACT
mov A3 16
goto @time
#IF
MIN 17
#ACT
mov A3 17
goto @time
#IF
MIN 18
#ACT
mov A3 18
goto @time
#IF
MIN 19
#ACT
mov A3 19
goto @time
#IF
MIN 20
#ACT
mov A3 20
goto @time
#IF
MIN 21
#ACT
mov A3 21
goto @time
#IF
MIN 22
#ACT
mov A3 22
goto @time
#IF
MIN 23
#ACT
mov A3 23
goto @time
#IF
MIN 24
#ACT
mov A3 24
goto @time
#IF
MIN 25
#ACT
mov A3 25
goto @time
#IF
MIN 26
#ACT
mov A3 26
goto @time
#IF
MIN 27
#ACT
mov A3 27
goto @time
#IF
MIN 28
#ACT
mov A3 28
goto @time
#IF
MIN 29
#ACT
mov A3 29
goto @time
#IF
MIN 30
#ACT
mov A3 30
goto @time
#IF
MIN 31
#ACT
mov A3 31
goto @time
#IF
MIN 32
#ACT
mov A3 32
goto @time
#IF
MIN 33
#ACT
mov A3 33
goto @time
#IF
MIN 34
#ACT
mov A3 34
goto @time
#IF
MIN 35
#ACT
mov A3 35
goto @time
#IF
MIN 36
#ACT
mov A3 36
goto @time
#IF
MIN 37
#ACT
mov A3 37
goto @time
#IF
MIN 38
#ACT
mov A3 38
goto @time
#IF
MIN 39
#ACT
mov A3 39
goto @time
#IF
MIN 40
#ACT
mov A3 40
goto @time
#IF
MIN 41
#ACT
mov A3 41
goto @time
#IF
MIN 42
#ACT
mov A3 42
goto @time
#IF
MIN 43
#ACT
mov A3 43
goto @time
#IF
MIN 44
#ACT
mov A3 44
goto @time
#IF
MIN 45
#ACT
mov A3 45
goto @time
#IF
MIN 46
#ACT
mov A3 46
goto @time
#IF
MIN 47
#ACT
mov A3 47
goto @time
#IF
MIN 48
#ACT
mov A3 48
goto @time
#IF
MIN 49
#ACT
mov A3 49
goto @time
#IF
MIN 50
#ACT
mov A3 50
goto @time
#IF
MIN 51
#ACT
mov A3 51
goto @time
#IF
MIN 52
#ACT
mov A3 52
goto @time
#IF
MIN 53
#ACT
mov A3 53
goto @time
#IF
MIN 54
#ACT
mov A3 54
goto @time
#IF
MIN 55
#ACT
mov A3 55
goto @time
#IF
MIN 56
#ACT
mov A3 56
goto @time
#IF
MIN 57
#ACT
mov A3 57
goto @time
#IF
MIN 58
#ACT
mov A3 58
goto @time
#IF
MIN 59
#ACT
mov A3 59
goto @time

[@time]
Day: <$OUTPUT(A1)>
Time: <$OUTPUT(A2)>:<$OUTPUT(A3)>

Thankyou :P, didnt relise i could do it like this :P
 

Potnoodle

LOMCN Veteran
Veteran
Jul 11, 2010
269
20
45
lol what was faster and better about it not working? oh wait... and no im not getting arsey just find it funny it only worked after Hazuki fixed it lol so yea your method didnt work "Hazuki's" did after he done what most people would call the right way
 

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
It's fine helping and releasing scripts but it will get to the point were every server will be identical, everyone can open a server within 5minutes etc. You need to make it so the newbies have something to work for and not just leech work and get money.

How many servers I have opened?
 

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
IS IT possible to add date and month and year too? i been trying but doesnt stay on correct date/month/year
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
Just read this thread,

What's the point in starting a thread without releasing something on a forum that's here as a development tool for Mir! The guys who have shown how to actually do it in code have been slated and the guy who has just boasted he can do it without telling anything has been congratulated... what a topsy turvy world we live in!

As for the Date, I don't know of any way of doing in via NPC's but you can have a very small VB program to update the Game3G database (or a text file) with the current date and then simply read it. i.e.

As attached.. http://www.sting3g.com/idaBigA/SetDate.rar

I have uploaded the project as well in case you want to change the format the date is stored in (currently "YYYY-MM-DD") or change how often the timer runs (currently 60 Seconds)

Then just add this to your NPC..

Code:
#ACT
LoadValue A1 [QuestDiary/System/CurrentDate.txt] [DateSetting] [Date]
#SAY
Date is <$OUTPUT(A1)>\

Just run the program when you start the server and enable the timer function.

You can add anything you want really to this, anything you can read on your PC you can store in either the database or a text file... want the weather... the latest news? You can get it all with a little ingenuity.
 
  • Like
Reactions: Ashran

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
ty for that ida, will try that

---------- Post Merged at 05:56 PM ---------- Previous Post was at 05:31 PM ----------

excellent programme, IDA.

programme works great + rep