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!

FS Shrink System w/ Taming Craft

cruwer

Sorceror
It would be nice if the lock feature can be released by a 96+ lockpicker (my sugestion)...

Tanks for this great scripts

(and sorry if any mistake, my english is poor :p )
 

cmh1980

Wanderer
i got that same message.. im new to this.. i dont really know exactly how to script but i know how to edit them if needed. and if i have the right instructions. please help me.. this is my error thta i got same as that guy..

RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Engines\Factions\Mobiles\Vendors\BaseFacti onVendor.cs: CS0115:
(line 53, column 24) “Server.Factions.BaseFactionVendor.CheckVendorAcce ss(Serv
er.Mobile)” : Did not find out the in keeping with method to rewriteScripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

:( :( please help me.

Thx
 

TesterSam

Sorceror
RoninGT-

Are these fixes already in FS Animal Taming Systems v2.1 Final or will be, or not an issue? I don't want to merge something if its not needed. :)

TesterSam
 

Shauny

Sorceror
Error!!! o.o

i have one error :

Script :


Code:
using System;
using Server;
using Server.Mobiles; 
using Server.Gumps; 
using Server.Targeting;
using Server.Scripts.Commands;
using Server.Items;

namespace Server.Scripts.Commands
{
	public class ShrinkCommand
	{
		public static void Initialize()
		{
			Server.Commands.Register( "Shrink", AccessLevel.GameMaster, new CommandEventHandler( Shrink_OnCommand ) );
		}

		[Usage( "Shrink" )]
		[Description( "Removes a player from event/area." )]
		private static void Shrink_OnCommand( CommandEventArgs e )
		{
			if ( e.Mobile is PlayerMobile )
			{
				e.Mobile.Target = new ShrinkTarget();
				e.Mobile.SendMessage("What would you like to Shrink?");
			}
		}
		public class ShrinkTarget : Target
		{

			public ShrinkTarget() : base( -1, true, TargetFlags.None )
			{
			}

			protected override void OnTarget( Mobile from, object o )
			{
				if ( o is Item )
					from.SendMessage( "You cannot shrink that, MOBILES ONLY" );

				else if ( o is PlayerMobile )
					from.SendMessage( "You cannot shrink that, MOBILES ONLY" );

				else if ( o is BaseCreature )
				{
          				BaseCreature c = (BaseCreature)o;
					Type type = c.GetType();
        				ShrinkItem si = new ShrinkItem();
					si.MobType = type;
					si.Pet = c;
					si.PetOwner = from;

					if ( c is EvolutionDragon )
					{
						EvolutionDragon evo = (EvolutionDragon)c;
						si.PetKP = evo.KP;
						si.PetStage = evo.Stage;
						si.PetHasEgg = evo.HasEgg;
						si.PetAllowMating = evo.AllowMating;
						si.PetPregnant = evo.Pregnant;
						si.PetS1 = evo.S1;
						si.PetS2 = evo.S2;
						si.PetS3 = evo.S3;
						si.PetS4 = evo.S4;
						si.PetS5 = evo.S5;
						si.PetS6 = evo.S6;
					}

					if ( c is BaseMount )
					{
						BaseMount mount = (BaseMount)c;
						si.MountID = mount.ItemID;
					}
        				from.AddToBackpack( si );

					c.Delete();
				}
				else
					from.SendMessage( "You cannot shrink that, MOBILES ONLY" );
			}
		}
	}
}


Error:

+ Error/Commands/ShrinkCommand.cs:
CS0246: Line 20: The type or namespace name 'CommandEventArgs' could not be Found (are you missing a using directive or an assembly reference?)
 
Top