Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 08-24-2008, 01:12 PM   #1 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default SVN 297 help

Hi all ..need some help here what files would i edit to cancel the spellweaving quest but still be able to use the spellweaving book ?
__________________
<a href="http://wappyworld.com/phpBB2/portal.php"</a>
mikeymaze is online now   Reply With Quote
Old 08-24-2008, 02:35 PM   #2 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: Lincoln, IL
Age: 35
Posts: 147
Send a message via MSN to Mad Clown
Default

i really dont know of a file but you can just delete the spawner for the quest giver so no one can do the quest
Mad Clown is offline   Reply With Quote
Old 08-24-2008, 02:48 PM   #3 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default

problem with that is when you click the book it tells you that you cant cast with out doing the quest
__________________
<a href="http://wappyworld.com/phpBB2/portal.php"</a>
mikeymaze is online now   Reply With Quote
Old 08-24-2008, 05:25 PM   #4 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: Lincoln, IL
Age: 35
Posts: 147
Send a message via MSN to Mad Clown
Default

hmm ok let me look into it a bit more
Mad Clown is offline   Reply With Quote
Old 08-24-2008, 05:29 PM   #5 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: Lincoln, IL
Age: 35
Posts: 147
Send a message via MSN to Mad Clown
Default

ok try this this is in your player mobile script you can comment this out so it wont look for a flag for spellweaving


there are 2 places

HTML Code:
	[CommandProperty( AccessLevel.GameMaster )]
		public bool Spellweaving
		{
			get{ return GetFlag( PlayerFlag.Spellweaving ); }
			set{ SetFlag( PlayerFlag.Spellweaving, value ); }			
		}

and this one

HTML Code:
Spellweaving		= 0x00040000,

comment them out like this

//Spellweaving = 0x00040000,

//[CommandProperty( AccessLevel.GameMaster )]
//public bool Spellweaving
//{
// get{ return GetFlag( PlayerFlag.Spellweaving ); }
//set{ SetFlag( PlayerFlag.Spellweaving, value ); }


im only telling this how to incase you dont people tend to think people understand what they are doing LOL i know i get that alot the // comments the line out so the script wont look at it anyways hope that helps
Mad Clown is offline   Reply With Quote
Old 08-24-2008, 06:31 PM   #6 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Smile

thanks ya the first part was already commented out i did that yesterday and was tired and went to bed thought i had it but realized today i didnt lol. Thanks ill Try and post back if it worked .
__________________
<a href="http://wappyworld.com/phpBB2/portal.php"</a>
mikeymaze is online now   Reply With Quote
Old 08-25-2008, 06:00 AM   #7 (permalink)
Forum Novice
 
Join Date: Aug 2005
Location: Italy (Piemonte)
Age: 20
Posts: 210
Send a message via ICQ to Smjert Send a message via MSN to Smjert
Default

If you comment that lines out you can't compile because somewhere that code is called.
I have runuo svn 300 but i don't have that lines you comment and also don't have the Spellweaving check... have you some custom scripts?
Can you post your ArcanistSpell.cs?

Last edited by Smjert; 08-25-2008 at 06:04 AM.
Smjert is offline   Reply With Quote
Old 08-25-2008, 08:39 PM   #8 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default

Code:
using System;
using System.Text;
using Server.Items;
using Server.Mobiles;

namespace Server.Spells.Spellweaving
{
	public abstract class ArcanistSpell : Spell
	{
		public abstract double RequiredSkill { get; }
		public abstract int RequiredMana { get; }

		public override SkillName CastSkill { get { return SkillName.Spellweaving; } }
		public override SkillName DamageSkill { get { return SkillName.Spellweaving; } }

		public override bool ClearHandsOnCast { get { return false; } }

		private int m_CastTimeFocusLevel;

		public ArcanistSpell( Mobile caster, Item scroll, SpellInfo info )
			: base( caster, scroll, info )
		{
		}

		public virtual int FocusLevel
		{
			get { return m_CastTimeFocusLevel; }
		}

		public static int GetFocusLevel( Mobile from )
		{
			ArcaneFocus focus = FindArcaneFocus( from );

			if( focus == null || focus.Deleted )
				return 0;

			return focus.StrengthBonus;
		}

		public static ArcaneFocus FindArcaneFocus( Mobile from )
		{
			if( from == null || from.Backpack == null )
				return null;

			return from.Backpack.FindItemByType<ArcaneFocus>();
		}

		public static bool CheckExpansion( Mobile from )
		{
			if( !(from is PlayerMobile) )
				return true;

			if( from.NetState == null )
				return false;

			return from.NetState.SupportsExpansion( Expansion.ML );
		}

		public override bool CheckCast()
		{
			if( !base.CheckCast() )
				return false;

			if( !CheckExpansion( Caster ) )
			{
				Caster.SendLocalizedMessage( 1072176 ); // You must upgrade to the Mondain's Legacy Expansion Pack before using that ability
				return false;
			}

			#region Mondain's Legacy	
			if ( !MondainsLegacy.Spellweaving )
			{
				Caster.SendLocalizedMessage( 1042753, "Spellweaving" ); // ~1_SOMETHING~ has been temporarily disabled.
				return false;
			}
			
			if ( Caster is PlayerMobile && ! ((PlayerMobile) Caster).Spellweaving )
			{
				Caster.SendLocalizedMessage( 1073220 ); // You must have completed the epic arcanist quest to use this ability.
				return false;
			}
			#endregion

			int mana = ScaleMana( RequiredMana );

			if( Caster.Mana < mana )
			{
				Caster.SendLocalizedMessage( 1060174, mana.ToString() ); // You must have at least ~1_MANA_REQUIREMENT~ Mana to use this ability.
				return false;
			}
			else if( Caster.Skills[CastSkill].Value < RequiredSkill )
			{
				Caster.SendLocalizedMessage( 1063013, String.Format( "{0}\t{1}", RequiredSkill.ToString( "F1" ), "#1044114" ) ); // You need at least ~1_SKILL_REQUIREMENT~ ~2_SKILL_NAME~ skill to use that ability.
				return false;
			}

			return true;
		}

		public override void GetCastSkills( out double min, out double max )
		{
			min = RequiredSkill - 12.5;	//per 5 on friday, 2/16/07
			max = RequiredSkill + 37.5;
		}

		public override int GetMana()
		{
			return RequiredMana;
		}

		public override void DoFizzle()
		{
			Caster.PlaySound( 0x1D6 );
			Caster.NextSpellTime = DateTime.Now;
		}

		public override void DoHurtFizzle()
		{
			Caster.PlaySound( 0x1D6 );
		}

		public override void OnDisturb( DisturbType type, bool message )
		{
			base.OnDisturb( type, message );

			if( message )
				Caster.PlaySound( 0x1D6 );
		}

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

			SendCastEffect();
			m_CastTimeFocusLevel = GetFocusLevel( Caster );
		}

		public virtual void SendCastEffect()
		{
			Caster.FixedEffect( 0x37C4, 10, (int)(GetCastDelay().TotalSeconds * 28), 4, 3 );
		}

		public virtual bool CheckResisted( Mobile m )
		{
			double percent = (50 + 2*(GetResistSkill( m ) - GetDamageSkill( m )))/100;	//TODO: According to the guide this is it.. but.. is it correct per OSI?

			if( percent <= 0 )
				return false;

			if( percent >= 1.0 )
				return true;

			return (percent >= Utility.RandomDouble());
		}
	}
}
__________________
&lt;a href="http://wappyworld.com/phpBB2/portal.php"&lt;/a>
mikeymaze is online now   Reply With Quote
Old 08-25-2008, 08:41 PM   #9 (permalink)
Forum Novice
 
Join Date: Aug 2005
Location: Italy (Piemonte)
Age: 20
Posts: 210
Send a message via ICQ to Smjert Send a message via MSN to Smjert
Default

Comment these lines:

Code:
if ( Caster is PlayerMobile && ! ((PlayerMobile) Caster).Spellweaving )
			{
				Caster.SendLocalizedMessage( 1073220 ); // You must have completed the epic arcanist quest to use this ability.
				return false;
			}
And it will nevermore ask you to complete the quest.
Smjert is offline   Reply With Quote
Old 08-25-2008, 08:46 PM   #10 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default

wow man slow down lol that was the Fastest reply i ever got thanks ill give it ago


Thank you seems to have worked
__________________
&lt;a href="http://wappyworld.com/phpBB2/portal.php"&lt;/a>

Last edited by mikeymaze; 08-25-2008 at 08:54 PM.
mikeymaze is online now   Reply With Quote
Old 08-25-2008, 08:56 PM   #11 (permalink)
Forum Novice
 
Join Date: Aug 2005
Location: Italy (Piemonte)
Age: 20
Posts: 210
Send a message via ICQ to Smjert Send a message via MSN to Smjert
Default

Quote:
Originally Posted by mikeymaze View Post
wow man slow down lol that was the Fastest reply i ever got thanks ill give it ago


Thank you seems to have worked
Bah i was near here.. :P

I'm glad it worked for you
Smjert is offline   Reply With Quote
Old 08-25-2008, 09:06 PM   #12 (permalink)
Forum Novice
 
Join Date: Dec 2003
Posts: 143
Default

you rock now all i got to do is get this Taming Bulk order stuff to work with svn and im all set to go ...well for a day or so lol
__________________
&lt;a href="http://wappyworld.com/phpBB2/portal.php"&lt;/a>
mikeymaze is online now   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