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!

Druid Spells

Lorryn

Wanderer
hmmm.... in SpellRegistry.cs you have posted in the package of scripts the number is 600 ?

I changed that to 500 and I get message " this spell is temporarily disabled"


any ideas?
I got the same message with it at 600


L.
 

Voran

Wanderer
Oh, I posted it? Woo! go me :)
(Memory like a sieve)
I usually advise 600, but 500 works just as well. Hmm... have you added the bits to the initializer?
 

Lorryn

Wanderer
I do not have an Initializer.cs ??


K found it, I was looking for it in my customs folder hehe

I will add the edits now.

:rolleyes:
 

Darkages

Wanderer
When i try to add those reagent to my vendor the got the wrongname on the buying system spring water is called spell book, petrafied wood are called raw fish, and destroying angel are called empty vial here my SBanimaltrainer. could someone can tell me whats wrong?
 

Attachments

  • SBAnimalTrainer.cs
    1.8 KB · Views: 7

Voran

Wanderer
Code:
Add( new GenericBuyInfo( "petrified wood",typeof( PetrafiedWood ), 3, 999, 0x97A, 0x46C ) );
					Add( new GenericBuyInfo( "spring water",typeof( SpringWater ), 3, 999, 0xE24, 0x47F ) );
					Add( new GenericBuyInfo( "destroying angel",typeof( DestroyingAngel ), 6, 999, 0xE1F, 0x290 ) );
That's the format for displaying cutom names in an SB.
 

Deceit

Wanderer
I seem to be having the same problem with names not showing up correctly in the vendor list. If I've left out any pertinent files I'm sorry, this whole thing is pretty new to me but I'm slowly catching on. :p

Here's my sbdruid.cs
Code:
using System;
using System.Collections;
using Server.Items;

namespace Server.Mobiles
{
	public class SBDruid : SBInfo
	{
		private ArrayList m_BuyInfo = new InternalBuyInfo();
		private IShopSellInfo m_SellInfo = new InternalSellInfo();

		public SBDruid()
		{
		}

		public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
		public override ArrayList BuyInfo { get { return m_BuyInfo; } }

		public class InternalBuyInfo : ArrayList
		{
			public InternalBuyInfo()
			{
				Add( new GenericBuyInfo( typeof( BlackPearl ), 5, 999, 0xF7A, 0 ) ); 
				Add( new GenericBuyInfo( typeof( Bloodmoss ), 5, 999, 0xF7B, 0 ) ); 
				Add( new GenericBuyInfo( typeof( MandrakeRoot ), 3, 999, 0xF86, 0 ) ); 
				Add( new GenericBuyInfo( typeof( Garlic ), 3, 999, 0xF84, 0 ) ); 
				Add( new GenericBuyInfo( typeof( Ginseng ), 3, 999, 0xF85, 0 ) ); 
				Add( new GenericBuyInfo( typeof( Nightshade ), 3, 999, 0xF88, 0 ) ); 
				Add( new GenericBuyInfo( typeof( SpidersSilk ), 3, 999, 0xF8D, 0 ) ); 
				Add( new GenericBuyInfo( typeof( SulfurousAsh ), 3, 999, 0xF8C, 0 ) ); 
				Add( new GenericBuyInfo( "petrified wood",typeof( PetrafiedWood ), 3, 999, 0x97A, 0x46C ) );
					Add( new GenericBuyInfo( "spring water",typeof( SpringWater ), 3, 999, 0xE24, 0x47F ) );
					Add( new GenericBuyInfo( "destroying angel",typeof( DestroyingAngel ), 6, 999, 0xE1F, 0x290 ) );

				Add( new GenericBuyInfo( "Blend With Forest", typeof( BlendWithForestScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Enchanted Grove", typeof( EnchantedGroveScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Grasping Roots", typeof( GraspingRootsScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Hollow Reed", typeof( HollowReedScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Lure Stone", typeof( LureStoneScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Mushroom Circle", typeof( MushroomCircleScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Mushroom Gateway", typeof( MushroomGatewayScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Natures Passage", typeof( NaturesPassageScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Pack of Beasts", typeof( PackOfBeastScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Restorative Soil", typeof( RestorativeSoilScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Shield of Earth", typeof( SheildOfEarthScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Spring of Live", typeof( SpringOfLifeScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Swarm of Insect", typeof( SwarmOfInsectsScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Treefellow", typeof( TreefellowScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Volcanic Eruption", typeof( VolcanicEruptionScroll ), 500, 10, 0xE39, 1419 ) );
				Add( new GenericBuyInfo( "Summon Firefly", typeof( FireflyScroll ), 500, 10, 0xE39, 1419 ) );

				Add( new GenericBuyInfo( "Tome of Nature", typeof( DruidicSpellbook ), 250, 10, 0xEFA, 1164 ) );

			}
		}

		public class InternalSellInfo : GenericSellInfo
		{
			public InternalSellInfo()
			{
				Add( typeof( BlackPearl ), 3 ); 
				Add( typeof( Bloodmoss ), 3 ); 
				Add( typeof( MandrakeRoot ), 2 ); 
				Add( typeof( Garlic ), 2 ); 
				Add( typeof( Ginseng ), 2 ); 
				Add( typeof( Nightshade ), 2 ); 
				Add( typeof( SpidersSilk ), 2 ); 
				Add( typeof( SulfurousAsh ), 2 ); 
				Add( typeof( PetrafiedWood ), 3 ); 
				Add( typeof( SpringWater ), 3 ); 
				Add( typeof( DestroyingAngel ), 3 ); 
				
				

			}
		}
	}
}

Here's the vendor I'm using
Code:
using System;
using System.Collections;
using Server;

namespace Server.Mobiles
{
	public class Druid : BaseVendor
	{
		private ArrayList m_SBInfos = new ArrayList();
		protected override ArrayList SBInfos{ get { return m_SBInfos; } }

		public override NpcGuild NpcGuild{ get{ return NpcGuild.MagesGuild; } }

		[Constructable]
		public Druid() : base( "the druid" )
		{
			SetSkill( SkillName.AnimalLore, 65.0, 88.0 );
			SetSkill( SkillName.AnimalTaming, 60.0, 83.0 );
			SetSkill( SkillName.Magery, 64.0, 100.0 );
			SetSkill( SkillName.Meditation, 60.0, 83.0 );
			SetSkill( SkillName.MagicResist, 65.0, 88.0 );
			SetSkill( SkillName.Wrestling, 36.0, 68.0 );
		}

		public override void InitSBInfo()
		{
			m_SBInfos.Add( new SBDruid() );
		}

		public override VendorShoeType ShoeType
		{
			get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
		}

		public override void InitOutfit()
		{
			base.InitOutfit();

			AddItem( new Server.Items.Robe( Utility.RandomGreenHue() ) );
			AddItem( new Server.Items.BlackStaff() );
		}

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

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}
 

Voran

Wanderer
Known "bug" with RunUO since the last OSI patch. They're working on it - you'll notice this happens to ALL custom items deisplayed on NPC vendors.
 

Deceit

Wanderer
Voran said:
Known "bug" with RunUO since the last OSI patch. They're working on it - you'll notice this happens to ALL custom items deisplayed on NPC vendors.

Excellent, I don't feel so bad now. Thanks for the timely feedback and kickass scripts.
 

Moneys2

Wanderer
need some help

It say the name space 'server.items' already contains definitions for:

'spell book', 'instrumentoickekedcallback', 'instrumentquality', 'baseinstrument' and 'spellregistry'.

I followed your instructions and replaced files, editied them, ect but I get those errors. Any help?
 

Voran

Wanderer
Some of those errors have nowt to do with this script - the Druid spells don't modify BaseInstrument, so you may have the zBardSystem installed.
as to the others: Delete the distro spellbook.cs and SpellRegistry.cs, found in Scrips/Spells/Base
 
Voran said:
Known "bug" with RunUO since the last OSI patch. They're working on it - you'll notice this happens to ALL custom items deisplayed on NPC vendors.


Voran,

Do you know if we can correct this on our end by changing the itemid using InsideUO after we install the patch? Is this a hardcoded issue with RunUO?

Just want to know before I set out breaking my balls over it.

Thanks,

Adam
 

Voran

Wanderer
Much as I dislike saying this - there's no point trying. It's a changed OSI packet, and I believe Krrios has fixed it for the next release
 
I agree. I fooled with it last night...trying to omit the generic buy tag.....no luck.

One thing that was odd, I did notice that the graphics appeared correctly when "selling" back to an NPC. The spring water was correctly labeled and contained the correct graphic. Obviously, the "buy', appears to be the one affected.

Thanks. I also wanted to say that you truly have some great scripts out there....my players really enjoy your quality of work.

Regards,

Adam
 

Demented

Wanderer
First like to say ..thank you voran for submiting the Druid stuff =)

Anyhow i been having a slight problem with it ... i did add everything and compiled fine all that ... but problem is i tried to do as arya suggested in a previous post .. in the initializer.cs i put the druid defintion at starting 250 rather then 300 or 301

well like i siad it compiled fine heh but when i tried to add the spell book and place spells in it (in-game). it regesterd being fill with [allspells command .. but when you open the book it was empty. and when trying to drop the scroll to the book .. kept getting this feature isnt enabled blah blah blah hehe...

just wondering what your thoughts would be to rectify this problem i am having?
i mean i guess i could change it to your definitions. i my self dont have all the spells you have added .. and trying to keep the script as clean as possible.

my uo version is 4.0.5a Aos enabled of the 2d client.
 

Voran

Wanderer
Yep - if you edited the numbers in the initializer, you'll have to edit all the scrolls and all the numbers in the spellbook, including start and finish numbers, to make the spells work.
 
Top