Advertisement
Smudla

Druid Taming Updated

Aug 1st, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.35 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using Phoenix;
  4. using Phoenix.WorldData;
  5. namespace Scripts.SanctLor
  6. {
  7.     public class DruidTaming
  8.     {
  9.         [Command("Tamuj1x")]
  10.         public void tamuj1x()
  11.         {
  12.             Graphic[] modely = { 0x2136, 0x2121, 0x2103, 0x20EB, 0x211D, 0x2135, 0x2134 };
  13.             //Hul Color: 0x0B2D  Graphic: 0x13F4  
  14.             //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
  15.             string[] nazvyJezditek = { "Mustang", "Zostrich", "Despise Mustang", "Blood Oclock", "Skyhawk" };
  16.             foreach (UOCharacter i in World.Characters)
  17.             {
  18.                 UO.Print(65, "Hledam mustanga");
  19.                 if (i.Name.CompareTo(nazvyJezditek[0]) == 0 ||
  20.                     i.Name.CompareTo(nazvyJezditek[1]) == 0 ||
  21.                     i.Name.CompareTo(nazvyJezditek[2]) == 0 ||
  22.                     i.Name.CompareTo(nazvyJezditek[3]) == 0 ||
  23.                     i.Name.CompareTo(nazvyJezditek[4]) == 0 )
  24.                 {
  25.                     if (i.Distance <= 6)
  26.                     {
  27.                         UO.Print(65, "Tamuju spesl holi mustanga");
  28.                         UO.WaitTargetObject(i.Serial);
  29.                         UO.UseType(0x13F4, 0x0B2D);
  30.                         UO.Wait(300);
  31.                         while (!UO.InJournal("byl tamnut."))
  32.                         {
  33.                             UO.Wait(100);
  34.                         }
  35.                         UO.Wait(100);
  36.                         UO.Print(65, "itemu " + World.Ground.CountItems());
  37.                         foreach (Graphic j in modely)
  38.                         {
  39.  
  40.                             if (World.Ground.Count(j) > 0)
  41.                             {
  42.                                 UO.Print(65, "Sbiram mustanga");
  43.                                 World.Ground.FindType(j).Grab(1);
  44.                                 //j.Grab(1);
  45.                                 return;
  46.                             }
  47.  
  48.                         }
  49.                         return;
  50.                     }
  51.                     else
  52.                     {
  53.                         UO.Print(65, "Jsi moc daleko");
  54.                         return;
  55.                     }
  56.                 }
  57.             }
  58.         }
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement