Author Topic: [c#] How to convert to system.type  (Read 2956 times)

0 Members and 1 Guest are viewing this topic.

Offline epsilon2Topic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 1
  • epsilon2 has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
[c#] How to convert to system.type
« on: August 14, 2016, 10:51:58 PM »
0
Hello,

I have some problem mit int and system.type.  Do You know how to enter Mobile.Find(.....) the right Type ?

regards,

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using ScriptDotNet2;
using ScriptSDK;
using ScriptSDK.Data;
using ScriptSDK.Attributes;
using ScriptSDK.Configuration;
using ScriptSDK.Gumps;
using ScriptSDK.Targets;
using ScriptSDK.Utils;
using ScriptSDK.ContextMenus;
using ScriptSDK.Engines;
using ScriptSDK.Items;
using ScriptSDK.Mobiles;
using StealthAPI;

namespace ConsoleApplication1
{
    internal static class Program
    {
        [STAThread]
        private static void Main(string[] args)
        {
            SDK.Initialize();
            Stealth.Client.SendTextToUO("Hello World!");
            var Player = PlayerMobile.GetPlayer();           
            List<Type> types = new List<Type>();
            types.Add(typeof(Cow));
            types.Add(typeof(Dog));
            List<Type> Mob = Mobile.Find(0x0190, 0x0, true);

            ScriptLogger.Initialize();
            ScriptLogger.LogToStealth = true;
            ScriptSDK.Configuration.ContextOptions.Initialize();
            Player.ContextMenu.Parse();
            //       var results = Scanner.Find(typeof(Necklace), Player.Backpack.Serial.Value, true);//Sends Query based on QueryGraphic
            ScriptLogger.WriteLine(String.Format("{0}", Player.ContextMenu.Entries.ToString()));
            Stealth.Client.Wait(1000);
            Player.ContextMenu.Click("Check your stats");
        }
    }
}

Tags: