AbstractRefinePacket
.
.
protected static final boolean isValid(L2PcInstance player, L2ItemInstance item)
{
if (!isValid(player))
return false;
// Item must belong to owner
if (item.getOwnerId() != player.getObjectId())
return false;
if (item.isAugmented())
return false;
if (item.isHeroItem())
return false;
if (item.isShadowItem())
return false;
if (item.isCommonItem())
return false;
if (item.isEtcItem())
return false;
if (item.isTimeLimitedItem())
return false;
if (item.isWear())
return false;
//if (item.isPvp())
// return false;
if (item.getItem().getCrystalType() < L2Item.CRYSTAL_C)
return false;
RequestConfirmCancelItem
.
.
protected void runImpl()
{
final L2PcInstance activeChar = getClient().getActiveChar();
final L2ItemInstance item = (L2ItemInstance)L2World.getInstance().findObject(_ itemId);
if (activeChar == null || item == null)
return;
if (item.getOwnerId() != activeChar.getObjectId())
{
Util.handleIllegalPlayerAction(getClient().getActi veChar(),"Warning!! Character "+getClient().getActiveChar().getName()+" of account "+getClient().getActiveChar().getAccountName() +" tryied to destroy augment on item that doesn't own.",Config.DEFAULT_PUNISH);
return;
}
if (!item.isAugmented())
{
activeChar.sendPacket(new SystemMessage(SystemMessageId.AUGMENTATION_REMOVAL _CAN_ONLY_BE_DONE_ON_AN_AUGMENTED_ITEM));
return;
}
//if (item.isPvp())
//{
// activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_IS_NOT_A_SUITAB LE_ITEM));
// return;
//}
.
.
protected static final boolean isValid(L2PcInstance player, L2ItemInstance item)
{
if (!isValid(player))
return false;
// Item must belong to owner
if (item.getOwnerId() != player.getObjectId())
return false;
if (item.isAugmented())
return false;
if (item.isHeroItem())
return false;
if (item.isShadowItem())
return false;
if (item.isCommonItem())
return false;
if (item.isEtcItem())
return false;
if (item.isTimeLimitedItem())
return false;
if (item.isWear())
return false;
//if (item.isPvp())
// return false;
if (item.getItem().getCrystalType() < L2Item.CRYSTAL_C)
return false;
RequestConfirmCancelItem
.
.
protected void runImpl()
{
final L2PcInstance activeChar = getClient().getActiveChar();
final L2ItemInstance item = (L2ItemInstance)L2World.getInstance().findObject(_ itemId);
if (activeChar == null || item == null)
return;
if (item.getOwnerId() != activeChar.getObjectId())
{
Util.handleIllegalPlayerAction(getClient().getActi veChar(),"Warning!! Character "+getClient().getActiveChar().getName()+" of account "+getClient().getActiveChar().getAccountName() +" tryied to destroy augment on item that doesn't own.",Config.DEFAULT_PUNISH);
return;
}
if (!item.isAugmented())
{
activeChar.sendPacket(new SystemMessage(SystemMessageId.AUGMENTATION_REMOVAL _CAN_ONLY_BE_DONE_ON_AN_AUGMENTED_ITEM));
return;
}
//if (item.isPvp())
//{
// activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_IS_NOT_A_SUITAB LE_ITEM));
// return;
//}
'Interesting > 취미생활' 카테고리의 다른 글
PARTY XP DISTRIBUTION (0) | 2009.11.10 |
---|---|
아이템 자동줍기 막기 (0) | 2009.11.10 |
텔레포트 좌표설정 (0) | 2009.11.10 |
경험치나 아이템 드랍 배율수정 (0) | 2009.11.10 |
잡템 삭제쿼리 (0) | 2009.11.05 |