/** @param summon */ public SM_NPC_INFO(Summon summon) { this.npc = summon; npcTemplate = summon.getObjectTemplate(); npcTypeId = npcTemplate.getNpcType().getId(); npcId = summon.getNpcId(); Player owner = summon.getMaster(); if (owner != null) { masterObjId = owner.getObjectId(); masterName = owner.getName(); speed = owner.getGameStats().getCurrentStat(StatEnum.SPEED) / 1000f; } else { masterName = "LOST"; } }