demented

Member
Hello All,
I'm trying to convert the new Bod System and Venders From TimeSpan to DateTime to work with FS-Gen Taming and am Baffled and a little overwhelmed too say the least.I did borrow some code from the BOD revamp release, but I still keep getting errors pls help.

see Attached for scripts and script changes
also Posting -debug version of received errors

Server.@Port=2593
Shadowguard.ReadyDuration=30
Shadowguard.RandomizeInstances=False
Staff.Staffbody=False
Staff.UseColoring=True;
Staff.GiveBoots=True
Staff.CutHair=False
Staff.CutFacialHair=False
Staff.Owner=1001
Staff.Developer=1001
Staff.Administrator=1001
Staff.Seer=467
Staff.GameMaster=39
Staff.Counselor=3
TestCenter.Enabled=false
TreasureMaps.Enabled=True
TreasureMaps.LootChance=.01
TreasureMaps.ResetTime=30.0
Vendors.@RestockDelay=00:01:00:00
Vendors.@MaxSell=500
VetRewards.Enabled=true
VetRewards.AgeCheckOnUse=false
VetRewards.SkillCapRewards=False
VetRewards.SkillCapBonus=200
VetRewards.SkillCapBonusLevels=4
VetRewards.RewardInterval=30:00:00:00
VetRewards.StartingLevel=0
XmlSpawner2.Sockets=true
XmlSpawner2.Points=true
XmlSpawner2.Factions=false

Scripts: Compiling C# scripts...Failed with: 16 errors, 3 warnings
Warnings:
+ Customs/New Systems/Harvest System/Garden/GardenDeed.cs:
CS0162: Line 139: Unreachable code detected
+ Customs/New Systems/World Omniporter v2.5/WorldOmniporter.cs:
CS0162: Line 324: Unreachable code detected
CS0168: Line 957: The variable 'e' is declared but never used
+ Customs/New Systems/Yard and Garden System 10-05/Yard and Garden System 10-05
/Items/YardFountain.cs:
CS1717: Line 33: Assignment made to same variable; did you mean to assign so
mething else?
Errors:
+ Commands/GenTeleporter.cs:
CS1729: Line 166: 'Server.Items.WorldOmniporter' does not contain a construc
tor that takes 0 arguments
CS1729: Line 176: 'Server.Items.WorldOmniporter' does not contain a construc
tor that takes 0 arguments
+ Items/Containers/Container.cs:
CS0103: Line 197: The name 'canDrop' does not exist in the current context
CS0103: Line 207: The name 'canDrop' does not exist in the current context
CS0103: Line 245: The name 'cenDrop' does not exist in the current context
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/CharmSpell.cs:
CS0117: Line 160: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 253: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 316: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/CloneSpell.cs:
CS0117: Line 139: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 278: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/MassCharmSpell.cs:
CS0117: Line 152: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 212: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/PeerSpell.cs:
CS0117: Line 155: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 223: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ranger/S
pells/NoxBowSpell.cs:
CS0103: Line 104: The name 'defender' does not exist in the current context
CS0103: Line 104: The name 'defender' does not exist in the current context
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Rogue/Sp
ells/Charm.cs:
CS0117: Line 168: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 260: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 341: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Mobiles/PlayerMobile.cs:
CS0029: Line 3775: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3779: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3779: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3788: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3792: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3792: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3801: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3805: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3805: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3814: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3818: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3818: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3827: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3831: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3831: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3840: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3844: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3844: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3853: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3857: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3857: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 3866: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS1502: Line 3870: The best overloaded method match for 'Server.Engines.Bulk
Orders.BulkOrderSystem.SetNextBulkOrder(Server.Engines.BulkOrders.BODType, Serve
r.Mobiles.PlayerMobile, System.DateTime)' has some invalid arguments
CS1503: Line 3870: Argument 3: cannot convert from 'System.TimeSpan' to 'Sys
tem.DateTime'
CS0029: Line 4483: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS0029: Line 4487: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS0029: Line 4497: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
CS0029: Line 4501: Cannot implicitly convert type 'System.DateTime' to 'Syst
em.TimeSpan'
+ Customs/New Systems/OWLTR/New/Daat99 Control Center Gumps.cs:
CS1002: Line 285: ; expected
CS1525: Line 285: Invalid expression term ')'
CS0019: Line 330: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 338: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 339: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 340: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0019: Line 342: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 343: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 360: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 368: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 369: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 370: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0019: Line 372: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 373: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 390: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 399: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 400: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 402: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 403: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 405: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0103: Line 411: The name 'SmallCarpenterBOD' does not exist in the current
context
CS0246: Line 411: The type or namespace name 'SmallCarpenterBOD' could not b
e found (are you missing a using directive or an assembly reference?)
CS0019: Line 422: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 431: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 432: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 434: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 435: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 437: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 438: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Mobiles/NPCs/Blacksmith.cs:
CS0019: Line 107: Operator '<' cannot be applied to operands of type 'System
.TimeSpan' and 'System.DateTime'
CS0019: Line 123: Operator '<' cannot be applied to operands of type 'System
.TimeSpan' and 'System.DateTime'
CS0029: Line 125: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 127: Operator '<' cannot be applied to operands of type 'System
.TimeSpan' and 'System.DateTime'
CS0019: Line 131: Operator '<' cannot be applied to operands of type 'System
.TimeSpan' and 'System.DateTime'
CS0029: Line 133: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0029: Line 160: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 173: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 178: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Mobiles/NPCs/Tailor.cs:
CS0019: Line 60: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 76: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 78: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0019: Line 80: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 84: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 86: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0029: Line 113: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 126: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 131: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Mobiles/NPCs/Weaponsmith.cs:
CS0019: Line 66: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 82: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 84: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0019: Line 86: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 90: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 92: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0029: Line 119: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 132: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 137: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Mobiles/NPCs/Weaver.cs:
CS0019: Line 53: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 69: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 71: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0019: Line 73: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0019: Line 77: Operator '<' cannot be applied to operands of type 'System.
TimeSpan' and 'System.DateTime'
CS0029: Line 79: Cannot implicitly convert type 'System.DateTime' to 'System
.TimeSpan'
CS0029: Line 106: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 119: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 124: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Services/BulkOrders/BulkOrderSystem.cs:
CS1001: Line 175: Identifier expected
CS1026: Line 209: ) expected
CS1002: Line 209: ; expected
CS1525: Line 209: Invalid expression term ')'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
*******UPDATED ERROR MSG*******
* I fixed some of the warning msgs and errors to shorten my error list *

Also including my AnimalTrainer that i already converted but seems to not throw any errors?
and including PlayerMobile with changes made....
* also Including daat's Control Gump.cs Also Trying to Include the OWLTR system *
 

Attachments

  • Blacksmith.cs
    6.7 KB · Views: 2
  • Weaver.cs
    4.6 KB · Views: 0
  • Weaponsmith.cs
    5.2 KB · Views: 0
  • Tailor.cs
    4.8 KB · Views: 0
  • AnimalTrainer.cs
    20.6 KB · Views: 1
  • BulkOrderSystem.cs
    31.5 KB · Views: 4
  • PlayerMobile.cs
    167.5 KB · Views: 0
  • Daat99 Control Center Gumps.cs
    28.4 KB · Views: 0
Last edited:
ok I reverted everything back from DateTime to the original TimeSpan
Now Here is my errors
--------------------------------------------------------------------------------

ServUO - [https://www.servuo.com] Version 0.5, Build 6324.7220
Core: Running with arguments: -debug
Core: Optimizing for 4 processors
RandomImpl: CSPRandom (Software)
Core: Loading config...

Accounts.AccountsPerIp=1
Accounts.AutoCreateAccounts=true
Accounts.@RestrictDeletion=true
Accounts.DeleteDelay=07:00:00:00
Accounts.PasswordCommandEnabled=false
Accounts.ProtectPasswords=NewCrypt
AutoSave.Enabled=true
AutoSave.Frequency=00:00:05:00
AutoSave.WarningTime=00:00:00:15
Champions.Enabled=true
Champions.RotateDelay=01:00:00:00
Champions.GoldPiles=50
Champions.GoldMin=2500
Champions.GoldMax=7500
Champions.HarrowerGoldPiles=75
Champions.HarrowerGoldMin=5000
Champions.HarrowerGoldMax=10000
Champions.PowerScrolls=6
Champions.StatScrolls=16
Champions.ScrollChance=0.1
Champions.TranscendenceChance=50.0
Champions.Rank2RedSkulls=5
Champions.Rank3RedSkulls=10
Champions.Rank4RedSkulls=13
Champions.Rank1MaxKills=256
Champions.Rank2MaxKills=128
Champions.Rank3MaxKills=64
Champions.Rank4MaxKills=32
Chat.Enabled=true
Chat.AllowCreateChannels=true
Chat.DefaultChannel=Help
CityLoyalty.Enabled=True
CityLoyalty.JoinWait=7
CityLoyalty.BannerCost=250000
CityLoyalty.BannerCooldown=24
CityLoyalty.TradeDealPeriod=7
CityLoyalty.TradeDealCooldown=7
CityLoyalty.TradeDealCost=2000000
CityLoyalty.TradeDealUtilizationPeriod=24
CityLoyalty.MaxBallotBoxes=10
CityLoyalty.AnnouncementPeriod=48
CityTrading.TurnInGold=10000
CityTrading.CrateDuration=24
CityTrading.AmbushWaitDuration=5
CityTrading.AmbusherDelete=10
Client.AllowRegular=true
Client.AllowUOTD=true
Client.AllowGod=true
Client.AllowEC=true
Client.KickDelay=20
Email.EmailServer= null
Email.EmailPort= 25
Email.EmailSsl= false
Email.FromAddress= null
Email.CrashAddresses= null
Email.SpeechLogPageAddresses= null
Email.EmailUsername= null
Email.EmailPassword= null
Expansion.CurrentExpansion=TOL
Factions.NewCoMLocation=True
Factions.Enabled=False
General.Metrics=false
Honesty.Enabled=True
Honesty.MaxGeneration=1000
Honesty.TrammelGeneration=True
Housing.AccountHouseLimit=1
Loot.Enabled=True
Loot.FeluccaLuckBonus=1000
Loot.FeluccaBudgetBonus=100
Loot.MaxBaseBudget=700
Loot.MinBaseBudget=150
Loot.MaxAdjustedBudget=1450
Loot.MinAdjustedBudget=150
Loot.MaxProps=11
PlayerCaps.SkillCap=1000
PlayerCaps.TotalSkillCap=7000
PlayerCaps.TotalStatCap=225
PlayerCaps.StatCap=125
PlayerCaps.EnablePlayerStatTimeDelay=false
PlayerCaps.PlayerStatTimeDelay=00:00:15:00
PlayerCaps.EnablePetStatTimeDelay=false
PlayerCaps.PetStatTimeDelay=00:00:05:00
PlayerCaps.@EnableAntiMacro=false
PlayerCaps.PlayerChanceToGainStats=5.0
PlayerCaps.PetChanceToGainStats=5.0
Reports.AutoGenerate=false
Reports.Path=reports
Server.Name=My Shard
Server.AutoDetect=true
Server.@Address=
Server.@Port=2593
Shadowguard.ReadyDuration=30
Shadowguard.RandomizeInstances=False
Staff.Staffbody=False
Staff.UseColoring=True;
Staff.GiveBoots=True
Staff.CutHair=False
Staff.CutFacialHair=False
Staff.Owner=1001
Staff.Developer=1001
Staff.Administrator=1001
Staff.Seer=467
Staff.GameMaster=39
Staff.Counselor=3
TestCenter.Enabled=false
TreasureMaps.Enabled=True
TreasureMaps.LootChance=.01
TreasureMaps.ResetTime=30.0
Vendors.@RestockDelay=00:01:00:00
Vendors.@MaxSell=500
VetRewards.Enabled=true
VetRewards.AgeCheckOnUse=false
VetRewards.SkillCapRewards=False
VetRewards.SkillCapBonus=200
VetRewards.SkillCapBonusLevels=4
VetRewards.RewardInterval=30:00:00:00
VetRewards.StartingLevel=0
XmlSpawner2.Sockets=true
XmlSpawner2.Points=true
XmlSpawner2.Factions=false

Scripts: Compiling C# scripts...Failed with: 11 errors, 4 warnings
Warnings:
+ Customs/New Systems/Harvest System/Garden/GardenDeed.cs:
CS0162: Line 139: Unreachable code detected
+ Customs/New Systems/Harvest System/Garden/SecureGarden.cs:
CS0162: Line 116: Unreachable code detected
+ Customs/New Systems/World Omniporter v2.5/WorldOmniporter.cs:
CS0162: Line 324: Unreachable code detected
CS0168: Line 957: The variable 'e' is declared but never used
+ Customs/New Systems/Yard and Garden System 10-05/Yard and Garden System 10-05
/Items/YardFountain.cs:
CS1717: Line 33: Assignment made to same variable; did you mean to assign so
mething else?
Errors:
+ Commands/GenTeleporter.cs:
CS1729: Line 166: 'Server.Items.WorldOmniporter' does not contain a construc
tor that takes 0 arguments
CS1729: Line 176: 'Server.Items.WorldOmniporter' does not contain a construc
tor that takes 0 arguments
+ Items/Containers/Container.cs:
CS0103: Line 197: The name 'canDrop' does not exist in the current context
CS0103: Line 207: The name 'canDrop' does not exist in the current context
CS0103: Line 245: The name 'cenDrop' does not exist in the current context
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/CharmSpell.cs:
CS0117: Line 160: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 253: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 316: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/CloneSpell.cs:
CS0117: Line 139: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 278: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/MassCharmSpell.cs:
CS0117: Line 152: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 212: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ancient/
Spells/PeerSpell.cs:
CS0117: Line 155: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 223: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Ranger/S
pells/NoxBowSpell.cs:
CS0103: Line 104: The name 'defender' does not exist in the current context
CS0103: Line 104: The name 'defender' does not exist in the current context
+ Customs/New Systems/ACC Systems/Complete Spell System/-=+ 03 Systems/Rogue/Sp
ells/Charm.cs:
CS0117: Line 168: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 260: 'Server.Layer' does not contain a definition for 'Unused_x
F'
CS0117: Line 341: 'Server.Layer' does not contain a definition for 'Unused_x
F'
+ Customs/New Systems/OWLTR/New/Daat99 Control Center Gumps.cs:
CS1002: Line 285: ; expected
CS1525: Line 285: Invalid expression term ')'
CS0019: Line 330: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 338: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 339: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 340: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0019: Line 342: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 343: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 360: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 368: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 369: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 370: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0019: Line 372: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 373: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 390: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 399: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 400: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 402: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 403: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 405: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0103: Line 411: The name 'SmallCarpenterBOD' does not exist in the current
context
CS0246: Line 411: The type or namespace name 'SmallCarpenterBOD' could not b
e found (are you missing a using directive or an assembly reference?)
CS0019: Line 422: Operator '&&' cannot be applied to operands of type 'bool'
and 'System.TimeSpan'
CS0019: Line 431: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 432: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 434: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 435: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
CS0019: Line 437: Operator '<=' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
CS0029: Line 438: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Mobiles/NPCs/AnimalTrainer.cs:
CS0019: Line 129: Operator '==' cannot be applied to operands of type 'Syste
m.DateTime' and 'System.TimeSpan'
CS0029: Line 134: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 136: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 138: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 140: Cannot implicitly convert type 'System.TimeSpan' to 'Syste
m.DateTime'
CS0029: Line 165: Cannot implicitly convert type 'System.DateTime' to 'Syste
m.TimeSpan'
+ Services/BulkOrders/BulkOrderSystem.cs:
CS1002: Line 655: ; expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Any ideas? not sure what I'm missing
 

Attachments

  • AnimalTrainer.cs
    20.3 KB · Views: 1
Last edited:
In general, when one script expects a DateTime, and all you have is a TimeSpan, what you need to determine is what DateTime does your TimeSpan modify? In other words, a TimeSpan is like "5 minutes", and your DateTime would be like "5 Minutes past 4 O'Clock in the afternoon on Wednesday, the 27th of April." Obviously you can't directly compare them, but you can use one to derive the other, if you know how the other was constructed.

Typical Example:

DateTime x is equal to the Time and day that I last used a skill. TimeSpan y is the amount of time I have to wait to use the skill again. I can't compare x to y like this: if (x < y) because they are different things. But, I CAN compare y to the TimeSpan z that has elapsed since x. That would be "TimeSpan z = (TimeSpan)(DateTime.UTCNow - x);" Once you have z, you can compare it to y to see if you have waited long enough to use the skill again.
 
ok I got some warning msgs outa the way and some error just down To Daat Control Center Gump...
Error Msg am working on after ready some weblinks
--------------------------------------------------------------------------------

ServUO - [https://www.servuo.com] Version 0.5, Build 6324.7220
Core: Running with arguments: -debug
Core: Optimizing for 4 processors
RandomImpl: CSPRandom (Software)
Core: Loading config...

Accounts.AccountsPerIp=1
Accounts.AutoCreateAccounts=true
Accounts.@RestrictDeletion=true
Accounts.DeleteDelay=07:00:00:00
Accounts.PasswordCommandEnabled=false
Accounts.ProtectPasswords=NewCrypt
AutoSave.Enabled=true
AutoSave.Frequency=00:00:05:00
AutoSave.WarningTime=00:00:00:15
Champions.Enabled=true
Champions.RotateDelay=01:00:00:00
Champions.GoldPiles=50
Champions.GoldMin=2500
Champions.GoldMax=7500
Champions.HarrowerGoldPiles=75
Champions.HarrowerGoldMin=5000
Champions.HarrowerGoldMax=10000
Champions.PowerScrolls=6
Champions.StatScrolls=16
Champions.ScrollChance=0.1
Champions.TranscendenceChance=50.0
Champions.Rank2RedSkulls=5
Champions.Rank3RedSkulls=10
Champions.Rank4RedSkulls=13
Champions.Rank1MaxKills=256
Champions.Rank2MaxKills=128
Champions.Rank3MaxKills=64
Champions.Rank4MaxKills=32
Chat.Enabled=true
Chat.AllowCreateChannels=true
Chat.DefaultChannel=Help
CityLoyalty.Enabled=True
CityLoyalty.JoinWait=7
CityLoyalty.BannerCost=250000
CityLoyalty.BannerCooldown=24
CityLoyalty.TradeDealPeriod=7
CityLoyalty.TradeDealCooldown=7
CityLoyalty.TradeDealCost=2000000
CityLoyalty.TradeDealUtilizationPeriod=24
CityLoyalty.MaxBallotBoxes=10
CityLoyalty.AnnouncementPeriod=48
CityTrading.TurnInGold=10000
CityTrading.CrateDuration=24
CityTrading.AmbushWaitDuration=5
CityTrading.AmbusherDelete=10
Client.AllowRegular=true
Client.AllowUOTD=true
Client.AllowGod=true
Client.AllowEC=true
Client.KickDelay=20
Email.EmailServer= null
Email.EmailPort= 25
Email.EmailSsl= false
Email.FromAddress= null
Email.CrashAddresses= null
Email.SpeechLogPageAddresses= null
Email.EmailUsername= null
Email.EmailPassword= null
Expansion.CurrentExpansion=TOL
Factions.NewCoMLocation=True
Factions.Enabled=False
General.Metrics=false
Honesty.Enabled=True
Honesty.MaxGeneration=1000
Honesty.TrammelGeneration=True
Housing.AccountHouseLimit=1
Loot.Enabled=True
Loot.FeluccaLuckBonus=1000
Loot.FeluccaBudgetBonus=100
Loot.MaxBaseBudget=700
Loot.MinBaseBudget=150
Loot.MaxAdjustedBudget=1450
Loot.MinAdjustedBudget=150
Loot.MaxProps=11
PlayerCaps.SkillCap=1000
PlayerCaps.TotalSkillCap=7000
PlayerCaps.TotalStatCap=225
PlayerCaps.StatCap=125
PlayerCaps.EnablePlayerStatTimeDelay=false
PlayerCaps.PlayerStatTimeDelay=00:00:15:00
PlayerCaps.EnablePetStatTimeDelay=false
PlayerCaps.PetStatTimeDelay=00:00:05:00
PlayerCaps.@EnableAntiMacro=false
PlayerCaps.PlayerChanceToGainStats=5.0
PlayerCaps.PetChanceToGainStats=5.0
Reports.AutoGenerate=false
Reports.Path=reports
Server.Name=My Shard
Server.AutoDetect=true
Server.@Address=
Server.@Port=2593
Shadowguard.ReadyDuration=30
Shadowguard.RandomizeInstances=False
Staff.Staffbody=False
Staff.UseColoring=True;
Staff.GiveBoots=True
Staff.CutHair=False
Staff.CutFacialHair=False
Staff.Owner=1001
Staff.Developer=1001
Staff.Administrator=1001
Staff.Seer=467
Staff.GameMaster=39
Staff.Counselor=3
TestCenter.Enabled=false
TreasureMaps.Enabled=True
TreasureMaps.LootChance=.01
TreasureMaps.ResetTime=30.0
Vendors.@RestockDelay=00:01:00:00
Vendors.@MaxSell=500
VetRewards.Enabled=true
VetRewards.AgeCheckOnUse=false
VetRewards.SkillCapRewards=False
VetRewards.SkillCapBonus=200
VetRewards.SkillCapBonusLevels=4
VetRewards.RewardInterval=30:00:00:00
VetRewards.StartingLevel=0
XmlSpawner2.Sockets=true
XmlSpawner2.Points=true
XmlSpawner2.Factions=false

Scripts: Compiling C# scripts...Failed with: 1 errors, 2 warnings
Warnings:
+ Customs/New Systems/Harvest System/Garden/GardenDeed.cs:
CS0162: Line 139: Unreachable code detected
+ Customs/New Systems/Harvest System/Garden/SecureGarden.cs:
CS0162: Line 116: Unreachable code detected
Errors:
+ Customs/New Systems/OWLTR/New/Daat99 Control Center Gumps.cs:
CS0176: Line 287: Member 'System.TimeSpan.FromHours(double)' cannot be acces
sed with an instance reference; qualify it with a type name instead
CS0176: Line 287: Member 'System.TimeSpan.FromMinutes(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 287: Member 'System.TimeSpan.FromSeconds(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 296: Member 'System.TimeSpan.FromHours(double)' cannot be acces
sed with an instance reference; qualify it with a type name instead
CS0176: Line 296: Member 'System.TimeSpan.FromMinutes(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 296: Member 'System.TimeSpan.FromSeconds(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 305: Member 'System.TimeSpan.FromHours(double)' cannot be acces
sed with an instance reference; qualify it with a type name instead
CS0176: Line 305: Member 'System.TimeSpan.FromMinutes(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 305: Member 'System.TimeSpan.FromSeconds(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 314: Member 'System.TimeSpan.FromHours(double)' cannot be acces
sed with an instance reference; qualify it with a type name instead
CS0176: Line 314: Member 'System.TimeSpan.FromMinutes(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0176: Line 314: Member 'System.TimeSpan.FromSeconds(double)' cannot be acc
essed with an instance reference; qualify it with a type name instead
CS0019: Line 362: Operator '==' cannot be applied to operands of type 'Syste
m.TimeSpan' and 'System.DateTime'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
[doublepost=1493641228][/doublepost]
your TimeSpan modify?
Only Modifing I did was to Animal Tamer But was Already set to TimeSpan everything I reverted Back to TimeSpan, easier then convertying to DateTime, now just trying to Figure Out How to call From a instance and displaying it in a Gump.
[doublepost=1493649890][/doublepost]My new current Daat 99 Control Cener Gump that I am working Towards......
Still New To All Ths.....Btw Thanks Lokai....
[doublepost=1493652216][/doublepost]I Changed Each Line of the String Format To something like..
Code:
            string s_BF = String.Format("{0}:{1}:{2}", from.NextFletchingBulkOrder + TimeSpan.FromHours(6));
and got it to compile..I took out the ts = statement and other if statemente and the extra }
 

Attachments

  • Daat99 Control Center Gumps.cs
    28.2 KB · Views: 5

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back