Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 08-25-2005, 08:08 PM   #1 (permalink)
Dream Sage
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
Default Paperdoll Request

ok what seems to be something fairly simple doesnt seem to be working not really asking support just a point in right direction I modifyed the body.cs file in the core compiled it and everything seems to be ok and since this will probably be in a later release for ML getting the body value of 605 and 606 to allow paperdoll opening here is what i did


in body,cs in the core i added this

additions are in red

Code:
public bool IsHuman
		{
			get
			{
				return m_BodyID >= 0
					&& m_BodyID < m_Types.Length
					&& m_Types[m_BodyID] == BodyType.Human
					&& m_BodyID != 402
					&& m_BodyID != 404
					&& m_BodyID != 970;
			}
		}

		public bool IsMale
		{
			get
			{
				return m_BodyID == 183
					|| m_BodyID == 185
					|| m_BodyID == 400
					|| m_BodyID == 402
					|| m_BodyID == 605					|| m_BodyID == 750;
			}
		}

		public bool IsFemale
		{
			get
			{
				return m_BodyID == 184
					|| m_BodyID == 186
					|| m_BodyID == 401
					|| m_BodyID == 403
					|| m_BodyID == 606
					|| m_BodyID == 751;
			}
		}
that should have taken care of it is there something im missing?
__________________
To walk among the few of understanding
Admin of Geia Adventures
Geia Adventures
joshw is offline   Reply With Quote
Old 08-26-2005, 07:55 AM   #2 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,700
Default

Well, I know if you just manually change the bodyvalue of a mobile to the elf bodies, the paperdoll is correct automagically... (Ears and all)


Not sure what else you're looking for...
__________________
psz
Demise' Creator (Retired)
The RunUO.com Forum Moderator Team
Former Official RunUO Scripter (Retired)
Websites:
My 360 Blog
My Gaming Site(Old Link)
My Gaming Site(New Link)
psz is offline   Reply With Quote
Old 08-26-2005, 01:20 PM   #3 (permalink)
Dream Sage
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
Default

no what i mean is if you change the body value manually yes it changes paperdoll then after youve done that close the paperdoll and try to reopen it again . It wont open is what I mean it doesnt reconize the bodyvalue as isHuman
__________________
To walk among the few of understanding
Admin of Geia Adventures
Geia Adventures
joshw is offline   Reply With Quote
Old 08-26-2005, 07:08 PM   #4 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,700
Default

Ahh. I see. There is a bin file that controls what each bodytype is (It's what was needed to be edited to get FireBeetles working right). You probably have to set it there, as by default, it's probably set to Null.
__________________
psz
Demise' Creator (Retired)
The RunUO.com Forum Moderator Team
Former Official RunUO Scripter (Retired)
Websites:
My 360 Blog
My Gaming Site(Old Link)
My Gaming Site(New Link)
psz is offline   Reply With Quote
Old 08-26-2005, 08:36 PM   #5 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 26
Posts: 1,797
Default

I've never edited the .bin file myself - is it complex? Would it be possible to post a brief explanation?
__________________
New shard coming soon!
Voran is offline   Reply With Quote
Old 08-26-2005, 09:05 PM   #6 (permalink)
Dream Sage
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
Default

Yeah that has to be it the BIn file must be the problem im currently looking at how to edit it but if there are any links can give to a good editor for it would help
__________________
To walk among the few of understanding
Admin of Geia Adventures
Geia Adventures
joshw is offline   Reply With Quote
Old 08-27-2005, 11:22 AM   #7 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 26
Posts: 1,797
Default

Try replacing the CanPaperdollBeOpenedBy in Mobile.cs with this:

public virtual bool CanPaperdollBeOpenedBy( Mobile from )
{
if(Body==606||Body==605||Body==607||Body==608)
return true;
else
return ( Body.IsHuman || Body.IsGhost || IsBodyMod );
}
__________________
New shard coming soon!
Voran is offline   Reply With Quote
Old 08-27-2005, 05:48 PM   #8 (permalink)
Dream Sage
 
joshw's Avatar
 
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
Default

yep that worked just fine
__________________
To walk among the few of understanding
Admin of Geia Adventures
Geia Adventures
joshw 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