public void main() { Active = false; //uoobject tempob = (uoobject)uonet.GameObjects[3]; //Events.Cast(Spell.Agility); uonet.displaywipe(); uonet.display("Script Started!"); Event Events = new Event(uonet); int cnt = 0; while (cnt < 10) { Events.UseObject(1076771726); while (uonet.UOClient.TargCurs == 0) { Thread.Sleep(10); } Events.TargetGround(2563, 489, 0, 0); for (int x = 0; x < 40; x++) { Thread.Sleep(100); String temp = (String)uonet.Journal[0]; if (temp.Contains("loosen")) { uonet.display("FoundLoosen"); break; } } //Thread.Sleep(3000); } uonet.display(Events.IntToEUO(uonet.player.CharID)); uoobject myobj = new uoobject(); foreach (DictionaryEntry Item in uonet.GameObjects) { uoobject mytemp = (uoobject)Item.Value; uonet.display("ID: " + mytemp.serial); } uonet.display("Script Ended!"); //Events.Move(3503, 2580, 0, 5); // uonet.Send(Packets.Send.Packets.MoveRequestPacket(Direction.West,0,0)); // Events.UseSkill(Skill.AnimalLore); //Thread.Sleep(500); //Events.UseSkill(Skill.Tracking); }
private void btn_clearlog_Click(object sender, EventArgs e) { uonet.displaywipe(); }