RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Uo Wedding Script

Pyro-Tech

Knight
Currently this wont work on a 2.0 shard.....it throws errors about the wedding ring, and i dunno if it got passed that or not

so anyone get this working on 2.0 let us know how to do it :)
 

soccerty629

Wanderer
it gives me this error when i put it in
:(
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Custom/Marriage Priest/WeddingRing.cs:
CS0115: Line 82: 'Server.Items.GoldWeddingRing.GetContextMenuEntries(Server.
Mobile, System.Collections.ArrayList)': no suitable method found to override
CS0115: Line 340: 'Server.Items.SilverWeddingRing.GetContextMenuEntries(Serv
er.Mobile, System.Collections.ArrayList)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Pyro-Tech

Knight
soccerty629 said:
it gives me this error when i put it in
:(
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Custom/Marriage Priest/WeddingRing.cs:
CS0115: Line 82: 'Server.Items.GoldWeddingRing.GetContextMenuEntries(Server.
Mobile, System.Collections.ArrayList)': no suitable method found to override
CS0115: Line 340: 'Server.Items.SilverWeddingRing.GetContextMenuEntries(Serv
er.Mobile, System.Collections.ArrayList)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


Those are the errors i was talking about 2.0 throwing a fit about
 
I think you have to change the lines that doesn't work to something like this "public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )" but I didn't look at the script...
 

Pyro-Tech

Knight
Code:
 + Custom/New Scripts/NPC's/Marriage Priest/WeddingRing.cs:
    CS0246: Line 82: The type or namespace name 'List' could not be found (are y
ou missing a using directive or an assembly reference?)
    CS0246: Line 340: The type or namespace name 'List' could not be found (are
you missing a using directive or an assembly reference?)

Errors it throws with your edits.....not sure where to look to see what should be in place of list :confused:
 
Did you put "List<ContextMenuEntry> list" or "List<ContextMenuEntry> List". The first one is the good one.


Sorry for my english, I'm a little tired today...
 

baddman

Wanderer
UO Wedding fix for 2.0

Alain Delocke said:
I think you have to change the lines that doesn't work to something like this "public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )" but I didn't look at the script...

public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list ) is correct, Just change entry on top

using System.Collections;

to

using Systems.Collections.Generic;

that should fix it..

heres my copy of edited script for gold only wedding
 

Attachments

  • UoWeddingGoldOnly.rar
    38.9 KB · Views: 47
Top