Register for your free account! | Forgot your password?

You last visited: Today at 13:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



is_am is_pm functions

Discussion on is_am is_pm functions within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
is_am is_pm functions

Code:
function is_am()
    local hour = tonumber(os.date("%H"))
    return hour < 13
end
Code:
function is_pm()
    local hour = tonumber(os.date("%H"))
    return hour > 12
end
gute nacht
Mr. 'Avenue™ is offline  
Thanks
7 Users
Old 04/23/2015, 23:37   #2

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Schönes Ding!

Geht allerdings etwas kürzer:
Code:
function is_am()
	return tonumber(os.date("%H")) < 13
end
Code:
function is_pm()
	return tonumber(os.date("%H")) > 12
end
rollback is offline  
Thanks
1 User
Old 04/23/2015, 23:49   #3
 
elite*gold: 5
Join Date: Mar 2015
Posts: 499
Received Thanks: 376
nice
KΛIƬӨ is offline  
Old 04/24/2015, 00:04   #4
 
elite*gold: 0
Join Date: Jan 2015
Posts: 138
Received Thanks: 59
Wofür is das?
.Nirgendwer. is offline  
Thanks
1 User
Old 04/24/2015, 03:41   #5
 
OoKaMi_'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 269
Received Thanks: 96
Darf ich mal fragen, für was die Funktion gut ist ?
OoKaMi_ is offline  
Old 04/24/2015, 12:36   #6
 
socressor's Avatar
 
elite*gold: 1300
Join Date: Sep 2008
Posts: 927
Received Thanks: 379
Danke fürs Release

Quote:
Originally Posted by OoKaMi_ View Post
Darf ich mal fragen, für was die Funktion gut ist ?
Quote:
Originally Posted by .Nirgendwer. View Post
Wofür is das?

Da is de Lösung ;D


AM und PM
socressor is offline  
Old 04/25/2015, 11:56   #7
 
elite*gold: 0
Join Date: Sep 2013
Posts: 491
Received Thanks: 675
Wo ist Remix?
Er muss es noch verbessern
.Kibito is offline  
Thanks
1 User
Old 04/25/2015, 12:25   #8
 
elite*gold: 0
Join Date: Jan 2015
Posts: 239
Received Thanks: 585
Quote:
Originally Posted by .Kibito View Post
Wo ist Remix?
Er muss es noch verbessern
Code:
function is_am() 
	return tonumber(os.date("%H")) < 13
end
Die andere Funktion ist unnötig.
Einfach not is_am() nutzen.
i[Remix] is offline  
Thanks
4 Users
Reply

Tags
function, is_am, is_pm, lua, quest


Similar Threads Similar Threads
All Quest Functions Over 670 functions
06/08/2013 - Metin2 PServer Guides & Strategies - 21 Replies
Gretings this is very simple tut ther is all organized quest functions based on last pub rev 2089 If you know some quest functions is not ther let me know "if valid function of corse" addimage addmapsignal add_bgm_info
vb.net Functions
08/05/2012 - .NET Languages - 2 Replies
#closerequest
New UDF - Old Functions :D
07/11/2009 - GW Exploits, Hacks, Bots, Tools & Macros - 14 Replies
xxx



All times are GMT +2. The time now is 13:06.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.