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 Mercenary

coldrake

Wanderer
Yes, I was also wondering what a player does when the logoff. Do they just stable the merc?

Also, I agree that he is a bit over powered. He starts off with 120 in all skills. He dropped a lich lord pretty easily. I am going to go through and tweak it down a bit myself.

Any way you can explain what happens as he progresses to each stage?

A very nice script by the way, just needs a lil tweaking for my taste.

Thanks!

Coldrake
Imagine Nation
 

sadoul

Wanderer
Sure you can change AnimalTrainer. In folder \RunUO 1.0 RC0\Scripts\Mobiles\Vendors\NPC open AnimalTrainer.cs

On line 279 where it says
Code:
			else if ( pet.Body.IsHuman )
			{
				SayTo( from, 502672 ); // HA HA HA! Sorry, I am not an inn.
			}

add this && (!( pet is EvoMerc )) to the else if statement. So it looks like
Code:
			else if ( pet.Body.IsHuman && (!( pet is EvoMerc )) )
			{
				SayTo( from, 502672 ); // HA HA HA! Sorry, I am not an inn.
			}
 

kiknarse

Wanderer
dang :<(

Thats ALOT of patches/fixes done by the time I got to the bottom.

Can someone update the download with all the patches/fixes done, with the fixed file?
 

stormwolff

Knight
Here is a report from one of my users

When you mount your merc on a ethral mount and the merc dies the mount disapears.
 

sadoul

Wanderer
It is updated

For every bug/fix I did I updated the download too. When someone edit's their original post with the bug/fixes, that usually means they fixed them in the download. If the current download has a bug in it please post.

However, as I said I in my original post, I wasn't near done with this and I only posted it because I had quit working on it. I posted it so some of the amateur scripters like myself could learn from it, or get an idea from it.

stormwolff, thanks for the bug, I'm updating it right now : )

Here is the fix, just add this in EvoMerc anywhere in his public class. I added mine right after serialize/deserialize.

Code:
		public override bool OnBeforeDeath()
		{
			Mobile from = this.ControlMaster;

			if ( from != null )
			{
				if ( this.Mount != null )
				{
					for ( int i = 0; i < this.Items.Count; ++i )
					{
						Item item = (Item)this.Items[i];

						if ( item is IMountItem )
						{
							IMount mount = ((IMountItem)item).Mount;

							if ( mount != null )
							{
								mount.Rider = null;
								if ( mount is EtherealMount )
								{
									EtherealMount ethy = (EtherealMount)mount;
										if ( from.Backpack != null )
											from.Backpack.DropItem( ethy );
								}
							}

							if ( this.Items.IndexOf( item ) == -1 )
								--i;
						}
					}

					for ( int i = 0; i < this.Items.Count; ++i )
					{
						Item item = (Item)this.Items[i];

						if ( item.Layer == Layer.Mount )
						{
							if ( from.Backpack != null )
								from.Backpack.DropItem( item );
							--i;
						}
					}
				}
			}
			return base.OnBeforeDeath();
		}
 

Darkblade

Wanderer
Error in KP Script :(

- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 49, column 46) The type or
namespace name 'EvolutionDragon' could not be found (are you missing a using dir
ective or an assembly reference?)
- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 52, column 6) The type or n
amespace name 'EvolutionDragon' could not be found (are you missing a using dire
ctive or an assembly reference?)
- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 54, column 11) The type or
namespace name 'ed' could not be found (are you missing a using directive or an
assembly reference?)
- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 56, column 54) The type or
namespace name 'ed' could not be found (are you missing a using directive or an
assembly reference?)
- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 56, column 74) The type or
namespace name 'ed' could not be found (are you missing a using directive or an
assembly reference?)
- Error: Scripts\Custom\KPCommand.cs: CS0246: (line 56, column 7) The type or n
amespace name 'ed' could not be found (are you missing a using directive or an a
ssembly reference?)
 

stormwolff

Knight
Thanks for the update and here is another report for you:

My merc's sword ran out of durablity and broke leaving him with just his fists to fight with. I can't equip a new weapon.

I know you can equip at level 6, but that may be a long time for some users stuck with using only fists.
 

sadoul

Wanderer
Did you try?

stormwolff did you try doing "mercname undress" and then equiping him?

Darkblade, that is because there is a folder named "SERVER WITHOUT EVOLUTION DRAGON" and your KPcommand is in that folder.
 

stormwolff

Knight
sadoul said:
stormwolff did you try doing "mercname undress" and then equiping him?

I as a gm can equip it after his weapon is broken but the two players I have testing it can't seem to do it. The mercs in question were only level 3.
 

dstarz20

Sorceror
I see StormWolfes Post about Ethereal, but how do I get him to mount an Ethy? I had the statue on the gruound and in his pack, say "Chumpy, Mount with no luck. Thanks.
 

Arkryal

Wanderer
I like it. I did a similar script for a squire a while back (it's in subscriber submissions). But your code is much cleaner. I think I'll apply some of the principals I used there to this script, kinda like working from a clean slate. a full revision of my old script using this as a much improved base to work from. Lots of fun. Great job.
 

khlh2002

Wanderer
I think these Evo scripts are great. Thank you guys for all the hard work. I am not very good with scripts but i am learning. Could some 1 post a toned down version of the script or show me what i need to change. I have tryed with no luck yet. thanks for the help.
 

Sir Xuse

Wanderer
not surer maybe i missed it.

But didnt say here if there was a way to resurect the merc...If it was mentioned sorry..
 

Allantois

Wanderer
If your Merc is named "A" and you say SHEVA mount it will mount cause it catches the last part of the string.
Similarily if your merc is named "ACE" and you say PACE MOUNT it will mount
how to fix this.
Thanks.
 

Sir Xuse

Wanderer
two problems i notice...

One Feed it... Loyalty is poo....
He jumps wild and u lose him....
Two the armor and wep are poo....
He loses them to soon, not that its not fixable but just reporting....
 
L

Loverboy

Guest
if you script special armor and weapon you can either set the durability eceptionaly high or make indistructable
 

Sir Xuse

Wanderer
i can yes....

....but say this was my package id have no prolem doin so....
I was commenting is all that maybe it should have been Invul. items in pack yes.
the real issue here is shouldnt have to ...
 
Top