l2pctemplate

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Lupu1
Posts: 335
Joined: Wed Nov 04, 2009 7:51 am

l2pctemplate

Post by Lupu1 »

6309-10068

In l2pctemplate there is no male only female ?

private final double _fCollisionHeightFemale;
private final double _fCollisionRadiusFemale;

I add the fake npc code and it haves

Code: Select all

                    L2PcTemplate pcTmpl = CharTemplateTable.getInstance().getTemplate(fPc.clazz);                    if (pcTmpl != null)                    {                        writeF(fPc.sex == 0 ? pcTmpl.getFCollisionRadiusMale() : pcTmpl.getFCollisionRadiusFemale());                        writeF(fPc.sex == 0 ? pcTmpl.getFCollisionHeightMale() : pcTmpl.getFCollisionHeightFemale());
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: l2pctemplate

Post by VlLight »

"Male" values are defined in parent class
Lupu1
Posts: 335
Joined: Wed Nov 04, 2009 7:51 am

Re: l2pctemplate

Post by Lupu1 »

VlLight wrote:"Male" values are defined in parent class
good like this ?

Code: Select all

                        writeF(fPc.sex == 0 ? pcTmpl.getfCollisionRadius() : pcTmpl.getFCollisionRadiusFemale());                        writeF(fPc.sex == 0 ? pcTmpl.getfCollisionHeight() : pcTmpl.getFCollisionHeightFemale());
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: l2pctemplate

Post by VlLight »

Yes
Lupu1
Posts: 335
Joined: Wed Nov 04, 2009 7:51 am

Re: l2pctemplate

Post by Lupu1 »

VlLight wrote:Yes
k thx
Post Reply