- TibiaBotting http://www.tibiabotting.pun.pl/index.php - Skrypty http://www.tibiabotting.pun.pl/viewforum.php?id=33 - [Skrypty] Advanced skiller http://www.tibiabotting.pun.pl/viewtopic.php?id=58 |
Masterix - 2010-09-22 19:15:07 |
[Skrypty] Advanced skiller Kod:uint hpPcToLeave = 30; uint offId = Items.Axes.StonecuttersAxe.Id; uint defId = Items.Axes.Axe.Id; ItemLocation itLoc = new ItemLocation(); itLoc.Type = ItemLocationType.Slot; itLoc.Slot = SlotNumber.Left; string[] defMonster = new string[] { "Gargoyle", "Dwarf" }; string[] offMonster = new string[] { "Stone Golem", "Gozzler" }; if (core.Client.LoggedIn) { uint attackedId = core.Player.TargetId; Creature attackedCreature = null; foreach (Creature c in core.Client.BattleList.GetCreatures()) { if (c.Id == attackedId) { attackedCreature = c; break; } } if (attackedCreature != null) { foreach (string s in offMonster) { if (s == attackedCreature.Name) { Item weapon = core.Client.Inventory.GetItemInSlot(SlotNumber.Left); if (core.Client.AttackMode == Attack.FullDefense) core.Client.SetModes(Attack.FullAttack, core.Client.FollowMode); if (weapon.Id == defId) { foreach (Item i in core.Client.Inventory.GetItems()) { if (i.Id == offId) { i.Move(itLoc, (byte)1); break; } } } break; } } foreach (string s in defMonster) { if (s == attackedCreature.Name) { Item weapon = core.Client.Inventory.GetItemInSlot(SlotNumber.Left); if (core.Client.AttackMode == Attack.FullAttack) core.Client.SetModes(Attack.FullDefense, core.Client.FollowMode); if (weapon.Id == offId) { foreach (Item i in core.Client.Inventory.GetItems()) { if (i.Id == defId) i.Move(itLoc, (byte)1); } } } } } bool attackedOff = false; foreach (Creature c in core.Client.BattleList.GetCreatures()) { if (c.Location.IsAdjacent()) { foreach (string s in offMonster) { if (s == c.Name) { c.Attack(); attackedOff = true; break; } } break; } } if (!attackedOff) { if (attackedCreature.Name == "Gargoyle" && attackedCreature.HPBar < hpPcToLeave) { foreach (Creature c in core.Client.BattleList.GetCreatures()) { if (c.Name == "Gargoyle" && c.HPBar > hpPcToLeave && c.Location.IsAdjacent()) c.Attack(); } } } } |