Multi Aura
module = script.registerModule("CustomAura",COMBAT);
module.addIntegerProperty("set_APS","APS",10,1,16,1);
var timer = timer_util.getTimer();
module.onEvent("playerPreUpdateEvent",function(event){
var entities = world.getEntityList();
var i;
if(timer.delay(1000/module.getProperty("set_APS").getInteger())){
for(i = 0;i < entities.length;i++){
if(player.getDistanceToEntity(entities[i]) < 4 && entity_util.getName(entities[i]) != player.getName()){
{ // Non-Silent
player.setYaw(angle_util.getAngles(entities[i])[0]);
player.setPitch(angle_util.getAngles(entities[i])[1]);
}
{ // Silent
event.setYaw(angle_util.getAngles(entities[i])[0]);
event.setPitch(angle_util.getAngles(entities[i])[1]);
}
player.swingItem();
connection.sendPacket("0x02",entities[i],ATTACK);
}
}
timer.reset();
}
})
Last updated