Sign In | Sign Up

My Profile

clashblade
9163
.....
Points: 139

Shortcuts

Categories

Post

Ingame Clock (Unnoficial)
Size: Large, Medium, Small Tue Mar 3, 09 01:54 AM | Category: My Postbar
0

hi,

attending to some players request (including myself), I created a clock with pst time you can use inside the game!

the code that was added is this:

t = os.date('*t')

t.hour=-5 --adjusted to gmt-3, change the "-5" to your timezone

if t.hour<=0 then

t.day=t.day-1

t.hour=t.hour+24

elseif t.hour>24 then

t.day=t.day+1

t.hour=t.hour-24

end

claver = [[#c5 Ingame Clock!

#c8PST time= ]]..t.hour..[[:]].. t.min..[[ day ]]..t.day.. [[

GMT+1 time= 8 hrs ahead]]..[[

created by Silverflame, Server Mcomet]]

SetTextPanelText("npc_talk",claver);

SetWinVisable("NPCTALKWIN", true)

you can copy and paste it in a game file under the folder ../script/ui_script, preferably under player_property.lua or system_config.lua below a FUNCTION.

if u paste it in player property.lua it will activate when u click a tab in the char attrib ("C" window), while system_config.lua will be the "I" window.

If u wanna save yourself the trouble, download my file at http://www.myfileupload.net/download.php?file=27f2f23a06e1af033b06f483ce53f95b

hope u enjoy it ^^


Link: http://blog.bitcomet.com/post/85678/ ©
Add to favorites | Quote Reads (1177) | Comments (11)
Prev: Ingame Clock

Related Posts

CommentsReload

clashblade Tue Mar 3, 09 02:01 AM
clashblade Tue Mar 3, 09 09:54 PM

I made the clock as simples as I could so anyone can check in http://lua-users.org/wiki/TutorialDirectory to see what the code means, this way assuring there's no info sent to any third party server( translating: it's not meant to steal your account). Any doubts, ask an IT friend or gm and always useful to say, keep your antivirus running when downloading any file or browsing in the net.

If you didn't understand any of the instructions, post your question here.

cya


clashblade Tue Mar 3, 09 09:55 PM

and up if you like it ^^


clashblade Tue Mar 3, 09 10:12 PM

forgot to say, if u download the file, the clock will be shown when you open system settings window ("I" shortcut) and click the 3rd tab ("Game")


xnd08 (nihao) Tue Mar 10, 09 10:11 AM

eh...can i ask does it mean that if we download your file, we replace the original property.lua file with the downloaded on?

-

sorry I am not good at such things.

-

Thanks in advance!!!


clashblade Tue Mar 10, 09 02:51 PM

that's right :]

but you may want to save the original file in other folder in case you accidentally change something in it.

Also i wrote a thing wrong, it's the "display" tab that will show the clock, not the 3rd tab.

enjoy!


clashblade Sat Mar 21, 09 10:12 PM

new version! fixed a bug of delaying in the clock, added time to turn in quests (still missing duke, infante, archduke and king, let me know the time and day if you have one of those) and added some fireworks.

http://www.2shared.com/file/5145745/619bb2d9/system_config.html

same drill, put it in the right folder and change the value to your timezone.


clashblade Sat Mar 21, 09 11:22 PM

sorry, uploaded the wrong file, this is the right one http://www.2shared.com/file/5146109/1a79e8aa/system_config.html


xnd08 (nihao) Sun Apr 5, 09 12:05 PM

Thanks, the clock is great !!!


clashblade Mon Apr 6, 09 12:01 AM

glad you liked it :]

I'm making a new version with the location of all ores up to lvl 7, genius boy quiz, moonlight box and some other features, it will be the first MWO addon lol

As soon as i find how to make mwo loads correctly the link to macros.

And still missing some reward quest time for titles to add: duke, archduke, infante, king.

If you know any of those, pls post here



TOP
You need to sign in before