זה לא בעיות..
זה PE
יש כזה דבר..
אתה אמור לחסום את זה כזאתה מוסיף משהו בקוד בריפאק שיעשה שיבדוק אם מי שלוקח אייטם הוא ה OWNER של החנות
אני ייחפש לך את זה..
איך מתקנים?
קודם , תגבה את הריפאק/הקבצים שאני יומר לך לשנות..
ככה:
כנס לPlayerInteractionHandler.java
חפש משהו כזה:
קוד:
} else if (mode == Action.TAKE_ITEM_BACK.getCode() || mode == Action.REMOVE_ITEM.getCode()) {
int slot = slea.readShort();
IPlayerInteractionManager shop = c.getPlayer().getInteraction();
if (shop != null) {
MaplePlayerShopItem item = shop.getItems().get(slot);
if (item.getBundles() > 0) {
IItem iitem = item.getItem();
iitem.setQuantity(item.getBundles());
MapleInventoryManipulator.addFromDrop(c, iitem);
}
shop.removeFromSlot(slot);
c.getSession().write(MaplePacketCreator.shopItemUpdate(shop));
}
שנה אותו לזה:
קוד:
} else if (mode == Action.TAKE_ITEM_BACK.getCode() || mode == Action.REMOVE_ITEM.getCode()) {
int slot = slea.readShort();
IPlayerInteractionManager shop = c.getPlayer().getInteraction();
if (shop != null && shop.isOwner(c.getPlayer()))
MaplePlayerShopItem item = shop.getItems().get(slot);
if (item.getBundles() > 0) {
IItem iitem = item.getItem();
iitem.setQuantity(item.getBundles());
MapleInventoryManipulator.addFromDrop(c, iitem);
}
shop.removeFromSlot(slot);
c.getSession().write(MaplePacketCreator.shopItemUpdate(shop));
}
מה עשיתה?
עשיתה שכדאי שייקחו אייטם מהחנות , קודם החנות תבדוק אם מי שלוקח אייטם הוא ה וואנר של החנות , ורק אז היא מביאה לו..