Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 11-23-2006, 12:40 PM   #26 (permalink)
Newbie
 
CosmoSpira's Avatar
 
Join Date: Sep 2006
Age: 24
Posts: 35
Default

maybe you could modify the paragon scripts so theres a chance that the levelable items will drop in the paragon chests? just a suggestion as i am not a scripter
CosmoSpira is offline   Reply With Quote
Old 11-23-2006, 03:24 PM   #27 (permalink)
Forum Novice
 
Join Date: Mar 2004
Posts: 152
Default

yeah that would work nicely. use the windows search on your scripts folder for paragon and then do the edits as needed.
Dreadfull is offline   Reply With Quote
Old 12-02-2006, 08:33 PM   #28 (permalink)
DragonDan
Guest
 
Posts: n/a
Question Enhancing???

I know I would have to alter the enhance.cs script but not quite sure what to add or alter can some one help me out there? Thanks in advance for your help and for such a nice system it has enriched gameplay on my shard!
  Reply With Quote
Old 12-17-2006, 01:44 AM   #29 (permalink)
Newbie
 
Join Date: Oct 2006
Location: La
Age: 19
Posts: 85
Send a message via MSN to garthro
Default can it be done

i want 2 make everything on my shard levable even the armor u buy from the vendors it just lvls up you can add attributes as it lvls up thanks for all ur help
__________________
love me or hate me but u better love me cause im 270 lbs and 6' 6"
garthro is offline   Reply With Quote
Old 12-17-2006, 12:48 PM   #30 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

I am sure you can take the code from my BaseLevelxxx scripts and incorporate it into the corresponding Basexxx distro script (I.e from BaseLevelAxe.cs to BaseAxe.cs, BaseLevelShield to BaseShield.cs, etc.). I have not done this or tested it and it may take a bit of work, but it should work.
__________________
Dracana
dracana is offline   Reply With Quote
Old 01-13-2007, 12:48 AM   #31 (permalink)
Newbie
 
partystuffcloseouts's Avatar
 
Join Date: Mar 2006
Posts: 54
Cool How do i Add Max Level Increase Deeds

Could i ask, how to add Max Level Increase Deeds so i can add them to a Vendor Stone to sell. i cannot for the life of me figure it out. i have looked up the LevelUpScroll.cs script as well but ( LevelUpScroll ) wont add them either. Any pointers on this one i could get from somebody would be greatly appreciated.!!
Thanks Again
Soultaker
__________________
I added a huge signature after it was removed,
I'm banned now...
partystuffcloseouts is offline   Reply With Quote
Old 01-19-2007, 02:17 PM   #32 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by partystuffcloseouts View Post
Could i ask, how to add Max Level Increase Deeds so i can add them to a Vendor Stone to sell. i cannot for the life of me figure it out. i have looked up the LevelUpScroll.cs script as well but ( LevelUpScroll ) wont add them either. Any pointers on this one i could get from somebody would be greatly appreciated.!!
Thanks Again
Soultaker
Here is an updated version of LevelUpScroll.cs that should help you. Basically the way to do it is create new items for each of the levels of LevelUpScroll. This new script will do that, I added WonderousLevelUpScroll, ExaltedLevelUpScroll, MythicalLevelUpScroll, and LegendaryLevelUpScroll items. You can now add these to vendor stones using the item names above.

To install, simply overwrite the old LevelUpScroll.cs under Levelable Items\Items, with this new script. Then restart shard.

If you have any questions, please let me know.

Dracana
Attached Files
File Type: cs LevelUpScroll.cs (8.6 KB, 63 views)
__________________
Dracana
dracana is offline   Reply With Quote
Old 02-01-2007, 01:32 AM   #33 (permalink)
Newbie
 
Emillio's Avatar
 
Join Date: Jan 2007
Age: 36
Posts: 85
Default making weapons for 1.0

hi,

my shard is on 1.0 and im a little new at the scripting stuff. I tried to make a levelable bow, but im running into this error:

RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Customs\Levelable Items\Items\Levelbow.cs: CS0246: (line 12, c
olumn 26) The type or namespace name 'bow' 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.


this is my bow
Code:
using System;
using System.Text;
using Server;
using Server.Mobiles;
using Server.ContextMenus;
using System.Collections;
using Server.Gumps;

namespace Server.Items
{
	[FlipableAttribute( 0x13B2, 0x13B1 )]
	public class Levelbow : bow, ILevelable // ILevelable is the interface that gives us all the leveling functionality
	{
		/* These private variables store the exp, level, and *
		 * points for the item */
		private int m_Experience;
		private int m_Level;
		private int m_Points;

		[Constructable]
		public Levelbow() : base()
		{
			/* Invalidate the level and refresh the item props
			 * Extremely important to call this method */
			LevelItemManager.InvalidateLevel( this );
		}

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

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

			writer.Write( (int) 0 );

			// DONT FORGET TO SERIALIZE LEVEL, EXPERIENCE, AND POINTS
			writer.Write( m_Experience );
			writer.Write( m_Level );
			writer.Write( m_Points );
		}

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

			int version = reader.ReadInt();

			// DONT FORGET TO DESERIALIZE LEVEL, EXPERIENCE, AND POINTS
			m_Experience = reader.ReadInt();
			m_Level = reader.ReadInt();
			m_Points = reader.ReadInt();
		}

		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties (list);

			/* Display level in the properties context menu.
			 * Will display experience as well, if DisplayExpProp.
			 * is set to true in LevelItemManager.cs */
			list.Add( 1060658, "Level\t{0}", m_Level );
			if ( LevelItemManager.DisplayExpProp )
				list.Add( 1060659, "Experience\t{0}", m_Experience );
		}

		public override void GetContextMenuEntries(Mobile from, ArrayList list)
		{
			base.GetContextMenuEntries (from, list);

			/* Context Menu Entry to display the gump w/
			 * all info */

			list.Add( new LevelInfoEntry( from, this, AttributeCategory.Melee ) );
		}

		// ILevelable Members that MUST be implemented
		#region ILevelable Members

		// This one will return our private m_Experience variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Experience
		{
			get
			{
				return m_Experience;
			}
			set
			{
				m_Experience = value;

				// This keeps gms from setting the level to an outrageous value
				if ( m_Experience > LevelItemManager.ExpTable[LevelItemManager.Levels - 1] )
					m_Experience = LevelItemManager.ExpTable[LevelItemManager.Levels - 1];

				// Anytime exp is changed, call this method
				LevelItemManager.InvalidateLevel( this );
			}
		}

		// This one will return our private m_Level variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Level
		{
			get
			{
				return m_Level;
			}
			set
			{
				// This keeps gms from setting the level to an outrageous value
				if ( value > LevelItemManager.Levels )
					value = LevelItemManager.Levels;

				// This keeps gms from setting the level to 0 or a negative value
				if ( value < 1 )
					value = 1;

				// Sets new level.
				if ( m_Level != value )
				{
					m_Level = value;
				}
			}
		}

		// This one will return our private m_Points variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Points
		{
			get
			{
				return m_Points;
			}
			set
			{
				//Sets new points.
				m_Points = value;
			}
		}
		#endregion
	}
}

im very new at this so bear with me. Could you give us newer scripters a short little explanation on how to convert the items? thanks again for this script. It's incredible. I plan on using it on my shard.

ps - i changed the one reference of melee up there with ranged. I also tried to change bow for baseranged but it didnt find that either.
Emillio is offline   Reply With Quote
Old 02-01-2007, 02:34 AM   #34 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by Emillio View Post
hi,

my shard is on 1.0 and im a little new at the scripting stuff. I tried to make a levelable bow, but im running into this error:

RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Customs\Levelable Items\Items\Levelbow.cs: CS0246: (line 12, c
olumn 26) The type or namespace name 'bow' 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.


this is my bow
Code:
using System;
using System.Text;
using Server;
using Server.Mobiles;
using Server.ContextMenus;
using System.Collections;
using Server.Gumps;

namespace Server.Items
{
	[FlipableAttribute( 0x13B2, 0x13B1 )]
	public class Levelbow : bow, ILevelable // ILevelable is the interface that gives us all the leveling functionality
	{
		/* These private variables store the exp, level, and *
		 * points for the item */
		private int m_Experience;
		private int m_Level;
		private int m_Points;

		[Constructable]
		public Levelbow() : base()
		{
			/* Invalidate the level and refresh the item props
			 * Extremely important to call this method */
			LevelItemManager.InvalidateLevel( this );
		}

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

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

			writer.Write( (int) 0 );

			// DONT FORGET TO SERIALIZE LEVEL, EXPERIENCE, AND POINTS
			writer.Write( m_Experience );
			writer.Write( m_Level );
			writer.Write( m_Points );
		}

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

			int version = reader.ReadInt();

			// DONT FORGET TO DESERIALIZE LEVEL, EXPERIENCE, AND POINTS
			m_Experience = reader.ReadInt();
			m_Level = reader.ReadInt();
			m_Points = reader.ReadInt();
		}

		public override void GetProperties(ObjectPropertyList list)
		{
			base.GetProperties (list);

			/* Display level in the properties context menu.
			 * Will display experience as well, if DisplayExpProp.
			 * is set to true in LevelItemManager.cs */
			list.Add( 1060658, "Level\t{0}", m_Level );
			if ( LevelItemManager.DisplayExpProp )
				list.Add( 1060659, "Experience\t{0}", m_Experience );
		}

		public override void GetContextMenuEntries(Mobile from, ArrayList list)
		{
			base.GetContextMenuEntries (from, list);

			/* Context Menu Entry to display the gump w/
			 * all info */

			list.Add( new LevelInfoEntry( from, this, AttributeCategory.Melee ) );
		}

		// ILevelable Members that MUST be implemented
		#region ILevelable Members

		// This one will return our private m_Experience variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Experience
		{
			get
			{
				return m_Experience;
			}
			set
			{
				m_Experience = value;

				// This keeps gms from setting the level to an outrageous value
				if ( m_Experience > LevelItemManager.ExpTable[LevelItemManager.Levels - 1] )
					m_Experience = LevelItemManager.ExpTable[LevelItemManager.Levels - 1];

				// Anytime exp is changed, call this method
				LevelItemManager.InvalidateLevel( this );
			}
		}

		// This one will return our private m_Level variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Level
		{
			get
			{
				return m_Level;
			}
			set
			{
				// This keeps gms from setting the level to an outrageous value
				if ( value > LevelItemManager.Levels )
					value = LevelItemManager.Levels;

				// This keeps gms from setting the level to 0 or a negative value
				if ( value < 1 )
					value = 1;

				// Sets new level.
				if ( m_Level != value )
				{
					m_Level = value;
				}
			}
		}

		// This one will return our private m_Points variable.
		[CommandProperty( AccessLevel.GameMaster )]
		public int Points
		{
			get
			{
				return m_Points;
			}
			set
			{
				//Sets new points.
				m_Points = value;
			}
		}
		#endregion
	}
}

im very new at this so bear with me. Could you give us newer scripters a short little explanation on how to convert the items? thanks again for this script. It's incredible. I plan on using it on my shard.

ps - i changed the one reference of melee up there with ranged. I also tried to change bow for baseranged but it didnt find that either.
Emillio,

This error can be fixed by changing bow to Bow in the following line (line 12)...

Code:
	public class Levelbow : bow, ILevelable // ILevelable is the interface that gives us all the leveling functionality
That is a reference to the items subclass and it must match the case of the class you are referring to (Bow as found in Bow.cs)

If you have any other issues, let me know.
__________________
Dracana
dracana is offline   Reply With Quote
Old 02-01-2007, 11:57 AM   #35 (permalink)
Newbie
 
Emillio's Avatar
 
Join Date: Jan 2007
Age: 36
Posts: 85
Default worked

wow that worked. So make sure you use the shift button on important words! thank you! You are wonderful.
Emillio is offline   Reply With Quote
Old 10-28-2007, 04:54 PM   #36 (permalink)
Newbie
 
EGYPT's Avatar
 
Join Date: Jun 2006
Location: Egypt
Posts: 11
Send a message via MSN to EGYPT
Default

public abstract class BaseLevelSword:BaseSword,ILevelable

in base sword tried changing it to all items levelable fixed all erros except here
tells me basesword couldnt be found so i changed it to BaselevelSword
gives me an error saying circular base class dependency involving server items to baselelevel sword and server items.baselevel sword so i am lost could ya help me?
__________________

Ride The World B4 It Rides You :eek:
EGYPT is offline   Reply With Quote
Old 11-08-2007, 01:02 AM   #37 (permalink)
Forum Expert
 
drgsldr69's Avatar
 
Join Date: Feb 2003
Location: illinois
Age: 32
Posts: 301
Send a message via ICQ to drgsldr69 Send a message via AIM to drgsldr69 Send a message via MSN to drgsldr69 Send a message via Yahoo to drgsldr69
Default

everything works perfectly only one problem

the anceint smithy

hard as heck but i like that. only when he dies client crashes. server don't just hte client. also it wont let that char log back in either!

i was able to create a NEW char log in go to that spot and pick up the scrolls but what could be causing that char to ot be able to log in? could it be cause EVERYTHING he is wearing is levelable? every slot is full of levelable items all level 1

LMMFAO ok i figured out why it crashed. i forgot i deleted my char's backpack and when i killed the smithy it tried to put 2 scrolls into my pack which wasnt there lol
__________________
My online store - jdvaluestore.com
A D&D shard - dodronline.com

Last edited by drgsldr69; 11-08-2007 at 01:27 AM.
drgsldr69 is offline   Reply With Quote
Old 12-26-2007, 05:56 PM   #38 (permalink)
Newbie
 
Join Date: Aug 2003
Posts: 15
Default

Code:
Errors:
 + custum/level/Items/Armor/Artifacts/LevelInquisitorsResolution.cs:
    CS0246: Line 6: The type or namespace name 'LevelPlateGloves' could not be f
ound (are you missing a using directive or an assembly reference?)
 + custum/level/Items/Jewels/Artifacts/LevelBraceletOfHealth.cs:
    CS0246: Line 6: The type or namespace name 'LevelGoldBracelet' could not be
found (are you missing a using directive or an assembly reference?)
 + custum/level/Items/Shields/Artifacts/LevelAegis.cs:
    CS0246: Line 6: The type or namespace name 'LevelHeaterShield' could not be
found (are you missing a using directive or an assembly reference?)
wat i do wrong:/
glyth is offline   Reply With Quote
Old 12-26-2007, 06:08 PM   #39 (permalink)
Newbie
 
EGYPT's Avatar
 
Join Date: Jun 2006
Location: Egypt
Posts: 11
Send a message via MSN to EGYPT
Default

just remove the artifacts cause they cant find scripts for level heater etc.. so either download the all levelable items package and u should be ok or just remove these ones
__________________

Ride The World B4 It Rides You :eek:
EGYPT is offline   Reply With Quote
Old 12-26-2007, 06:20 PM   #40 (permalink)
Newbie
 
Join Date: Aug 2003
Posts: 15
Default

thanks were i find the dagger or knifes thoe theres only 3 level items 0.0
glyth is offline   Reply With Quote
Old 12-26-2007, 06:23 PM   #41 (permalink)
Newbie
 
EGYPT's Avatar
 
Join Date: Jun 2006
Location: Egypt
Posts: 11
Send a message via MSN to EGYPT
Default

umm dude there are 2 packages to download one contains normal system for leveling and other contains leveling system and all leveling items download the one the contains all and u wont have any trouble and knife etc should be found in weapons knives
__________________

Ride The World B4 It Rides You :eek:
EGYPT is offline   Reply With Quote
Old 12-26-2007, 06:32 PM   #42 (permalink)
Newbie
 
Join Date: Aug 2003
Posts: 15
Default

yea i see the deffent weapon folders but under [add level theres only 3 level things
glyth is offline   Reply With Quote
Old 03-18-2008, 02:13 AM   #43 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 26
Default

No levelable spellbook?
C h a o s is offline   Reply With Quote
Old 10-20-2008, 10:48 AM   #44 (permalink)
Lurker
 
Join Date: Jan 2006
Posts: 1
Thumbs up RunUO 2.0 RC2 work without trouble

I test it and work great. Thank you!!
I was thinking the way to implement it in easy way and distribute it and i have one idea but i didnt have any time to make it yet, maybe could be good to make an scroll which transform normal basetype into level type.
In this way you must only have need to sell this scrolls or give in quest like prize.

thank's again
Slayer_BsAs is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5