/** * * */ public class Stat implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "stat" };
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("stat")) { if (activeChar.getTarget()==null) { activeChar.sendMessage("You have no one targeted."); return false; } if (!(activeChar.getTarget() instanceof L2PcInstance)) { activeChar.sendMessage("You can only get the info of a player.");
(targetp.getInventory().getItemByItemId(6393).getC ount() > 0) megtudhatod hogy egy bizonyos itemből mennyi van neki az inventoryába (5393 átirhatod másra is nem lényeges ugyanezt hazsnálni, annak a helyére aztaz id ird be amien itemet szeretnél használni)