/**
* Set the Store type of the L2PcInstance.
* @param type : 0 = none, 1 = sell, 2 = sellmanage, 3 = buy, 4 = buymanage, 5 = manufacture.
*/
public void setStoreType(StoreType type)
{
_storeType = type;
if (Config.OFFLINE_DISCONNECT_FINISHED && (type == StoreType.NONE) && ((getClient() == null) || getClient().isDetached()))
deleteMe();
}
now you will understand all your errors