Login time

Post Reply
azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Login time

Post by azure_glass » Mon Aug 27, 2012 11:27 am

Does mudlet have feature to echo login time?

And how to call that function??

Thanks for help

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Login time

Post by azure_glass » Mon Aug 27, 2012 2:38 pm

I found createStopWatch() function. How make it do echo time in [hour:minute] format?

Kyoshi
Posts: 11
Joined: Sat Aug 11, 2012 5:38 pm

Re: Login time

Post by Kyoshi » Tue Aug 28, 2012 10:42 am

I'm not sure what you're trying to ask here. Do you want it to echo what time it is when you log in to a MUD?

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Login time

Post by azure_glass » Fri Jan 11, 2013 1:51 pm

Trigger on login to set variable:
loginpoczatkowy = 0
loginkoncowy = 0


Timer set to 30 minutes

loginpoczatkowy = loginpoczatkowy + 1
loginkoncowy = loginpoczatkowy / 2
echo("\n You are playing " .. loginkoncowy .. " hours")


Happy mudding :)

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests