Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 10-30-2005, 07:00 PM   #1 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default Monster weapons

Update!!!There was a couple more bugs with a couple of weapons but I fixed overwrite all old files
Attached Files
File Type: rar Monster swords.rar (23.2 KB, 95 views)
Noxih is offline  
Old 10-30-2005, 07:13 PM   #2 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

SOUNDS GREAT. is it a case of add the item., then click it. on yr paperdoll. if not that sounds great/ if so. cool. great gob.
WonderlandADnc is offline  
Old 10-30-2005, 07:45 PM   #3 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

nope its onequip now
Noxih is offline  
Old 11-01-2005, 01:54 AM   #4 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 49
Posts: 73
Unhappy Problem :(

This is a great script, but there is one problem with it. when I equip one of them & then take it out of my hand it changes me to a male & I am female. I had to kill myself to change back to female.
Unicorn1259 is offline  
Old 11-01-2005, 02:24 AM   #5 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Well there are a few problems with these scripts. This will show you how to directly fix the problem of changing sex's.
Code:
		public override bool OnEquip( Mobile from )
		{
			if ( from.Mounted == true )
			{
				from.SendLocalizedMessage( 1042561 );
			}
			else if ( from.BodyValue == 0x190 || from.BodyValue == 0x191  )//Change here, you dont need the from.Female = false. This is determined by 0x191 value.
			{
				from.BodyMod = 0x9F;
				from.HueMod = 0x0;
				from.PlaySound( 278 );
			}
			return base.OnEquip(from);
			
		}
		
		public override void OnRemoved( object parent )
		{
			if(parent is Mobile)
			{
				Mobile from = (Mobile)parent;
				
				if ( from.BodyMod == 0x9F )//Change this to from.BodyMod
				{
					from.BodyMod = 0x0;//Change this
					from.HueMod = -1;
					from.PlaySound( 701 );
				}
			}
		}
Now on a side note. You should also include something to hide guildtitles etc...

p.s. You will need to change the BodyMod values to reflect whichever script you are fixing.
Packer898 is offline  
Old 11-01-2005, 02:31 AM   #6 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Not to piss people off
but please you guys...

Code:
if ( from.Mounted == true )
is the same as
Code:
if ( from.Mounted )
lol - An if statement returns a bool, so you don't need to evaluate it to a boolean. Make sense?
XxSP1DERxX is offline  
Old 11-01-2005, 02:37 AM   #7 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

SPeaking of which... You need to edit that if statement... As it sits you could equip the item with a mount and it would look really funky...
Code:
		public override bool OnEquip( Mobile from )
		{
			if ( from.Mounted )
			{
				from.SendLocalizedMessage( 1042561 );
				return false;//You need to add this in so they cant use while mounted...
			}
			else if ( from.BodyValue == 0x190 || from.BodyValue == 0x191  )//Change here, you dont need the from.Female = false. This is determined by 0x191 value.
			{
				from.BodyMod = 0x9F;
				from.HueMod = 0x0;
				from.PlaySound( 278 );
			}
			return base.OnEquip(from);
			
		}
Packer898 is offline  
Old 11-01-2005, 03:24 AM   #8 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 49
Posts: 73
Wink Thanks

Thanks guys I made the proper changes & it works great now
Unicorn1259 is offline  
Old 11-01-2005, 03:25 AM   #9 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Np your welcome.
Packer898 is offline  
Old 11-01-2005, 09:25 AM   #10 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

you should update all that and repost the files. thanks again.
WonderlandADnc is offline  
Old 11-01-2005, 03:32 PM   #11 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

thx for the info i will
Noxih is offline  
Old 11-01-2005, 04:51 PM   #12 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

All scripts are updated fixed the bug with not being able to switch back to a woman,you can now equip while mounted
Noxih is offline  
Old 11-01-2005, 05:19 PM   #13 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Quote:
Originally Posted by Noxih
you can now equip while mounted
You dont want to do that. It will cause some weird graphic issues. You need to amke it NOT allow you to equip while mounted...
Code:
		public override bool OnEquip( Mobile from )
		{
			if ( from.Mounted )
			{
				from.SendLocalizedMessage( 1042561 );
				return false;//You need to add this in so they cant use while mounted...
			}
Packer898 is offline  
Old 11-01-2005, 07:59 PM   #14 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

i have tested them all and no graphic issues
Noxih is offline  
Old 11-01-2005, 08:09 PM   #15 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Quote:
Originally Posted by Noxih
you can now equip while mounted
If you have it so you CAN equip the items while mounted then there is inded some weird graphic issues. People on my shard can hardly even see the person.

If you have it so they CANT then it works properly.

Maybe this is just a grammar misunderstanding =)-
Packer898 is offline  
Old 11-01-2005, 08:20 PM   #16 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

when you use it does it look fine to you
maybe thats why it looks fine to me if thats the case ill change it back. if anyone else has this problems post plz
Noxih is offline  
Old 11-01-2005, 09:39 PM   #17 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

Quote:
Originally Posted by Packer898
If you have it so you CAN equip the items while mounted then there is inded some weird graphic issues. People on my shard can hardly even see the person.

If you have it so they CANT then it works properly.

Maybe this is just a grammar misunderstanding =)-
dang you right i just logged onto two accounts then looked at it and it looks fine to thew person holding the weapon but not to others lol on ill change it back
Noxih is offline  
Old 11-01-2005, 10:01 PM   #18 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default



Not to burst your bubble or anything but you might want to test scripts a little further before releasing them on the script submissions forum. I really like your idea here but its obvious it needs(ed) alot of tuning.

Keep chugging away though. =)-
Packer898 is offline  
Old 11-01-2005, 10:07 PM   #19 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

sorry about that never thouht to look at it at a second person veiw but i fixed it now i changed it back to not being able to equip it while on a mobile thx for the pointer pack
Noxih is offline  
Old 11-01-2005, 10:47 PM   #20 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

great script., thanks for the update, ive been looking into making them so you can click the item. so u can use it. as yr player, and trans to the monster. all i can see is this, any info would be great.

Code:
public override void OnDoubleClick( Mobile from ) 
		{ 
			if ( from.FindItemOnLayer( Layer.TwoHanded ) == this ) 
			{ 
				if ( DateTime.Now >= PreviousUse + TimeSpan.FromSeconds(30) )
				{ 
					PreviousUse = DateTime.Now;
					if ( m_Charges == 0 ) 
					{ 
						from.SendLocalizedMessage( 1019073 ); // This item is out of charges. 
						return; 
					} 
          			
					else 
					{ 
						--m_Charges; 
					} 
						switch ( m_StaffEffect ) 
					{ 
						case StaffEffect.Freeze: new FreezeSpell( from, null ).Cast(); break; 
						case StaffEffect.IceStrike: new IceStrikeSpell( from, null ).Cast(); break; 
						case StaffEffect.IceBall: new IceBallSpell( from, null ).Cast(); break; 
					}
WonderlandADnc is offline  
Old 11-02-2005, 01:14 AM   #21 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

Quote:
Originally Posted by WonderlandADnc
great script., thanks for the update, ive been looking into making them so you can click the item. so u can use it. as yr player, and trans to the monster. all i can see is this, any info would be great.

Code:
public override void OnDoubleClick( Mobile from ) 
		{ 
			if ( from.FindItemOnLayer( Layer.TwoHanded ) == this ) 
			{ 
				if ( DateTime.Now >= PreviousUse + TimeSpan.FromSeconds(30) )
				{ 
					PreviousUse = DateTime.Now;
					if ( m_Charges == 0 ) 
					{ 
						from.SendLocalizedMessage( 1019073 ); // This item is out of charges. 
						return; 
					} 
          			
					else 
					{ 
						--m_Charges; 
					} 
						switch ( m_StaffEffect ) 
					{ 
						case StaffEffect.Freeze: new FreezeSpell( from, null ).Cast(); break; 
						case StaffEffect.IceStrike: new IceStrikeSpell( from, null ).Cast(); break; 
						case StaffEffect.IceBall: new IceBallSpell( from, null ).Cast(); break; 
					}
if your able to get that working it would be a nice addon to these weapons look in script support under help plz thats where i had it ondoubleclick
Noxih is offline  
Old 11-02-2005, 01:19 AM   #22 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 228
Send a message via AIM to Noxih
Default

Oh packer898 im sorry if i offended you in any what about the graphic flaw you are alot more exp that me
Noxih is offline  
Old 11-02-2005, 03:55 AM   #23 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Quote:
Originally Posted by Noxih
Oh packer898 im sorry if i offended you in any what about the graphic flaw you are alot more exp that me
You didnt. I was just informing you off the bug. My comments about testing more before releasing was just general advice. Scripts that are properly scripted without bugs are always a good thing. =)-
Packer898 is offline  
Old 11-02-2005, 06:34 PM   #24 (permalink)
Forum Expert
 
Join Date: Sep 2005
Location: UK
Age: 29
Posts: 781
Default

ok well, ive been looking and i coulnt find it in yr old script. but i did find this, i think its more the sort of thing. maybe.

Code:
public override void OnDoubleClick( Mobile m ) 
{ 
Item i = m.FindItemOnLayer( base.Layer );
if (i != null) // Did we find an item?
{ 
m.AddToBackpack(i); //put the item in their backpack (unequip it) 
} 
m.AddItem(this); // Equip this item;
}
WonderlandADnc is offline  
Old 11-02-2005, 06:38 PM   #25 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Quote:
Originally Posted by WonderlandADnc
ok well, ive been looking and i coulnt find it in yr old script. but i did find this, i think its more the sort of thing. maybe.

Code:
public override void OnDoubleClick( Mobile m ) 
{ 
Item i = m.FindItemOnLayer( base.Layer );
if (i != null) // Did we find an item?
{ 
m.AddToBackpack(i); //put the item in their backpack (unequip it) 
} 
m.AddItem(this); // Equip this item;
}
What is that for? That would just automatically equip it on 2x click. *Shrugs* Might be cool... Only problem with that is if an item is already using that layer...
Packer898 is offline  
 

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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5