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!

[2.0]Healing Commands

[2.0]Healing Commands

Healing Commands Creator Unknown But I've Fixed It To Work With RunUO 2.0 RC1

Here: Fixed:
 

Attachments

  • Healing Commands.cs
    5.7 KB · Views: 228
///////////////////////////////////////
// Bandage Self Command //
// Created by Zodaiarnoan //
////////////////////////////////////

found that in the script :p
 

wensday

Wanderer
plugged this in and got some errors hun

+ custom/Systems/Healing Commands.cs:
CS0103: Line 19: The name 'CommandsSystem' does not exist in the current con
text
CS0103: Line 47: The name 'CommandsSystem' does not exist in the current con
text
CS0103: Line 77: The name 'CommandsSystem' does not exist in the current con
text
CS0103: Line 128: The name 'CommandsSystem' does not exist in the current co
ntext
CS0103: Line 180: The name 'CommandsSystem' does not exist in the current co
ntext
CS0103: Line 200: The name 'BaseCommand' does not exist in the current conte
xt
 

wensday

Wanderer
yes, that's why I downloaded it, I was trying to put togather a 2.0 shard to work with and figure out all the new things
 

Lifegranter

Sorceror
I'm sorry, I knew that RunUO changed their command classification and I just figured you hadn't upgraded. Now that I've looked at the script, you need to alter just a little bit.

Change :
Code:
CommandsSystem.Register
To :
Code:
CommandSystem.Register

about the !basecommand error, i'm not sure
 

wensday

Wanderer
alright, well, apparently those that downloaded the svn and those that downloaded the release that came directlyafter that are on two seperate servers. I changed the CommandsSystem to the correct CommandSystem and still recieving the following error

Code:
Errors:
 + custom/Systems/Healing Commands.cs:
    CS0103: Line 200: The name 'BaseCommand' does not exist in the current context

OK never mind, I just read the little post part there that you stated you didnt know about this error. Perhaps someone else might though?
 
sorry about that but i dont get this error and no idea what can i resolve and i think anything exist about basecommand at script im looking it if i can find a way to exit from this error i will send you backup

hey ive found the error at you need to find this
Code:
				Mobile m;
				
				if ( !BaseCommand.IsAccessible( from, o ) )
					from.SendMessage( "That is not accessible." );
				else if ( o is Mobile )
				{
					m = (Mobile)o;
					m.Hits = m.HitsMax;
					m.Stam = m.StamMax;
					m.Mana = m.ManaMax;
				}
				else
					from.SendMessage( "That can not be healed." );

to change this;

Code:
{
	from.Hits = m.HitsMax;
	from.Stam = m.StamMax;
	from.Mana = m.ManaMax;
}
 
Top