|
You last visited: Today at 10:08
Advertisement
Can i Take 30 Min Of ur Time ?
Discussion on Can i Take 30 Min Of ur Time ? within the SRO Private Server forum part of the Silkroad Online category.
11/13/2011, 19:06
|
#16
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
Quote:
Originally Posted by ÑõÑ_Ŝŧóp
it will, if (Money == FREE)
|
Money is a type, not a variable. If it was a variable, it should've been money.GetType(). :P
Edit: I'm bored:
Code:
using System;
namespace TimeIsMoney
{
public class TimeSpanEx : TimeSpan
{
public static explicit operator Money(TimeSpanEx ts)
{
return new Money(ts.TotalMinutes);
}
}
public class Money
{
public double Value { get; set; }
public Currency Currency { get; set; }
public Money(double minutes)
{
Value = minutes * 1.3;
Currency = Currency.USD;
}
}
public enum Currency
{
USD,
EUR,
GBP
}
public static class Program
{
static void Main()
{
var timeSpan = new TimeSpan(0, 30, 0);
var money = (Money)((TimeSpanEx)timeSpan);
Console.WriteLine("{0} minutes == {1} {2}", timeSpan.TotalMinutes, money.Value, money.Currency);
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
Edit 2: Compile and run.
Edit 3: TimeSpan is sealed. xD
|
|
|
11/13/2011, 19:42
|
#17
|
elite*gold: 0
Join Date: Sep 2010
Posts: 783
Received Thanks: 920
|
Quote:
Originally Posted by lesderid
Money is a type, not a variable. If it was a variable, it should've been money.GetType(). :P
Edit: I'm bored:
Code:
using System;
namespace TimeIsMoney
{
public class TimeSpanEx : TimeSpan
{
public static explicit operator Money(TimeSpanEx ts)
{
return new Money(ts.TotalMinutes);
}
}
public class Money
{
public double Value { get; set; }
public Currency Currency { get; set; }
public Money(double minutes)
{
Value = minutes * 1.3;
Currency = Currency.USD;
}
}
public enum Currency
{
USD,
EUR,
GBP
}
public static class Program
{
static void Main()
{
var timeSpan = new TimeSpan(0, 30, 0);
var money = (Money)((TimeSpanEx)timeSpan);
Console.WriteLine("{0} minutes == {1} {2}", timeSpan.TotalMinutes, money.Value, money.Currency);
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
Edit 2: Compile and run.
Edit 3: TimeSpan is sealed. xD
|
Fixed. :P
Code:
using System;
namespace TimeIsMoney
{
public class Money
{
public double Value { get; set; }
public Currency Currency { get; set; }
public Money(TimeSpan ts)
{
Value = ts.TotalMinutes * 1.2;
Currency = Currency.EG;
}
}
public enum Currency
{
USD,
EUR,
EG,
GBP
}
public static class Program
{
static void Main()
{
var timeSpan = new TimeSpan(0, 30, 0);
var money = new Money(timeSpan);
Console.WriteLine("{0} minutes == {1} {2}", timeSpan.TotalMinutes, money.Value, money.Currency);
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
Added EG :P.
36 EG For 30min. (1.2EG/m)
|
|
|
11/13/2011, 19:58
|
#18
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
Quote:
Originally Posted by ÑõÑ_Ŝŧóp
Fixed. :P
Code:
using System;
namespace TimeIsMoney
{
public class Money
{
public double Value { get; set; }
public Currency Currency { get; set; }
public Money(TimeSpan ts)
{
Value = ts.TotalMinutes * 1.2;
Currency = Currency.EG;
}
}
public enum Currency
{
USD,
EUR,
EG,
GBP
}
public static class Program
{
static void Main()
{
var timeSpan = new TimeSpan(0, 30, 0);
var money = new Money(timeSpan);
Console.WriteLine("{0} minutes == {1} {2}", timeSpan.TotalMinutes, money.Value, money.Currency);
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
Added EG :P.
36 EG For 30min. (1.2EG/m)
|
Now we lost the point of casting though. :P
|
|
|
11/13/2011, 20:56
|
#19
|
elite*gold: 0
Join Date: Apr 2009
Posts: 298
Received Thanks: 46
|
I can help you tomorrow(gtg sleep now) trough Radmin(it`s lagless than teamviewer and doesn't uses the 80 port).
|
|
|
11/14/2011, 17:15
|
#20
|
elite*gold: 45
Join Date: Nov 2010
Posts: 412
Received Thanks: 113
|
Quote:
Originally Posted by alexutublade
I can help you tomorrow(gtg sleep now) trough Radmin(it`s lagless than teamviewer and doesn't uses the 80 port).
|
Thanx
|
|
|
11/16/2011, 10:45
|
#21
|
elite*gold: 45
Join Date: Nov 2010
Posts: 412
Received Thanks: 113
|
Quote:
Originally Posted by alexutublade
I can help you tomorrow(gtg sleep now) trough Radmin(it`s lagless than teamviewer and doesn't uses the 80 port).
|
But u didn't help me until now =(
|
|
|
Similar Threads
|
Boss Time Spawn in Server Time
05/26/2011 - Eudemons Online - 3 Replies
Anyone her would like to share the boss time spawn? from Monday to Sunday
what place and time.
thanks
|
eve online Time German Time
11/09/2010 - Eve Online - 2 Replies
hier könnt ihr den zeut unterschied nachschauen ;)
The Personal World Clock
|
[QUESTION] skill time/regen time pointer
12/10/2008 - Ace Online / AirRivals - 0 Replies
hi
question is: how to change all skill timer/regen timer at once and static addresses
in ayoris trainer there are boxes for it but i am using the EU version and there they do not work
i also wrote into the RA root address topic that i can't find it for EU
(i know how to get pointers and how to single edit skills/weapons/radar/etc)
i already found some static addresses but they do not work ^^
|
All times are GMT +2. The time now is 10:08.
|
|