|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Dream Sage
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
|
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;
}
}
|
|
|
|
|
|
#2 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,700
|
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) |
|
|
|
|
|
#3 (permalink) |
|
Dream Sage
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 839
|
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
|
|
|
|
|
|
#4 (permalink) |
|
UO Gamers: Demise Administrator
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,700
|
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) |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Age: 26
Posts: 1,797
|
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! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|