This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
numl0ckas
Hello, i maked offline shop effect with poly, problem is what my name as npc name: Rabbit + I don't see my Title sell/buy.
Thanks for helping, here is code:
OfflineTradersTable from 213 line
items.close(); stm_items.close(); player.sitDown(); player.setPrivateStoreType(type); player.setOnlineStatus(true, true); player.restoreEffects(); + player.getPoly().setPolyInfo("npc", "14040"); player.broadcastUserInfo(); nTraders++; } catch (Exception e) { _log.log(Level.WARNING, "OfflineTradersTable[loadOffliners()]: Error loading trader: "+player,e); if (player != null) { player.deleteMe(); } } }L2GameClient on DisconnectTask:
L2PcInstance player = L2GameClient.this.getActiveChar(); if (player != null) { if ((player.isInStoreMode() && Config.OFFLINE_TRADE_ENABLE) || (player.isInCraftMode() && Config.OFFLINE_CRAFT_ENABLE)) { if (player.getPet() != null) { player.getPet().unSummon(player); } player.leaveParty(); + player.getPoly().setPolyInfo("npc", "14040"); + player.teleToLocation(player.getX(), player.getY(), player.getZ(), 0); + player.broadcastUserInfo(); if (player.getOfflineStartTime() == 0) player.setOfflineStartTime(System.currentTimeMillis());4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now