#region autohunting (1070) case 1070: { if (client.entity.auto == false && client.entity.level < 130) { client.send(new network.gamepackets.npcreply(6, "sorry to you should have level 130 to run auto hunting !")); return; } autohunt auto = new autohunt(false); auto.deserialize(packet); switch (auto.type) { case autohunt.icon: { auto = new autohunt(true); auto.type = 0; auto.show = 341; client.send(auto); return; } case autohunt.start: { auto = new autohunt(true); auto.type = 1; client.send(auto); client.entity.auto = true; client.entity.addflag3(update.flags3.autohunting); return; } case autohunt.gui: { auto = new autohunt(true); auto.type = 2; auto.exp = (ushort)client.entity.autohuntxp; client.send(auto); return; } case autohunt.end: { auto = new autohunt(true); auto.type = 3; client.entity.auto = false; client.entity.autohuntxp = 0; client.entity.removeflag3(update.flags3.autohunting); client.send(auto); return; } } return; } #endregion autohunting (1070)