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!

Evolution Dragon

rsbkeeper

Sorceror
it didnt work

ok i tryed what you sugested and it didnt work this is what i put in

Code:
		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			PlayerMobile player = from as PlayerMobile;

			if ( player != null )
			{
				if ( dropped is DragonDust )
				{
					DragonDust dust = ( DragonDust )dropped;

					int amount = ( dust.Amount * 5 );

					this.PlaySound( 665 );
					this.KP += amount;
					dust.Delete();
					this.Say( "*"+ this.Name +" absorbs the dragon dust*" );

					return false;
				}
				else if ( dropped is SpecialDragonDust )
				{
					SpecialDragonDust dust = ( SpecialDragonDust )dropped;

					int amount = ( dust.Amount * 10 );

					this.PlaySound( 665 );
					this.KP += amount;
					dust.Delete();
					this.Say( "*"+ this.Name +" absorbs the dragon dust*" );

					return false;else
				{
				}
			}
			return base.OnDragDrop( from, dropped );
		}
 

birdman2279

Wanderer
Error

When i compile the scripts this error comes up



Code:
Errors:
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
 
i get the same error how can i fix this plz help i want this to work

Code:
Errors:
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
 

Exorcism

Wanderer
Evo Dragon

I hAVE TRIED TO TYPE [add evolutiondragon: and it gives me a message like not a valid type or something ,,,what am i doing wrong ?:confused:
 

Mexifoo

Wanderer
Yeah i got the same thing as them 2

Code:
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:
Error:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Server.ScriptCompiler.Display(CompilerResults results)
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit
 

brixey2451

Wanderer
you would need to add the egg to start an evo, but to set up for players, add the guardian dragon some where and it drops the egg at random
 

Hammerhand

Knight
Try searching for "evo" in script submissions for a 2.0 version. You'll find one. I promise. Not done by Raelis tho.
 

DennYo

Wanderer
I've got a big problem, and i tried a lot.. but not working.. only two Errors, but doesn't work :(
I searched here in this post but no found^^
here my first error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Customs/Evolution Dragon/KPCommand.cs:
    CS0246: Line 24: Der Typ- oder Namespacename CommandEventArgs konnte nicht gefunden werden. (Fehlt eine using-Direktive oder ein Assemblyverweis?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

and here the Script:
Code:
    //////////////////////////////////
   //			           //
  //      Scripted by Raelis      //
 //		             	 //
//////////////////////////////////
using System; 
using System.Collections; 
using Server; 
using Server.Mobiles; 
using Server.Network; 
using Server.Targeting;


namespace Server.Mobiles
{ 
	public class KPSystem
	{ 

		public static void Initialize()
		{
			Server.Commands.Register( "KP", AccessLevel.Player, new CommandEventHandler( KP_OnCommand ) );    
		} 

		public static void KP_OnCommand( CommandEventArgs args )
		{ 
			Mobile m = args.Mobile; 
			PlayerMobile from = m as PlayerMobile; 
          
			if( from != null ) 
			{  
				from.SendMessage ( "Target a dragon that you own to get their kill point amount." );
				m.Target = new InternalTarget();
			} 
		} 

		private class InternalTarget : Target
		{
			public InternalTarget() : base( 8, false, TargetFlags.None )
			{
			}

			protected override void OnTarget( Mobile from, object obj )
			{
				if ( !from.Alive )
				{
					from.SendMessage( "You may not do that while dead." );
				}
                           	else if ( obj is EvolutionDragon && obj is BaseCreature ) 
                           	{ 
					BaseCreature bc = (BaseCreature)obj;
					EvolutionDragon ed = (EvolutionDragon)obj;

					if ( ed.Controled == true && ed.ControlMaster == from )
					{
						ed.PublicOverheadMessage( MessageType.Regular, ed.SpeechHue, true, ed.Name +" has "+ ed.KP +" kill points.", false );
					}
					else
					{
						from.SendMessage( "You do not control this dragon!" );
					}
                           	} 
                           	else 
                           	{ 
                              		from.SendMessage( "That is not a dragon!" );
			   	}
			}
		}
	} 
}

Second Error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Customs/Evolution Dragon/DragonDust.cs:
    CS0115: Line 32: Server.Items.DragonDust.Dupe(int): Es wurde keine geeignete
 Methode zum Überschreiben gefunden.
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

The Script:
Code:
    //////////////////////////////////
   //			           //
  //      Scripted by Raelis      //
 //		             	 //
//////////////////////////////////
using System; 
using Server.Items; 

namespace Server.Items 
{ 
   	public class DragonDust: Item 
   	{ 
		[Constructable]
		public DragonDust() : this( 1 )
		{
		}

		[Constructable]
		public DragonDust( int amount ) : base( 0x26B8 )
		{
			Stackable = true;
			Weight = 0.0;
			Amount = amount;
			Name = "dragon's dust";
			Hue = 89;
		}

            	public DragonDust( Serial serial ) : base ( serial ) 
            	{             
           	} 

		public override Item Dupe( int amount )
		{
			return base.Dupe( new DragonDust( amount ), amount );
		}

           	public override void Serialize( GenericWriter writer ) 
           	{ 
              		base.Serialize( writer ); 
              		writer.Write( (int) 0 ); 
           	} 
            
           	public override void Deserialize( GenericReader reader ) 
           	{ 
              		base.Deserialize( reader ); 
              		int version = reader.ReadInt(); 
           	} 
        } 
}

Please Help :)
 

Greystar

Wanderer
DennYo;753743 said:
I've got a big problem, and i tried a lot.. but not working.. only two Errors, but doesn't work :(
I searched here in this post but no found^^
here my first error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Customs/Evolution Dragon/KPCommand.cs:
    CS0246: Line 24: Der Typ- oder Namespacename CommandEventArgs konnte nicht gefunden werden. (Fehlt eine using-Direktive oder ein Assemblyverweis?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

and here the Script:
Code:
    //////////////////////////////////
   //			           //
  //      Scripted by Raelis      //
 //		             	 //
//////////////////////////////////
using System; 
using System.Collections; 
using Server; 
using Server.Mobiles; 
using Server.Network; 
using Server.Targeting;


namespace Server.Mobiles
{ 
	public class KPSystem
	{ 

		public static void Initialize()
		{
			Server.Commands.Register( "KP", AccessLevel.Player, new CommandEventHandler( KP_OnCommand ) );    
		} 

		public static void KP_OnCommand( CommandEventArgs args )
		{ 
			Mobile m = args.Mobile; 
			PlayerMobile from = m as PlayerMobile; 
          
			if( from != null ) 
			{  
				from.SendMessage ( "Target a dragon that you own to get their kill point amount." );
				m.Target = new InternalTarget();
			} 
		} 

		private class InternalTarget : Target
		{
			public InternalTarget() : base( 8, false, TargetFlags.None )
			{
			}

			protected override void OnTarget( Mobile from, object obj )
			{
				if ( !from.Alive )
				{
					from.SendMessage( "You may not do that while dead." );
				}
                           	else if ( obj is EvolutionDragon && obj is BaseCreature ) 
                           	{ 
					BaseCreature bc = (BaseCreature)obj;
					EvolutionDragon ed = (EvolutionDragon)obj;

					if ( ed.Controled == true && ed.ControlMaster == from )
					{
						ed.PublicOverheadMessage( MessageType.Regular, ed.SpeechHue, true, ed.Name +" has "+ ed.KP +" kill points.", false );
					}
					else
					{
						from.SendMessage( "You do not control this dragon!" );
					}
                           	} 
                           	else 
                           	{ 
                              		from.SendMessage( "That is not a dragon!" );
			   	}
			}
		}
	} 
}

Second Error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Customs/Evolution Dragon/DragonDust.cs:
    CS0115: Line 32: Server.Items.DragonDust.Dupe(int): Es wurde keine geeignete
 Methode zum Überschreiben gefunden.
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

The Script:
Code:
    //////////////////////////////////
   //			           //
  //      Scripted by Raelis      //
 //		             	 //
//////////////////////////////////
using System; 
using Server.Items; 

namespace Server.Items 
{ 
   	public class DragonDust: Item 
   	{ 
		[Constructable]
		public DragonDust() : this( 1 )
		{
		}

		[Constructable]
		public DragonDust( int amount ) : base( 0x26B8 )
		{
			Stackable = true;
			Weight = 0.0;
			Amount = amount;
			Name = "dragon's dust";
			Hue = 89;
		}

            	public DragonDust( Serial serial ) : base ( serial ) 
            	{             
           	} 

		public override Item Dupe( int amount )
		{
			return base.Dupe( new DragonDust( amount ), amount );
		}

           	public override void Serialize( GenericWriter writer ) 
           	{ 
              		base.Serialize( writer ); 
              		writer.Write( (int) 0 ); 
           	} 
            
           	public override void Deserialize( GenericReader reader ) 
           	{ 
              		base.Deserialize( reader ); 
              		int version = reader.ReadInt(); 
           	} 
        } 
}

Please Help :)

You do realize that this is in the Script Archives which means it's no longer supported for the new version of RunUO. However remove the Dupe part and check how other commands are configured that would possibly remove your errors. However will likely generate new ones. RunUO RC2 no longer uses the Dupe section of code as it is apparently not needed and the command structure was also changed. Making it incompatible with scripts that use either of those (like this one). Good Luck on getting it updated (it might not be as hard as it seems).
 

DennYo

Wanderer
Greystar;753748 said:
You do realize that this is in the Script Archives which means it's no longer supported for the new version of RunUO. However remove the Dupe part and check how other commands are configured that would possibly remove your errors. However will likely generate new ones. RunUO RC2 no longer uses the Dupe section of code as it is apparently not needed and the command structure was also changed. Making it incompatible with scripts that use either of those (like this one). Good Luck on getting it updated (it might not be as hard as it seems).
Oh sry, i dont saw that is in Archive..
thx for the fast reply =) does it gave a new Evolution Drake script for 2.0? i dont want to write the old script to a new.. i can't that soo good.
=)
 

yible

Sorceror
Waverian;282196 said:
By looking at the script.. It seems that dragon dust increases the dragon's kp by the dust's amount when dropped onto the creature.

Really? I never thought of that one!!! lol
 

Tw1zted

Wanderer
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Custom/Evolution Dragon/KPCommand.cs:
CS0246: Line 24: The type or namespace name 'CommandEventArgs' 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.
 

bmwcrusader

Wanderer
Raelis;282140 said:
This is a script for a dragon that evolves through 7 stages.

Stage Body Values:
1) Snake - 52
2) Giant Serpent - 89
3) Lava Lizard - 206
4) Drake - 60 or 61
5) Dragon - 59
6) Ancient Wyrm - 46
7) Rikktor - 172


How Does It Evolve?
Whenever the dragon hits something, without magic, it gains a Kill Point (kp).

When it reaches a certain amount of kp, the dragon will evolve to the next stage.

How many KP does it take to get to the next stage?

1) 25000 to stage 2
2) 75000 to stage 3
3) 175000 to stage 4
4) 375000 to stage 5
5) 7750000 to stage 6
6) 15000000 to stage 7

Every time the dragon evolves, it gains in str, dex, int, virtual armor, resistances, damages, hits, damage min and max.

Dragon Mating

At stage 6 the dragon will be allowed to mate. To mate your dragon, you must double click a female dragon and target a male dragon. If the male dragon is not owned by you, then a gump will be sent to the owner of the male dragon asking if they would allow your female dragon to mate with their male dragon.

Once the female dragon is pregnant it will become invul, and in 3 days the dragon will produce an egg, you must double click her to get the egg and she will become mortal again.

It takes 1 full day for an egg to be ready to hatch.


The dragons take 0.0 taming skill and are not retamable, but you will not have to worry about that, because the dragon will NEVER become untame, and you will never have to feed it.

There is also Dragon Dust which you can get off of any of the dragons, the harder the dragon the more chance there is to get 1 to 5 dust. When you drop it on your evolution dragon, it increases the kp by the dust amount x 5.

How to get an egg other than mating:
You have to kill the Guardian Dragon.

Added another copy of the evolution draogn, this one does not have any tokens in them, so you won't get any errors! :)

you need you make it so we dont have to unzip it
 
Top