Vkouk Posted August 23, 2010 Posted August 23, 2010 Hello,i was trying to adapt the offline system from epi to il and i have one prob... It gives me error at this if (player.getBuyList().addItemByItemId(items.getInt(2), items.getLong(3), items.getLong(4)) == null) throw new NullPointerException(); and at this if (player.getSellList().addItem(items.getInt(2), items.getLong(3), items.getLong(4)) == null) throw new NullPointerException(); Thanks in advance Ps:That is from the epi..i add it to il but it show me these errors..should i change something?
0 Realtek2 Posted August 23, 2010 Posted August 23, 2010 do you have method additem and additembyid ? or show me what eclipse saying :D
0 Vkouk Posted August 23, 2010 Author Posted August 23, 2010 do you have method additem and additembyid ? or show me what eclipse saying :D ye its at TradeList.java which is at net.sf.l2j.gameserver.model package.. I dont have change something,but i saw that addbyitemid method its different at epi..so maybe i have change something? i mean to change this (items.getInt(2), items.getLong(3), items.getLong(4)) == null) the inside part
0 Vkouk Posted August 23, 2010 Author Posted August 23, 2010 nevermind..Rizel helped me..thanks lock it
Question
Vkouk
Hello,i was trying to adapt the offline system from epi to il and i have one prob...
It gives me error at this
if (player.getBuyList().addItemByItemId(items.getInt(2), items.getLong(3), items.getLong(4)) == null)
throw new NullPointerException();
and at this
if (player.getSellList().addItem(items.getInt(2), items.getLong(3), items.getLong(4)) == null)
throw new NullPointerException();
Thanks in advance
Ps:That is from the epi..i add it to il but it show me these errors..should i change something?
5 answers to this question
Recommended Posts