11-26-2010, 12:42 AM
krisadr Написал:ну так можно посмотреть код вашего хандлерасэмпл:
Код:
// Court Magician's Magic Staff
public void ItemHandler_13809(L2Player player, Boolean ctrl)
{
if(player == null)
return;
L2Object target = player.getTarget();
if(target == null)
return;
if(target.isDoor())
{
boolean _opened = false;
int[] list = new int[] { 17240103, 17240107 };
L2DoorInstance door = (L2DoorInstance) target;
for(int doorId : list)
if(door.getDoorId() == doorId)
{
door.openMe();
_opened = true;
}
if(!_opened)
player.sendPacket(Msg.YOU_HAVE_FAILED_TO_UNLOCK_THE_DOOR);
}
else
player.sendPacket(Msg.INVALID_TARGET);
}