|
hey i have a problem with my drops (player/npc) ,if u drop any items on height 0 u can see and pick it at height 1 or 2 ,same as if u drop it as height 1 etc...
can someone help me to fix please?
Code:public void removeGroundItem(int itemID, int itemX, int itemY, int Amount) { synchronized(c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(156); c.getOutStream().writeByteS(0); c.getOutStream().writeWord(itemID); c.flushOutStream(); } }[CODE]Code:/** * Drop Item **/ public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { synchronized (c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(44); c.getOutStream().writeWordBigEndianA(itemID); c.getOutStream().writeWord(itemAmount); c.getOutStream().writeByte(0); c.flushOutStream(); } }
i tested like this but show me items from other heights but dont leave me to pick themCode:public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { synchronized(c) { c.getOutStream().createFrame(85); c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY)); c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX)); c.getOutStream().createFrame(44); c.getOutStream().writeWordBigEndianA(itemID); c.getOutStream().writeWord(itemAmount); c.getOutStream().writeByte(c.heightLevel); c.flushOutStream(); } }
any ideas?
the byte for height is wrong, instead of it acting as height its adding a tile offset to the item(height level 1 meaning it makes the pickup tile 1 tile away from where the item is displayed), ive had this problem before but i dont remember how i fixed it.
anyone please?
bump
bump still need help
can someone tell me what method can be wrong?i founded a server wth drop height fix but create and pickup items methods are just like my methods
i need this too
I think this is client sided.
I'll need to look more into the issue.
i tested many thing nothing to do with item heights ,client side?hmm
I realy want this bug fixed
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |