Candy Apple

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
------------------------------------------------------------------------------------------------------------------------
ServUO - [ServUO - Ultima Online Emulation] Version 0.5, Build 6437.20990
Publish 54
Core: Optimizing for 4 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 3 errors, 0 warnings
Errors:
+ Custom/123/Floristry/Floristry/FLoristryDef/DefFloristry.cs:
CS1028: Line 234: Unexpected preprocessor directive
CS1002: Line 10: ; expected
CS1519: Line 10: Invalid token ';' in class, struct, or interface member declaration
CS1002: Line 12: ; expected
+ Custom/123/Floristry/Floristry/FLoristryDef/FloristToolBox.cs:
CS1002: Line 8: ; expected
CS1519: Line 8: Invalid token ';' in class, struct, or interface member declaration
+ Custom/123/Floristry/Florist.cs:
CS1002: Line 20: ; expected
CS1519: Line 20: Invalid token ';' in class, struct, or interface member declaration
CS1002: Line 21: ; expected
CS1519: Line 21: Invalid token ';' in class, struct, or interface member declaration
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.



I just downloaded it and it did this.
 

Attachments

  • Floristry.rar
    9.7 KB · Views: 4
There you go, made it so it works with the older C# version
Very kool and thanks a ton :)
There you go, made it so it works with the older C# version
------------------------------------------------------------------------------------------------------------------------
ServUO - [ServUO - Ultima Online Emulation] Version 0.5, Build 6437.20990
Publish 54

Errors:
+ Custom/123/Floristry/Floristry/FLoristryDef/DefFloristry.cs:
CS0246: Line 38: The type or namespace name 'ITool' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
Last edited:
Errors:
+ Custom/123/Floristry/Floristry/FLoristryDef/DefFloristry.cs:
CS0115: Line 38: 'Server.Engines.Craft.DefFloristry.CanCraft(Server.Mobile, Server.Items.IUsesRemaining, System.Type)': no suitable method found to override
CS0534: Line 8: 'Server.Engines.Craft.DefFloristry' does not implement inherited abstract member 'Server.Engines.Craft.CraftSystem.CanCraft(Server.Mobile, Server.Items.BaseTool, System.Type)'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this is what I did

public override int CanCraft(Mobile from, IUsesRemaining tool, Type itemType)
{
 
well it asks for IUsesRemaining tool as a paramenter for the CanCraft method, not IUsesRemaining

So swapping that IUsesRemaining with BaseTool and it should be fine
 
well it asks for IUsesRemaining tool as a paramenter for the CanCraft method, not IUsesRemaining

So swapping that IUsesRemaining with BaseTool and it should be fine
That is what I did and I still get the above error. line 38 public override int CanCraft(Mobile from, IUsesRemaining tool, Type itemType)
 

Attachments

  • DefFloristry.cs
    18 KB · Views: 2
Like I said, change it to public override int CanCraft(Mobile from, BaseTool tool, Type itemType)
 
Like I said, change it to public override int CanCraft(Mobile from, BaseTool tool, Type itemType)
Ok I am really getting confused here with this I do what you tell me and I keep running into a brick wall :( I am not a great scripter at all. Whats this mean?

------------------------------------------------------------------------------------------------------------------------
ServUO - [ServUO - Ultima Online Emulation] Version 0.5, Build 6437.20990
Publish 54
Core: Optimizing for 4 64-bit processors

Errors:
+ Custom/123/Floristry/Floristry/FLoristryDef/DefFloristry.cs:
CS1502: Line 44: The best overloaded method match for 'Server.Items.BaseTool.CheckAccessible(Server.Item, Server.Mobile)' has some invalid arguments
CS1503: Line 44: Argument 1: cannot convert from 'Server.Mobile' to 'Server.Item'
CS1503: Line 44: Argument 2: cannot convert from 'ref int' to 'Server.Mobile'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this is what I did here line 38 public override int CanCraft(Mobile from, BaseTool tool, Type itemType)
 
Well like I said befor somewhere, I do not have a pub 54 server anywhere.
And you try to make something work from a newer version in an older version, while the syntax changed. So these errors are normal.

If you go by what tey tell you, you can also figure it out as well.

So change
Code:
else if (!tool.CheckAccessible(from, ref num))
to
Code:
else if (!BaseTool.CheckAccessible(tool, from))
 
Well like I said befor somewhere, I do not have a pub 54 server anywhere.
And you try to make something work from a newer version in an older version, while the syntax changed. So these errors are normal.

If you go by what tey tell you, you can also figure it out as well.

So change
Code:
else if (!tool.CheckAccessible(from, ref num))
to
Code:
else if (!BaseTool.CheckAccessible(tool, from))
Thanks so much for this help and sry I am a noob at times with the scripts :(
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back