Author Topic: [c# scriptsdk 0.9.3] Do Know how to use types?  (Read 4218 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# scriptsdk 0.9.3] Do Know how to use types?
« on: August 16, 2016, 07:08:24 AM »
0
I used this example
https://sourceforge.net/p/scriptsdk/wiki/ItemSearch/

so i generated this class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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;
using ScriptDotNet2;

namespace ConsoleApplication1
{
    [QueryGraphic(0x0190, 0x0191)] //Possible Graphic Types for a Neclace
    public class class NPC : Mobile
    {
        public NPC(Serial serial)
            : base(serial)
        {
        }
    }
}


but QueryGraphic is not valid.

I used it for this  functions:


List<Type> types = new List<Type>();
types.Add(typeof(Cow));
types.Add(typeof(Dog));
//We designed a Class Cow and a Class Dog which inherited from Mobile and had search params
List<Mobile> mobilesearch = Mobile.Find(types,0x0,true);

thx for advancing me

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: [c# scriptsdk 0.9.3] Do Know how to use types?
« Reply #1 on: August 16, 2016, 08:04:09 AM »
0
i think you may use an outdated version.
Latest source you can obtain here : https://github.com/Crome696/ScriptSDK

Offline epsilon2Topic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 1
  • epsilon2 has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: [c# scriptsdk 0.9.3] Do Know how to use types?
« Reply #2 on: August 16, 2016, 09:27:40 AM »
0
Were is the Proffesion of an NPC hidden found in an

List<Mobile> list ?

regards

Offline epsilon2Topic starter

  • Jr. Member
  • **
  • Posts: 36
  • Activity:
    0%
  • Reputation Power: 1
  • epsilon2 has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: [c# scriptsdk 0.9.3] Do Know how to use types?
« Reply #3 on: August 16, 2016, 11:00:32 AM »
0

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: [c# scriptsdk 0.9.3] Do Know how to use types?
« Reply #4 on: August 16, 2016, 12:45:55 PM »
0
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: [c# scriptsdk 0.9.3] Do Know how to use types?
« Reply #5 on: August 16, 2016, 10:46:18 PM »
0

Tags: