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 - smitty

Pages: 1 [2]
16
Stealth Client / Re: [C#] rails
« on: June 24, 2016, 07:27:09 AM »
Wow... that link was exactly what i needed. that is kinda crazy how quickly you answered the question with so few words hah. I will read this and if i have any more problems ill post here again. thanks!

17
Stealth Client / [C#] rails
« on: June 24, 2016, 07:11:35 AM »
Hello!
So im working on rails now. Ive manually walked the rail and recorded character X, Y, and Z locations in a .txt file. Looks like this:
5924,2024,1
5924,2018,3
5917,2011,1
5917,2000,4
5917,1900,4
5917,1979,2
5914,1893,0//click something at this location
and on and on.
Now i need to figure out how to actually walk the rail and click the things when it gets to that location. What is the recommended way to do this?

18
Stealth Client / Re: pathfinding
« on: June 15, 2016, 02:33:22 PM »
oh my goodness yes! thank you so much haha. I have been going crazy! i kept thinking i was doing something wrong! you are amazing crome <3

19
Stealth Client / Re: pathfinding
« on: June 14, 2016, 03:05:51 PM »
I have never attempted anything in pascal, looks like i get to read through all your tutorials! (learning how to program) I really feel like I can get the character to move, Just the positions generated by getpatharray are really crazy. So really all that would need to happen is just stand next to an npc and use getpatharray then have it output co-ords for testing purposes. If theres a way to get a character to walk into a building that does not involve getpatharray im all for it.

20
Stealth Client / Re: pathfinding
« on: June 13, 2016, 05:07:34 PM »
still havent figured this out. When i use GetPathArray this is what the output looks like when standing in the same room as the target npc on the opposite wall:
pathX: 32256 pathY: 2565
pathX: 32256 pathY: 2821
pathX: 32256 pathY: 3077
pathX: 32256 pathY: 3333
pathX: 32256 pathY: 3589
pathX: 0       pathY: 0

So this is kinda weird... x position of my character is 1406 and y pos is 1800 so... not sure what the numbers generated by getpatharray are. any help or advice would be amazing :]

21
Stealth Client / pathfinding
« on: June 09, 2016, 06:09:21 PM »
hi all! any ideas on the best way to pathfind? Im working on an npc scanner type thing, and some of the npc's I need to find are in houses. This is what i have so far, and im getting 0's for the co-ordinates.

Code: [Select]
        static void moveToNpc(PlayerMobile P, Mobile target, ushort locX, ushort locY, sbyte locZ)
        {
            //Stealth.Client.newMoveXY(locX, locY, true, 0, true);
            //Stealth.Client.MoveXYZ(locX, locY, locZ, 1, 1, true);
            //P.Movement.MoveXYZ(locX, locY, locZ, 1, 1, true);
            MovingHelper moveToTarg = MovingHelper.GetMovingHelper();
            moveToTarg.AutoOpenDoors = true;
            List<MyPoint> path = moveToTarg.GetPathArray(locX, locY, true, 2);
            foreach(MyPoint point in path)
            {
                P.Movement.MoveXYZ(point.X, point.Y, (sbyte)point.Z, 0, 0, true);
               
            }
        }


Post Merge: June 10, 2016, 09:05:15 PM
updated my code
Code: [Select]
        static void moveToNpc(PlayerMobile P, Mobile target, ushort locX, ushort locY, sbyte locZ)
        {
            MovingHelper moveToTarg = MovingHelper.GetMovingHelper();
            moveToTarg.AutoOpenDoors = true;
            List<MyPoint> path = moveToTarg.GetPathArray(locX, locY, true, 1);
            if (path.Count() < 1)
                ErrorExit("no path has been created to npc");
            foreach(MyPoint point in path)
            {
                Console.WriteLine("pointX: " + point.X + " " + "pointY: " + point.Y);
                if (point.X == 0 || point.Y == 0)
                {
                    moveToTarg.SetBadLocation(point.X, point.Y);
                    break;
                }
                moveToTarg.MoveXYZ(point.X, point.Y, (sbyte)point.Z, 0, 0, true);
            }
        }

still not working, but I added the console.writeline so i could see what kind of points I was getting. The points in path are valid, except for the last Y location is 0. So that messes it up somewhere. Also my character wont move... Im not sure if im doing something wrong...

22
Stealth Client / Re: context menu crash
« on: June 04, 2016, 06:59:47 AM »
Submitted the issues on your github =] Thanks for gettin back so fast!

23
Stealth Client / context menu crash
« on: June 03, 2016, 02:37:04 PM »
I also too as well am having context menu problems. My code looks like dis:

Code: [Select]
static void exitEncounter(PlayerMobile P)
        {
            Console.WriteLine("Exiting encounter");
            ScriptSDK.Configuration.ContextOptions.Initialize();
            P.ContextMenu.Parse();
           
            //P.ContextMenu.Click("Exit Shadowguard");
            // or
            //P.ContextMenu.Click(1156287);//or some number like that...
        }

any ContextMenu.Click line gives me a weird error.
Error in IdServer: "Access Violation at address 0052AD65 in module 'Stealth.Exe'. Read of address 00000025"

24
Stealth Client / Re: Getting Disconnected(Duplicates are not allowed)
« on: June 02, 2016, 09:28:21 PM »
I was having that issue as well. What fixed it for me was clicking on the configuration button, going to the server tab and unchecking the "use dll" option. Hope this helps

25
New member introductions / Re: Well Hello there!
« on: May 27, 2016, 08:34:25 PM »
Oh ive been all over the stealth boards tehe. messing around with C# stuff now. stealth is amazing!

26
Stealth Client / Re: {c#} Use a Runebook in Stealth
« on: May 27, 2016, 08:23:35 PM »
im super confused on how to use gumps with the newest skd. i been reading the forums all day tehe

27
Stealth Client / client dll troubles
« on: May 27, 2016, 01:27:37 PM »
Hello all! i hope this is the correct place to post this. I am new to stealth, and im currently working on writing some c# stuff for it. Im dealing with a gump at the moment and was looking at how to get info on the gump. From what ive seen, I have to use the clientdll thing. Well the only way i can get my client to stay open is if i uncheck use dll in the configuration menu under the server tab in stealth. When checked, my client crashes immediately.

what im running:
stealth 7.4.0
client version 7.0.49.69 (dunno if you need that)
windows 10

28
New member introductions / Well Hello there!
« on: May 23, 2016, 09:09:27 PM »
Hello everyone!
My name on the forum is smitty, but my main character name is often Chaos. I play over on Lexia with Hitech. We are both challenging ourselves to build stronger better faster scripts.

a little about myself:
I have a bachelors degree in fine art. My concentration is in sculpture with a minor in painting. All of my sculptures were kinetic and powered by an Arduino. Eventually i found myself enjoying writing code for the arduino more than i enjoyed making the sculptures themselves! About 3 years after graduating with my bachelor degree in fine art, I realize that spending all my time on that degree was useless and dumb... So now i'm going back to school for a bachelor of computer science degree!
I have played uo for a long long time. For the majority of the time i was on chessapeak (sp?). I was involved in a vampire role playing guild... Those were the days tehe. Uo started dieing as soon as world of warcraft came out, so of course i had to go check that out... for a couple of years. For the past 700 some odd days, Ive been on Alexandria with hitech! Alexandria has been a never ending fountain of knowledge for my scripting abilities! Sadly, most of my scripts are not for the public... One reason i never release any of my scripts is because mysteriously, all of my click co-ords are different than everyone elses! I have no clue why, and neither does anyone that i have asked.
Much like hitech, Ive scripted my own master / slave script. I run 3 mage / necro / weavers. Lately though i have been running around on a wraith thrower. MAN that is a fun character to play!

Welp i think thats about it! If anyone has any questions please feel free to pm me!

Pages: 1 [2]