Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Blacklisted

Pages: [1] 2 3 ... 5
1
Stealth Client / Re: How to debug C# scripts with Visual Studio
« on: May 12, 2019, 03:54:03 AM »
I figured it out, just need to start bugging and it auomatictly start in steath, i didnt htink it would be that simple.

2
Stealth Client / How to debug C# scripts with Visual Studio
« on: May 12, 2019, 03:21:13 AM »
Hi, does anyone know how I can debug scripts using c# when they are running n stealth? I was using a try catch and outputing the string to a listbox.
I have an issue where the .exe is crashing before it can write anything to the list box.

how do I debug c# while using stealth.

3
Scripting Chat / Re: Cross Healer
« on: February 14, 2018, 12:20:19 PM »
Thanks all ill try to come with soemhting using those the animal taming script :)

4
Scripting Chat / Cross Healer
« on: February 13, 2018, 11:40:08 AM »
I've been playing on freeshard with a pretty low population, there is not enough people around to do spawns peerless, etc. so finding it hard to get 120s or farm mats to imbue with to make a better suit.
Does any one know of a script that I could run on one character that would heal/cure my main character.?

5
Stealth Client / C# open gump
« on: February 10, 2018, 12:53:03 PM »
I started playing UO again and I was thinking of automating the buying of regs from NPC vendors by gating around to mages shops.
I've been looking at the c# examples but cant firgure out how to open gumps can any other a small code snippet to get me started.

I've been trying to get a list of the NPC's in luna mage shop then double click on each one.
The Mobile is expecting a uint but I cant find where to get the value all the values in stealth are the wrong type


Code: [Select]
class Program
    {
        public static List<Mobile> lunaMageShopNpcs;
       
        public static Gump shopGump;     

        static void Main(string[] args)
        {
            lunaMageShopNpcs.Add(new Mobile(00000B08));
            lunaMageShopNpcs.Add(new Mobile(00000B0B));
            lunaMageShopNpcs.Add(new Mobile(00000B0A));
            lunaMageShopNpcs.Add(new Mobile(00000B0C));
           
            foreach (Mobile mobile in lunaMageShopNpcs)
            {
                mobile.DoubleClick();
                Console.WriteLine(mobile.Name);
                Console.WriteLine(mobile.Location);
            }
        }
    }

thanks.

6
Script Debug / Re: Bod turn in reward gump
« on: May 13, 2017, 04:36:32 AM »
Amazing thanks Manwinc, i'll take a look at this today :)

7
Script Debug / Re: Bod turn in reward gump
« on: May 12, 2017, 03:35:57 PM »
Ahhh I get what you mean, so I guess I could sort the bods into books of reward type then use the books name to determine where to click on the reward gump. I take with the new Bod system that each BOD will always have a specific reward point value associated with it and is not random.

8
Script Debug / Re: Bod turn in reward gump
« on: May 12, 2017, 02:21:18 PM »
Thanks ghost :) How do you determine a BOD value?

9
Script Debug / Bod turn in reward gump
« on: May 12, 2017, 12:25:00 PM »
I have writen a script to turn in BOD's to the Blacksmith however at the moment it is just clicking the save reward points then it moves on and gets a new BOD then turns in a filled one.

I've been trying to figure out a way to grab the value of the points to then determine if not to save the points or spend them on say POF.

I cant see the reward points value anywhere in the journal, anyone any ideas how I can grab that reward pont value?




10
RebirthUO / Re: Oaks on rebirth
« on: June 30, 2016, 09:03:48 AM »
Hitech were are you getting all those scrolls from :)

11
Stealth Snippets\Library / Cant determine if target is dead
« on: June 11, 2016, 09:02:36 AM »
I am trying to check if a target is dead or not. but the target value always return true.
Im not sure if I am using the TargetHelper class correctly or not.

Code: [Select]
namespace Test
{
    public partial class MainWindow : Window
    {
        public PlayerMobile Player = PlayerMobile.GetPlayer();
        public TargetHelper TargetHelper = TargetHelper.GetTarget();
        private Thread TestThread;
        public MainWindow()
        {
            InitializeComponent();
            TestThread = new Thread(TestIfDead);
        }

        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            TestThread.Start();
        }

        public void TestIfDead()
        {
            var target = TargetHelper.VCursorToMobile();
            do
            {
                if (target.Dead)
                {
                    this.Dispatcher.Invoke((Action)(() =>
                    {
                        tbIsDead.Text = "TARGET DIED";
                    }));
                   
                }
                else
                {
                    this.Dispatcher.Invoke((Action)(() =>
                    {
                        tbIsDead.Text = "TARGET ALIVE";
                    }));
                }
            } while (!target.Dead);
        }
    }
}

12
RebirthUO / Re: Rebirth UO
« on: June 10, 2016, 01:43:37 AM »
Thanks Tidus

forums username is Grey

13
RebirthUO / Re: Rebirth UO
« on: June 09, 2016, 05:35:35 PM »
Hi I made two accounts on Rebirth, but I have insufficient posting privileges on the forums there and cant seem to message any of the Admins there, so posting here for visabilty. 
When I login on either of the accounts they both login on the same character. at first I thought i had the entered the wrong account details,
So ive ended up created 4/5 extra accounts while trying to login I read the rules allows 2 accounts max.

Any chance that this can be fixed

14
Stealth scripts / Re: Looting error Queue Empty
« on: June 08, 2016, 03:56:35 PM »
OK so I got round it by just calling the method again in the catch, very messy and doesn't solve the problem tho.

15
Stealth scripts / Looting error Queue Empty
« on: June 08, 2016, 11:20:57 AM »
****I posted in the wrong section can it be moved*****

I've been trying to code a script to loot gold from corpses.
I am getting the error Queue Empty at what seems to be very random times so I was thinking would lag be affecting it some way.
I am not using Queues tho just lists so should I even be seeing that error. Anyone see what might be wrong.
the code falls on the line

Code: [Select]
var corpses = Item.Find(typeof(Corpse), 0x0, false);

Code: [Select]
public  void StartLooting()
        {
            List<Item> lootItems = new List<Item>();
            Thread.Sleep(500);
            
            try
            {
                while (Looting)
                {
                    var corpses = Item.Find(typeof(Corpse), 0x0, false);
                    if (corpses.Count > 0)
                    {
                        foreach (Corpse corpse in corpses)
                        {
                            if (corpse.Distance < 4)

                            {
                                corpse.DoubleClick();
                            }                            

                            Thread.Sleep(500);

                            var goldList = Item.Find(typeof(Gold), corpse.Serial.Value, false);

                            foreach (Gold gold in goldList)
                            {
                                lootItems.Add(new Loot(gold.Serial));
                            }

                            if (lootItems.Any())
                            {
                                foreach (Item loot in lootItems)
                                {
                                    loot.MoveItem(Player.Backpack);
                                }
                            }
                            Looting = false;
                            Thread.Sleep(500);
                        }
                    }
                }
            }
            catch (Exception e)
            {
                this.Dispatcher.Invoke((Action)(() =>
                {
                    Clipboard.SetText(e.StackTrace);
                    listBox.Items.Clear();
                    listBox.Items.Add(e);
                }));                
            }
        }

Here's the stack trace.

Code: [Select]
  at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Queue`1.Dequeue()
   at StealthAPI.StealthClient.WaitReply[T](PacketType type)
   at StealthAPI.StealthClient.SendPacket[T](PacketType packetType, Object[] parameters)
   at StealthAPI.Stealth.FindTypeEx(UInt16 objType, UInt16 color, UInt32 container, Boolean inSub)
   at ScriptSDK.Engines.Scanner.<>c__DisplayClass23_2`1.<Find>b__2(UInt32 le)
   at System.Linq.Enumerable.<>c__DisplayClass6_0`1.<CombinePredicates>b__0(TSource x)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__22`3.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
   at ScriptSDK.Engines.Scanner.Find[T](List`1 Graphics, List`1 Colors, List`1 Locations, Boolean SubSearch)
   at ScriptSDK.Items.Item.Find(Type type, List`1 Locations, Boolean SubSearch)
   at ScriptSDK.Items.Item.Find(Type type, UInt32 Location, Boolean SubSearch)
   at AutoLoot.MainWindow.StartLooting() in C:\Users\GreyWalker\Desktop\UOStuff\Projects\AutoLoot\MainWindow.xaml.cs:line 58

Pages: [1] 2 3 ... 5