Jump to content
  • 0

Asking massive help-Npe


DnR

Question

Guys,i have this npe and i see no ways to fix it...

I just dont understand how can stats go null lol.

 

http://img190.imageshack.us/f/eleosds.jpg/

 

I searched at the l2j team i use and this issue was never mentioned.

L2J gameserver rev.2018

 

When i unequip all my armor parts,all my stats go to 0.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

i will post all the part related to this line.

if (env.player instanceof L2PcInstance)
            {
    			L2PcInstance p = (L2PcInstance) env.player;
    			if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LFINGER) != null) env.value -= 5;
    			if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RFINGER) != null) env.value -= 5;
    			if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEAR) != null) env.value -= 9;
    			if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_REAR) != null) env.value -= 9;
    			if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_NECK) != null) env.value -= 13;
            }
		env.value *= MENbonus[env.player.getMEN()] * env.player.getLevelMod();
	}
}

static class FuncPDefMod extends Func
{
	static final FuncPDefMod _fmm_instance = new FuncPDefMod();

	static Func getInstance()
	{
		return _fmm_instance;
	}

	private FuncPDefMod()
	{
		super(Stats.POWER_DEFENCE, 0x20, null);
	}

	@Override
	public void calc(Env env)
	{
		if (env.player instanceof L2PcInstance)
                        { 
		                L2PcInstance p = (L2PcInstance) env.player; 
		                boolean hasMagePDef = (p.getClassId().isMage() || p.getClassId().getId() == 0x31); // orc mystics are a special case 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_HEAD) != null) 
		                        env.value -= 12; 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) != null) 
		                        env.value -= hasMagePDef ? 15 : 31; 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) != null || p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR) 
		                        env.value -= hasMagePDef ? 8 : 18; 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) != null) 
		                        env.value -= 8; 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) != null) 
		                        env.value -= 7; 
	                } 
		env.value *= env.player.getLevelMod();
	}
}

Link to comment
Share on other sites

  • 0

Thank you a lot jimaras,i appreciate it.

 

The problem was here:

 
		                if (p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) != null || p.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR) 
		                        env.value -= hasMagePDef ? 8 : 18; 

 

Request for lock.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Hello everyone, forum members!!! Our service does not stand still, continuing to expand the price list and quality of services WE HAVE PREPARED A LARGE NUMBER OF ACCOUNTS IN THE WAREHOUSE FOR YOUR WORK ✔N26 + VCC DE - DE IBAN / Sepa Instant / Virtual cards / LDPlayer ✔Payset business - GB IBAN / sort code / account number / €, GBP ✔BBVA + VCC ES - IBAN ES / Visa card / transaction limit 2000€ per day ✔4x4.io EU - Virtual debit cards for GOOGLE, FACEBOOK, TIKTOK ✔Bitmart EU - Buy & Sell Crypto Instantly provider: Moonpay / Banxa / Legend Trading ✔Xapo Bank Business EU - Sort code / IBAN / account number ✔Wittix Business EU - IBAN LT, GB, DK / SEPA / SWIFT ✔Wise business + VCC - IBAN BE + GB + sort code / USD: AN+RN / Virtual cards ✔Brighty app + VCC EU - IBAN FI / Virtual cards / SWIFT / SEPA / Google, Apple pay, PayPal 2,5% ✔Paytend + VCC EU - IBAN LT / LDPlayer / Virtual card ✔PST + VCC EU - Unlimited virtual cards ✔eBay.com new and aged US - 10k$ - 25k$ limits ✔RedotPay + VCC EU - Virtual cards / Crypto / Apple Pay, Google Pay ✔Wise + VCC EU - IBAN BE + GB / Virtual cards (3DS) / VISA AND MANY OTHERS
    • CLExt Captcha System 4.69+      
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11   Welcome to my store :https://ultrasstore11.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord :@ultrasstore11 Telegram : https://t.me/ultrastore11  
  • Topics

×
×
  • Create New...