Jump to content
Sign in to follow this  
N.e.o.N

(Java) Help Plz Gm Shop Community..

Recommended Posts

При покупке в CommunityBoard появляется ошибка:

08.12.2012 12:54:28 core.skyline.game.network.clientpackets.L2GameClientPacket run

SEVERE: Client: [Character: NeoN[268480402] - Account: root - IP: 127.0.0.1] - Failed running: [C] A7 MultiSellChoose - Server Version: null - DP Revision: null ; null

java.lang.NullPointerException

at core.skyline.game.network.clientpackets.MultiSellChoose.doExchange(MultiSellChoose.java:456)

at core.skyline.game.network.clientpackets.MultiSellChoose.runImpl(MultiSellChoose.java:70)

at core.skyline.game.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:77)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Но покупка происходит успешно.

 

Вызов мультиселла:

else if(command.startsWith("_bbsshop;"))

{

StringTokenizer st = new StringTokenizer(command, ";");

st.nextToken();

int listId = Integer.parseInt(st.nextToken());

if(listId >= Config.MIN_SHOP_ID_COMMUNITY && listId <= Config.MAX_SHOP_ID_COMMUNITY)

{

L2Multisell.getInstance().separateAndSend(listId, activeChar, activeChar.getCharId(), false, 0);

}

else

{

Util.handleIllegalPlayerAction(activeChar, (("Player ") + activeChar.getName()) + (" tried to use l2phx for shop in community"), Config.DEFAULT_PUNISH);

}

}

else

{

separateAndSend("<html><body><br><br><center>Command: " + command + " - it's do not worked!</center><br><br></body></html>", activeChar);

}

 

Проверка в MultiSellChoose:

runImpl:

 

 

L2Object target = player.getTarget();

if((!Config.ALLOW_SHOP_COMMUNITY || _listId < Config.MIN_SHOP_ID_COMMUNITY || _listId > Config.MAX_SHOP_ID_COMMUNITY) && !player.isGM() && (target == null || !(target instanceof L2Npc) || !list.checkNpcId(((L2Npc)target).getNpcId()) || !((L2Npc)target).canInteract(player)))

return;

 

doExchange:

 

 

L2Npc merchant = (player.getTarget() instanceof L2Npc) ? (L2Npc) player.getTarget() : null;

if((!Config.ALLOW_SHOP_COMMUNITY || _listId < Config.MIN_SHOP_ID_COMMUNITY || _listId > Config.MAX_SHOP_ID_COMMUNITY) && merchant == null)

return;

Share this post


Link to post
Share on other sites

java.lang.NullPointerException

вроде как обращение в null происходит где-то, могу ошибаться

Share this post


Link to post
Share on other sites

Такая же ошибка... покупка проходит удачно гс пишет ошибку, беру в таргет любого нпц, ошибки нету. Мб кто сталкивался с этим помогите найти решение.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...