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-07-2008, 08:46 AM   #1 (permalink)
Newbie
 
Join Date: Jan 2004
Posts: 64
Send a message via ICQ to robinson
Default About mounts

ok here is my idea.i want the nightmare,unicorn,and ki-rin only ridable with 100 animal lore skill.how can i do this? i remember 2.0 does this thing (maybe i'm wrong) but i remember that people were make their animal lore 100 mount animal than decrease their lore and live happily ever after
i thought i can make it onlogin() but how?sorry about english thanks
robinson is offline   Reply With Quote
Old 08-07-2008, 08:53 AM   #2 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,294
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

You will have to initialize your class with a Login EventSink
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 08-07-2008, 09:07 AM   #3 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 985
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

Quote:
Originally Posted by Vorspire View Post
You will have to initialize your class with a Login EventSink
Probably the best solution. Just add a Login EventSink to the Nightmare class that apon login checks the nightmares rider, and if that riders animal lore is not >= to 100 it will boot them off. Also loot at warsteed from the factions engine to see how to keep them from just remounting the pet once they are kicked off it.

Good luck!
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 is offline   Reply With Quote
Old 08-07-2008, 09:15 AM   #4 (permalink)
Forum Expert
 
vermillion2083's Avatar
 
Join Date: Jun 2005
Location: Lansing, MI
Age: 25
Posts: 985
Send a message via ICQ to vermillion2083 Send a message via MSN to vermillion2083
Default

I got bored, here ya go this should work just fine. Add this to your nightmare class:

Code:
		public static void Initialize()
		{
			EventSink.Login += new LoginEventHandler( EventSink_Login );
		}

		private static void EventSink_Login( LoginEventArgs args )
		{
			Mobile m = args.Mobile;
			IMount mt = m.Mount;

			if ( mt != null && mt is Nightmare && m.Skills[SkillName.AnimalLore].Value < 100 )
			{
				m.SendMessage("Place reason for dismounting here");
				mt.Rider = null;
			}
		}
__________________
Father Time
Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "Holy Hell......What a ride!!!"

Server: UO: Extinction
ICQ: 146563794
FatherTime@UOExtinction.com
UO: Extinction homepage
UO: Extinction forum
vermillion2083 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