Archaaz

Member
I am attempting to add Lokai's Skill System to my RunUO server, but have run into an issue involving TickCount. Apparently this was added to the ServUO Core.

I receive the following errors when compiling:

Code:
Errors:
 + Customs/Lokai Skills System/Core/LokaiSkills.cs:
    CS0117: Line 206: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 211: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 213: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Gumps/ShowLokaiSkillsGump.cs:
    CS0117: Line 128: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 129: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 214: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Butchering.cs:
    CS0117: Line 192: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Commerce.cs:
    CS0117: Line 83: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Hypnotism.cs:
    CS0117: Line 40: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 153: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 159: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 165: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 171: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 177: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 183: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 206: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 255: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 261: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 267: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 273: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 279: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 285: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 307: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/PickPocket.cs:
    CS0117: Line 46: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 61: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 67: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 73: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 79: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 85: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 115: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 175: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 266: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Pilfering.cs:
    CS0117: Line 45: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Skinning.cs:
    CS0117: Line 186: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/SpeakToAnimals.cs:
    CS0117: Line 24: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 26: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 54: 'Server.Core' does not contain a definition for 'TickCount'
    CS0117: Line 183: 'Server.Core' does not contain a definition for 'TickCount'
 + Customs/Lokai Skills System/Lokai Skills/Ventriloquism.cs:
    CS0117: Line 39: 'Server.Core' does not contain a definition for 'TickCount'

I replaced Core.TickCount with DateTime.Now, and reduce the errors:
Code:
Errors:
 + Customs/Lokai Skills System/Core/LokaiSkills.cs:
    CS0019: Line 211: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
    CS0019: Line 213: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
 + Customs/Lokai Skills System/Gumps/ShowLokaiSkillsGump.cs:
    CS0019: Line 129: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
    CS0019: Line 214: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
 + Customs/Lokai Skills System/Lokai Skills/PickPocket.cs:
    CS0019: Line 266: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
 + Customs/Lokai Skills System/Lokai Skills/SpeakToAnimals.cs:
    CS0030: Line 26: Cannot convert type 'System.TimeSpan' to 'double'
    CS0019: Line 54: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'
    CS0019: Line 183: Operator '+' cannot be applied to operands of type 'System.DateTime' and 'int'

I am wondering if someone might be so generous as to tell me how I can replace this to make it work on my RunUO server, and whether or not changing Core.TickCount to DateTime.Now will cause any unforseen errors? Many thanks in advance!
 

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back