Partial sync with L2jServer HighFive Nov 6th 2015.

This commit is contained in:
MobiusDev
2015-11-07 01:14:51 +00:00
parent 4964c24da9
commit 57dcdb065d
107 changed files with 1331 additions and 266 deletions

View File

@ -320,6 +320,7 @@ public abstract class ItemContainer
item.setOwnerId(getOwnerId());
item.setItemLocation(getBaseLocation());
item.setLastChange(L2ItemInstance.ADDED);
item.setEnchantLevel(template.getDefaultEnchantLevel());
// Add item in inventory
addItem(item);

View File

@ -556,7 +556,7 @@ public class PcInventory extends Inventory
actor.sendPacket(new ExAdenaInvenCount(actor));
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), item.getItem());
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), actor);
}
}
@ -611,7 +611,7 @@ public class PcInventory extends Inventory
actor.sendPacket(new ExAdenaInvenCount(actor));
// Notify to scripts
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), item.getItem());
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), actor);
}
return item;