diff options
Diffstat (limited to 'server/sample/npc_test_time.txt')
-rw-r--r-- | server/sample/npc_test_time.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/sample/npc_test_time.txt b/server/sample/npc_test_time.txt new file mode 100644 index 0000000..c3d4eae --- /dev/null +++ b/server/sample/npc_test_time.txt @@ -0,0 +1,25 @@ +//===== Hercules Script ======================================= +//= Sample: Time Test +//===== By: ================================================== +//= rAthena Dev Team +//===== Current Version: ===================================== +//= 20151115 +//===== Description: ========================================= +//= Demonstrates time commands. +//============================================================ + +prontera,157,181,6 script Time Sample 8W_SOLDIER,{ + mes "[Time Sample]"; + mes " System Tick : " + gettimetick(0); + mes " Time Tick : " + gettimetick(1); + mes " GETTIME_SECOND : " + gettime(GETTIME_SECOND) + " (Sec)"; + mes " GETTIME_MINUTE : " + gettime(GETTIME_MINUTE) + " (Min)"; + mes " GETTIME_HOUR : " + gettime(GETTIME_HOUR) + " (Hour)"; + mes " GETTIME_WEEKDAY : " + gettime(GETTIME_WEEKDAY) + " (WeekDay)"; + mes "GETTIME_DAYOFMONTH : " + gettime(GETTIME_DAYOFMONTH) + " (MonthDay)"; + mes " GETTIME_MONTH : " + gettime(GETTIME_MONTH) + " (Month)"; + mes " GETTIME_YEAR : " + gettime(GETTIME_YEAR) + " (Year)"; + mes " GETTIME_DAYOFYEAR : " + gettime(GETTIME_DAYOFYEAR) + " (Day of Year)"; + mes " gettimestr : " + gettimestr("%Y-%m/%d %H:%M:%S",19); + close; +} |