[QUESTION] Night and Day system menu

User Tag List

Results 1 to 5 of 5
  1. #1
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [QUESTION] Night and Day system

    I want to know if it is posible to change the time where the game enters in night mode. Currently is set at 9:00 pm but I want to change it to 6:00 pm. Same with dawn change it to 8:00 am. Thanks!

    [QUESTION] Night and Day system
  2. #2
    gravestalker's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am pretty sure this is client side so I think you cant change it. You could change the timezones so that when its 6:00 pm your time its 8 pm server time

  3. #3
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn...I was thinking that too. But what If I edit the files with WinMPQ and then repack the archive, will it work?

  4. #4
    CoolManBob's Avatar Active Member
    Reputation
    92
    Join Date
    Jul 2006
    Posts
    208
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That would work theoretically, given two things, one: you know where the variables are located that set the time when dawn and time of night, and two: these values are not hardcoded in the actual executable and if that is true as it most likely is you won't be able to change them

  5. #5
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I already know where the variables are but I have the feeling that is hardcoded

    Code:
    GAMETIME_DAWN = ( 5 * 60) + 30;		-- 5:30 AM
    GAMETIME_DUSK = (21 * 60) +  0;		-- 9:00 PM
    
    function GameTimeFrame_Update()
    	local hour, minute = GetGameTime();
    	local time = (hour * 60) + minute;
    	if(time ~= this.timeOfDay) then
    		this.timeOfDay = time;
    		local minx = 0;
    		local maxx = 50/128;
    		local miny = 0;
    		local maxy = 50/64;
    		if(time < GAMETIME_DAWN or time >= GAMETIME_DUSK) then
    			minx = minx + 0.5;
    			maxx = maxx + 0.5;
    		end
    		GameTimeTexture:SetTexCoord(minx, maxx, miny, maxy);
    
    		if(GameTooltip:IsOwned(this)) then
    			GameTimeFrame_UpdateTooltip(hour, minute);
    		end
    	end
    end
    
    function GameTimeFrame_UpdateTooltip(hours, minutes)
    	if(TwentyFourHourTime) then
    		GameTooltip:SetText(format(TEXT(TIME_TWENTYFOURHOURS), hours, minutes));
    	else
    		local pm = 0;
    		if(hours >= 12) then
    			pm = 1;
    		end
    		if(hours > 12) then
    			hours = hours - 12;
    		end
    		if(hours == 0) then
    			hours = 12;
    		end
    		if(pm == 0) then
    			GameTooltip:SetText(format(TEXT(TIME_TWELVEHOURAM), hours, minutes));
    		else
    			GameTooltip:SetText(format(TEXT(TIME_TWELVEHOURPM), hours, minutes));
    		end
    	end
    end
    
    function GameTime_GetTime()
    	local hour, minute = GetGameTime();
    
    	if(TwentyFourHourTime) then
    		return format(TEXT(TIME_TWENTYFOURHOURS), hour, minute);
    	else
    		local pm = 0;
    		if(hour >= 12) then
    			pm = 1;
    		end
    		if(hour > 12) then
    			hour = hour - 12;
    		end
    		if(hour == 0) then
    			hour = 12;
    		end
    		if(pm == 0) then
    			return format(TEXT(TIME_TWELVEHOURAM), hour, minute);
    		else
    			return format(TEXT(TIME_TWELVEHOURPM), hour, minute);
    		end
    	end
    end
    Extracted from \Interface\FrameXML of locale-enUS.mpq
    Last edited by marcelo_20xx; 10-03-2008 at 03:45 AM.

Similar Threads

  1. [Trinity] A few questions regarding class quests and mail system 3.3.5
    By Visarion in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-26-2013, 08:35 AM
  2. Neverwinter nights and WOW model question
    By Flagg78 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-02-2010, 06:45 AM
  3. [Question] night elf tattoos and draenei horns
    By kaji8975 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 10-08-2008, 02:53 AM
  4. [Question] Action and change of race ?
    By Werteur in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-06-2007, 06:20 AM
  5. Late nights and Early Mornings
    By wowaddikt in forum Community Chat
    Replies: 18
    Last Post: 05-19-2007, 03:34 PM
All times are GMT -5. The time now is 03:30 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search