|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Age: 28
Posts: 206
|
So you decided to try to convert your scripts to the RC1 and now all those errors pop out? Here are the most common errors that you will run into, regardless if you are using custom scripts or not..
Note this FAQ is provided as is, you must know what you are doing, or you will break more then you will fix Error : Code:
The type or namespace name 'CommandEventArgs' could not be found (are you missing a using directive or an assembly reference?) The name space of Commands has changed Old namespace Server.Scripts.Commands has to be replaced by Code:
using Server.Commands; The type or namespace name 'Register' does not exist in the namespace 'Server.Commands' (are you missing an assembly reference?) the proble is caused by this line: Code:
Server.Commands.Register( "yourcommand", AccessLevel.Administrator, new CommandEventHandler( yourcommand_oncommand ) ); replace with Code:
CommandSystem.Register( "yourcommand", AccessLevel.Administrator, new CommandEventHandler( yourcommand_oncommand ) ); Code:
'Server.Mobiles.FightMode' does not contain a definition for 'Agressor' some typos were fixed in new release including this one. just replace FightMode.Agressor in your failing script with Code:
FightMode.Aggressor Code:
The name 'Controled' does not exist in the current context Another typo has been fixed, replace Controled with Code:
Controlled Code:
'Server.Items.YourItem.Dupe(int)': no suitable method found to override the dupe method is no longer supported, find the dupe code in your script and remove it. example dupe code: Code:
public override Item Dupe( int amount )
{
return base.Dupe( new Ingot( amount ), amount );
}
Error : Code:
Server.Mobiles.YourMobile.GetContextMenuEntries(Server.Mobile, System.Collections.ArrayList)': no suitable method found to override the ArrayList has been replaced with the type of List<YourType>. find this line in your mobile code Code:
public override void GetContextMenuEntries( Mobile from, ArrayList list ) Code:
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list ) I did what you told me to do and now I have a new error(s) Code:
The type or namespace name 'ContextMenuEntry' could not be found (are you missing a using directive or an assembly reference?) Make sure your code contains: Code:
using Server.ContextMenus; I did what you told me to do and now I have a new error(s) Code:
The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?) Make sure your code contains: Code:
using System.Collections.Generic; |
|
|
|
|
#2 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
Nice, but... why don't you put this in the FAQ board?
***EDIT*** Here's something I remember: Code:
public enum AIType
{
AI_Use_Default,
AI_Melee, //old was AI_Meelee
AI_Animal,
AI_Archer,
AI_Healer,
AI_Vendor,
AI_Mage,
AI_Berserk,
AI_Predator,
AI_Thief
}
Last edited by Joeku; 06-26-2006 at 10:53 AM. |
|
|
|
|
#3 (permalink) |
|
Newbie
Join Date: Sep 2005
Age: 38
Posts: 43
|
Awesome! A Real Life Saver.. How about this one or two :S
The type or namespace name 'CommandPrefix' does not exist in the namespace 'Server.Commands' (are you missing an assembly reference?) 'Server.Accounting.Accounts' does not contain a definition for 'Table' The type or namespace name 'DopplegangerFlesh' could not be found (are you missing a using directive or an assembly reference?) |
|
|
|
|
#5 (permalink) |
|
RunUO Forum Moderator
|
This thread is now sticky and it'll be cleaned from irrelevant chatter every once in a while.
__________________
I always try to help
![]() Sometimes, I don't know how.... ![]() My Web Page Forum Rules ------------------------------------------------------------- Extensive OWLTR System | Token System | World Teleporters ------------------------------------------------------------- |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|