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

gelfling

Wanderer
I just looked at the SB info of the alchemist vendor and see this:
Add( new GenericBuyInfo( typeof( BlackPearl ), 5, 999, 0xF7A, 0 ) );

I believe the first number is the prize, second is amount, but what are the other numbers about??? like 0xF7A(itemID?) ???
I read something on the previus page about a druid vendor.
But i dont see one anywhere.
Should i create one myself?

Greetings Gelf
 

Voran

Wanderer
Yes, it's probably best to create your own.
The format is:
Add( new GenericBuyInfo( "The Name of your product" typeof( ItemHere ), price, quantity, ItemID, Hue ) );
 

gelfling

Wanderer
Hi Voran :)
Making a new vendor turned out to by to difficult for me so now i am trying to add all the srolls, reagents and book on a mageSB vendor.
I started with the reagent.
As you can see below i put them in with ID nr and hue but..... hahaha
when i open the mage ingame and try to buy from him.
I keep seeing the original names like: empty vial and fishsteack ball of thread...
What am i doing wrong?
Greetings Gelfling

----------------------
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( typeof( PetrafiedWood ), 3, 20, 0x97A, 0x46C ) );
Add( new GenericBuyInfo( typeof( SpringWater ), 3, 20, 0xE24, 0x47F ) );
Add( new GenericBuyInfo( typeof( DestroyingAngel ), 3, 20, 0xE1F, 0x290 ) );
 

Avelyn

Sorceror
gelfling said:
Hi Voran :)
Making a new vendor turned out to by to difficult for me so now i am trying to add all the srolls, reagents and book on a mageSB vendor.
I started with the reagent.
As you can see below i put them in with ID nr and hue but..... hahaha
when i open the mage ingame and try to buy from him.
I keep seeing the original names like: empty vial and fishsteack ball of thread...
What am i doing wrong?
Greetings Gelfling

----------------------
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( typeof( PetrafiedWood ), 3, 20, 0x97A, 0x46C ) );
Add( new GenericBuyInfo( typeof( SpringWater ), 3, 20, 0xE24, 0x47F ) );
Add( new GenericBuyInfo( typeof( DestroyingAngel ), 3, 20, 0xE1F, 0x290 ) );



You didnt read his last post... It would be
Code:
Add( new GenericBuyInfo("Destroying Angel" typeof( DestroyingAngel ), 3, 20, 0xE1F, 0x290) );
 

gelfling

Wanderer
Yesssss your completly right :) *shames*
I have been staring so much at it
i didnt see it lol
Thxxxxxxxxxxxxxxxxxxxx :)
 

gelfling

Wanderer
Hi all,
I tried that and still got tons of errors :)
After another good stare i found the mistake :)
There should have been a "," behind (PetrafiedWood"
Like below.
I am so glad this part works now haha
Now the rest :)
Greetings gelfling
-----------------------
Add( new GenericBuyInfo("PetrafiedWood", typeof( PetrafiedWood ), 3, 20, 0x97A, 0x46C ) );
Add( new GenericBuyInfo("SpringWater", typeof( SpringWater ), 3, 20, 0xE24, 0x47F ) );
Add( new GenericBuyInfo("DestroyingAngel", typeof( DestroyingAngel ), 3, 20, 0xE1F, 0x290 ) );
 

Voran

Wanderer
gelfling said:
Hi all,
I tried that and still got tons of errors :)
After another good stare i found the mistake :)
There should have been a "," behind (PetrafiedWood"
Like below.
I am so glad this part works now haha
Now the rest :)
Greetings gelfling
-----------------------
Add( new GenericBuyInfo("PetrafiedWood", typeof( PetrafiedWood ), 3, 20, 0x97A, 0x46C ) );
Add( new GenericBuyInfo("SpringWater", typeof( SpringWater ), 3, 20, 0xE24, 0x47F ) );
Add( new GenericBuyInfo("DestroyingAngel", typeof( DestroyingAngel ), 3, 20, 0xE1F, 0x290 ) );

Sorry, my bad. I'm glad you got it working :)
 

gelfling

Wanderer
No problem Voran i am glad myself i found it.
I still would have prefered a druid vendor
but the mage must do for now.
Still a newbie at this :)
But i find it very intresting !
Tomorrow i will finish the rest :)
Thx for all your help i am very happy with the druidic spells !
Greetings gelfling
 

master_toran

Wanderer
Voran said:
Here's mine, but it has more regs than the posted ones:
Code:
using System;
using Server.Items;

namespace Server.Spells
{
	public class Reagent
	{
		private static Type[] m_Types = new Type[20]
			{
				typeof( BlackPearl ),
				typeof( Bloodmoss ),
				typeof( Garlic ),
				typeof( Ginseng ),
				typeof( MandrakeRoot ),
				typeof( Nightshade ),
				typeof( SulfurousAsh ),
				typeof( SpidersSilk ),
				typeof( BatWing ),
				typeof( GraveDust ),
				typeof( DaemonBlood ),
				typeof( NoxCrystal ),
				typeof( PigIron ),
				typeof( Carrot ),
				typeof( Blackrock ),
				typeof( SpringWater ),
            typeof( DestroyingAngel ),
            typeof( PetrafiedWood ),
            typeof( WyrmsHeart ),
            typeof( SerpentsScale )
			};

		public Type[] Types
		{
			get{ return m_Types; }
		}

		public static Type BlackPearl
		{
			get{ return m_Types[0]; }
			set{ m_Types[0] = value; }
		}

		public static Type Bloodmoss
		{
			get{ return m_Types[1]; }
			set{ m_Types[1] = value; }
		}

		public static Type Garlic
		{
			get{ return m_Types[2]; }
			set{ m_Types[2] = value; }
		}

		public static Type Ginseng
		{
			get{ return m_Types[3]; }
			set{ m_Types[3] = value; }
		}

		public static Type MandrakeRoot
		{
			get{ return m_Types[4]; }
			set{ m_Types[4] = value; }
		}

		public static Type Nightshade
		{
			get{ return m_Types[5]; }
			set{ m_Types[5] = value; }
		}

		public static Type SulfurousAsh
		{
			get{ return m_Types[6]; }
			set{ m_Types[6] = value; }
		}

		public static Type SpidersSilk
		{
			get{ return m_Types[7]; }
			set{ m_Types[7] = value; }
		}

		public static Type BatWing
		{
			get{ return m_Types[8]; }
			set{ m_Types[8] = value; }
		}

		public static Type GraveDust
		{
			get{ return m_Types[9]; }
			set{ m_Types[9] = value; }
		}

		public static Type DaemonBlood
		{
			get{ return m_Types[10]; }
			set{ m_Types[10] = value; }
		}

		public static Type NoxCrystal
		{
			get{ return m_Types[11]; }
			set{ m_Types[11] = value; }
		}

		public static Type PigIron
		{
			get{ return m_Types[12]; }
			set{ m_Types[12] = value; }
		}
			public static Type Carrot
		{
			get{ return m_Types[13]; }
			set{ m_Types[13] = value; }
		}
			public static Type Blackrock
		{
			get{ return m_Types[14]; }
			set{ m_Types[14] = value; }
		}
		 public static Type SpringWater
      {
         get{ return m_Types[15]; }
         set{ m_Types[15] = value; }
      }

      public static Type DestroyingAngel
      {
         get{ return m_Types[16]; }
         set{ m_Types[16] = value; }
      }

      public static Type PetrafiedWood
      {
         get{ return m_Types[17]; }
         set{ m_Types[17] = value; }
      }
       public static Type WyrmsHeart
      {
         get{ return m_Types[18]; }
         set{ m_Types[18] = value; }
      }
       public static Type SerpentScale
      {
         get{ return m_Types[19]; }
         set{ m_Types[19] = value; }
      }
	}
}



i copied and pasted this in the script also erased wyrmsheart,blackrock and serpentsscale...When i execute, i see "incorrectly structured array initializer" error...What must i do..?
 

gelfling

Wanderer
SkyShard said:
Have the spelling errors been fixed in this release? (petrafied, sheild of earth, and so on).

Hi Skyhard,

I am not sure wich ones are spelled wrong :)
I am not english so hahaha
Could you post them here so i can correct them?
Would be very nice :)

Greetings Gelfling
 

gelfling

Wanderer
Hi all its me again lol,
I tried the solution for the overlapping spells in the spellbook but it doesnt work for me , still overlaps.
The one postes earlier in this thread.
The one for the spellbook gump.
Does anybody have a solution for this plz???
Then i would be finished and it would be all alrght :)
Greetings Gelfling :confused:
 

Voran

Wanderer
master_toran said:
i copied and pasted this in the script also erased wyrmsheart,blackrock and serpentsscale...When i execute, i see "incorrectly structured array initializer" error...What must i do..?
You need to modify the numbers to match, too. There are no longer 20 in the array if you take some away.

As to the spelling errors, I didn't bother adjusting the original scripts for the regs and 8 original spells, just the displayed names. (shield/sheild, etc)
 

Avelyn

Sorceror
gelfling said:
No problem Voran i am glad myself i found it.
I still would have prefered a druid vendor
but the mage must do for now.
Still a newbie at this :)
But i find it very intresting !
Tomorrow i will finish the rest :)
Thx for all your help i am very happy with the druidic spells !
Greetings gelfling

Gelfling, if you like, I can post the vendor files I wrote to fit in with Voran's system. They work well for me. I wouldn't like to have the druid stuff on mages either.
 

scarface6666

Wanderer
umm im having alot of trouble with this file first i was missing the gump thn im missing the regants thn i did wht you told me from wht was posted and it still dont work can you splz post the missing files i rlly need thm to get this file to work.i know were not supposed to ask for scripts but this aint scripts its files tht are needed to work these scripts
 
Wewt!

Man! It took me about 15 minutes to get it down, but I did it! This is awesome, my first script I ever successfully loaded onto a shard.. Thanks man!
 

Voran

Wanderer
The only "Missing" file is the regs - I've already posted mine. If you're having difficulty removing a few lines from it, why not modify existing regs into the regs I have ther - just copy them and change the names. You don't have to USE them, but that'd solve your problems.
 

gelfling

Wanderer
Avelyn said:
Gelfling, if you like, I can post the vendor files I wrote to fit in with Voran's system. They work well for me. I wouldn't like to have the druid stuff on mages either.

Oh Avelyn that would be very nice !!!!! :)
Yes plz post them.
Do you have the solution for the overlapping spells in the druidic spellbook aswell maybe???????????
It would be nice if you posted them aswell :)
Thankz very much :)
Greetings and have a great weekend all of you !!!
Gelfling
 

Voran

Wanderer
Gelfling, did you update the SpellRegistry.cs?
*wanders in and out while hitting server with big hammer*
 

Avelyn

Sorceror
gelfling said:
Oh Avelyn that would be very nice !!!!! :)
Yes plz post them.
Do you have the solution for the overlapping spells in the druidic spellbook aswell maybe???????????
It would be nice if you posted them aswell :)
Thankz very much :)
Greetings and have a great weekend all of you !!!
Gelfling

Give me some time to clean the scripts up and I will post them. As for the book, I believe I did fix it. First you MUST do the fix to the registry that Voran posted a little while back.. then fix the part of your gump to look like this:
Code:
if (HasSpell( from, 316) )
         { 
            AddLabel( 145, dby, gth, "Summon Firefly" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 16, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 302) ) 
         { 
            AddLabel( 145, dby, gth, "Hollow Reed" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 2, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
             
         } 
         if (HasSpell( from, 303) ) 
         { 
            AddLabel( 145, dby, gth, "Pack Of Beasts" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 3, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 304) ) 
         { 
            AddLabel( 145, dby, gth, "Spring Of Life" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 4, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 305) ) 
         { 
            AddLabel( 145, dby, gth, "Grasping Roots" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 5, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 306) ) 
         { 
            AddLabel( 145, dby, gth, "Blend With Forest" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 6, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 307) ) 
         { 
            AddLabel( 145, dby, gth, "Swarm Of Insects" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 7, GumpButtonType.Reply, 1 ); 
            dby = dby + 20; 
         } 
         if (HasSpell( from, 308) ) 
         { 
            AddLabel( 145, dby, gth, "Volcanic Eruption" ); 
            AddButton( 125, dby + 3, sbtn, sbtn, 8, GumpButtonType.Reply, 1 ); 
         	dby = dby + 20;
         } 
         if (HasSpell( from, 309) ) 
         { 
            AddLabel( 315, dbpy, gth, "Summon Treefellow" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 9, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 310) ) 
         { 
            AddLabel( 315, dbpy, gth, "Stone Circle" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 10, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 311) ) 
         { 
            AddLabel( 315, dbpy, gth, "Enchanted Grove" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 11, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 312) ) 
         { 
            AddLabel( 315, dbpy, gth, "Lure Stone" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 12, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 313) ) 
         { 
            AddLabel( 315, dbpy, gth, "Nature's Passage" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 13, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 314) ) 
         { 
            AddLabel( 315, dbpy, gth, "Mushroom Gateway" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 14, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
         if (HasSpell( from, 315) ) 
         { 
            AddLabel( 315, dbpy, gth, "Restorative Soil" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 15, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         } 
          if (HasSpell( from, 301) ) 
         { 
            AddLabel( 315, dbpy, gth, "Shield Of Earth" ); 
            AddButton( 295, dbpy + 3, sbtn, sbtn, 1, GumpButtonType.Reply, 1 ); 
            dbpy = dbpy + 20; 
         }

Was just a typo in the gump script.
 
Top