603604605606607608609610611612613
if (actor.isInRangeZ(target, range)) { if (actor.isPlayer()) { //((Player) actor).doInteract(target); target.onActionSelect((Player) actor, false); } setIntention(AI_INTENTION_ACTIVE); } else {
5556575859606162636465
{ String targetName = wordList[1]; GameObject obj = World.getPlayer(targetName); if ((obj != null) && obj.isPlayer()) { obj.onActionSelect(activeChar, false); } else { activeChar.sendMessage("Player " + targetName + " not found"); }
5354555657585960616263
obj.onForcedAttack(actor, _forced); } } else { obj.onActionSelect(actor, _forced); } actor.setActive(); } actor.sendActionFailed(); }