Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Phoenix;
- using Phoenix.WorldData;
- namespace Scripts.SanctLor
- {
- public class DruidTaming
- {
- [Command("Tamuj1x")]
- public void tamuj1x()
- {
- Graphic[] modely = { 0x2136, 0x2121, 0x2103, 0x20EB, 0x211D, 0x2135, 0x2134 };
- //Hul Color: 0x0B2D Graphic: 0x13F4
- //pokud pridas dalsi jezditko, proste ho napis za carku do "" a do toho if dopis || to znamena nebo a za to to stejny jen s cislem o 1 vysi - dle poctu jezditek
- string[] nazvyJezditek = { "Mustang", "Zostrich", "Despise Mustang", "Blood Oclock", "Skyhawk" };
- foreach (UOCharacter i in World.Characters)
- {
- UO.Print(65, "Hledam mustanga");
- if (i.Name.CompareTo(nazvyJezditek[0]) == 0 ||
- i.Name.CompareTo(nazvyJezditek[1]) == 0 ||
- i.Name.CompareTo(nazvyJezditek[2]) == 0 ||
- i.Name.CompareTo(nazvyJezditek[3]) == 0 ||
- i.Name.CompareTo(nazvyJezditek[4]) == 0 )
- {
- if (i.Distance <= 6)
- {
- UO.Print(65, "Tamuju spesl holi mustanga");
- UO.WaitTargetObject(i.Serial);
- UO.UseType(0x13F4, 0x0B2D);
- UO.Wait(300);
- while (!UO.InJournal("byl tamnut."))
- {
- UO.Wait(100);
- }
- UO.Wait(100);
- UO.Print(65, "itemu " + World.Ground.CountItems());
- foreach (Graphic j in modely)
- {
- if (World.Ground.Count(j) > 0)
- {
- UO.Print(65, "Sbiram mustanga");
- World.Ground.FindType(j).Grab(1);
- //j.Grab(1);
- return;
- }
- }
- return;
- }
- else
- {
- UO.Print(65, "Jsi moc daleko");
- return;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement