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.


Topics - playforfun

Pages: [1]
1
Stealth Client / Help setting up C# SDK
« on: February 08, 2019, 01:24:39 AM »
Can someone please help me setup the new C# SDK with visual studios get my feet wet? I don't want you to write me scripts or hold my hand through the whole thing. I just need help getting the bare minimum going from there I can learn from discovering...

I debugged the new SDK provided by Zero, and have referenced the .dll to my program; however I have some questions.

1) which do I reference ScriptDotNet2 or ScriptDotNetCore?
2) when trying to type code I can't seem to find a lot of the API's such as Attack.
3) is there an easier way to grab item types in C#? Since it doesn't recognize the typical d Types ex: $FFFF
I created a snippet to grab items and find out there type... how I managed that I have no clue. ex:

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ScriptDotNet2;

namespace mine
{
    class Program
    {
        static void Main(string[] args)
        {
            var backpack = Stealth.Default.Search.Backpack;

            Stealth.Default.Target.ClientRequestObjectTarget();
            Stealth.Default.Target.WaitForClientTargetResponse(50000);

            var test = Stealth.Default.Target.ClientTargetResponse.ID;
            var test1 = Stealth.Default.GameObject.GetType(test);

            Stealth.Default.GameObject.ClickOnObject(test);
            Stealth.Default.Client.ClientPrint(test1.ToString());


            Stealth.Default.Search.FindTypeEx(3718, 0, backpack, true);
            Stealth.Default.GameObject.UseType(3718, 0);
        }
    }
}

I feel like Im referencing the wrong thing... also whats all these files named Ninject?

Thank You.

2
Stealth Client / C# Compatibility
« on: January 30, 2019, 11:00:40 PM »
Trying to find the SDK for C# for stealthuo and the new Stealth Client, seems everything was removed and dead end links? Is it no longer supported?

3
Stealth Client / Please help with Python
« on: August 06, 2017, 06:31:14 PM »
Hello I'm trying to convert to python however I need help... writing such a simple task has got my mind exploding.. I want to client target request a object and return its name....

Code: [Select]
ClientRequestObjectTarget()
while not ClientTargetResponsePresent() :
 Wait(100)
ClientPrint(GetName(ClientTargetResponse))

4
Stealth Client / CheckLOS function broken?
« on: September 03, 2016, 01:14:49 PM »
Hello, I'm trying to use the function CheckLOS. But it seems not to work, anybody else having this issue?

It's always returning False, even if I'm clearly in LOS.

Code: [Select]
if checkLOS(GetX(self), GetY(self), GetZ(self), GetX(test), GetY(test), GetZ(test), WorldNum) then
  AddToSystemJournal('Target is in sight!');

5
Stealth Client / Stealth Becomes Unresponsive
« on: August 20, 2016, 03:58:18 PM »
Hey guys, running new StealthUO.

Everytime I leave the program unattended for 10 minutes or so it will become unresponsive.

I've ran in admin mode, tried all compatibility modes. Any thoughts?

6
Stealth Client / Comparing Range of Two Objects
« on: August 13, 2016, 07:26:31 PM »
I wasn't sure if there was an API to compare two objects distances from one another, I know you can search an objects range from your self with FindDistance; ...

Either way I came up with my own version so I would like to share it with you guys if you ever find you need to compare the distance between two objects.

Example:

Check if Chest2 is within 2 tiles of Chest1...

Code: [Select]
Program Example;

Type
    TileCord = record
        x, y : Integer
    end;

Var
   TileRange : Array of TileCord;

Function SeekRange(ObjOne, ObjTwo : Cardinal; Range : Integer) : Boolean;

Var

x, y, i : Integer;

begin

Result:= False;
SetLength(TileRange, 0);
 for x := (-1 * Range) to Range do      
  for y := (-1 * Range) to Range do
  begin
   SetLength(TileRange, Length(TileRange) + 1);
   TileRange[High(TileRange)].x := (GetX(ObjOne) + x);
   TileRange[High(TileRange)].y := (GetY(ObjOne) + y);
  end;
for i := Low(TileRange) to High(TileRange) do  
 if TileRange[i].x = (GetX(ObjTwo)) then
  for i := Low(TileRange) to High(TileRange) do
   if TileRange[i].y = (GetY(ObjTwo)) then
    Result := True;
            
end;

//Main Body
begin
 if SeekRange(Chest1, Chest2, 2) = True then
 // what you want it to do =)
end.

7
Stealth Client / Looking For Mentor?
« on: July 30, 2016, 07:55:35 PM »
Hey guys,

You can call me playforfun! I'm looking for someone who would be willing to help me learn Pascal and how to code in Stealth. I really enjoy learning macro/script like tools for UO I consider it a hobby/passion something about it is so ADDICTIVE! To get a game play itself for you is somewhat MAGICAL lol. Anyways I'm a AVID learner I would say and I'm a curious cat, I would say I mastered UOSteam ( not saying much ) but now I want to learn how to ACTUALLY code and learn languages that I can use outside of UO! I'm not just some guy who hops on the forums and asks for free scripts I prefer to make my own things and share them it's more fun that way, I just need some guidance on how to become an efficient coder. I've already dived into trying to learn the StealthAPI but there is much to learn as well as going to websites to learn Pascal. Not trying to bash the creators of stealth but UOSteam documentation was easier to learn and read because of all the examples, maybe cause they weren't Russian? haha!

Here are some things I've accomplished in UOSteam:

Runebook Recaller: Will scan a runebook determine how many runes are in it regardless of name and will recall to them accordingly.
Leather Suit Creator: Will create 125 sets of leather armor, dye them and store them in designated containers.
Stool Macro: Will place stools around a player according to position they are from you.

lol and plenty more but my favorite!

AFK Tamer Macro: Will recall to spots, kill designated monsters, loot corpses, heal pets, run from any incoming damage and heal, recall out if and dangerous players are nearby, play sound file if a GM is shown, automatically restocks, drops off items that want to be kept, sells remaining items to vendors, take break times ( user set )!

haha I'm just sharing some scripts that I've made to show you that I'm serious and want to succeed in stealth the same way I succeeded in UOSteam, will take more effort but I'm willing to give my all! Anyways I'm not allowed to PM and nor do I want to put my Skype publicly for everyone to see but I would like to communicate to whomever is willing to be my teaching buddy hopefully not just via forums!


TLDR;

Looking for someone willing to teach a dedicated student how to code in Pascal efficiently!

thanks for the read guys.

PS: or if your a new learner to pascal and would love to learn with me!


Post Merge: July 31, 2016, 02:45:26 AM
Hey guys update need help with a mining script I'm trying to make..

I need to learn how to create a list of integers that way I can recall down a list of runes, and always have it bookmarked last place I visited. I'm really confused how to do this I see a way to make a list off strings from cromo tutorial... also was  going to make a list for coordinates to mine but I thought is there a way to target by relative tile? ie: always target 1 tile to east.

Anyways this is what I'm at right now, you can tell I use UOSteam alot based off ths script! ( no it's not complete )

Code: [Select]
{
Author: playforfun
Date: 7/30/2106
Version: 1.0
Desription:
Will mine ore until depletion
}

    {start of structure}
 {000FEE46 // You have worn out your tool!
  0007AD00 // There is nothing to mine here.
 }

Program Miner;

Const
    Swing = 1;
    Shovel = $0F39;
    Tool = $1EB8;
    Ingot = $1BF2;
Var
    TotalSwing : Integer;    
    MineSpots : TIntegerList;  

    {end of structure}
                          
    {start of script}    
    
begin
      {create mine spot locations}
      MineSpots := TIntegerList.Create();
        
        {check if depleted vein}
        ClearJournal;
        while InJournal('0007AD00') < 0 do
        begin  
            {look for shovel}
             if FindType(Shovel,Backpack) > 1 then
             begin
                {use shovel}            
                UseObject(FindItem);
                WaitTargetTile(0,1175,1882,4);  
                Wait(1000);                                                
             {look for required ingots}                        
             end else if FindType(Ingot,Backpack) > 6 then
             begin                  
                UseType(Tool,$0000);
                WaitGump('38920ABD');  
                {make tool}
                while Count(Tool) < 2 do
                begin      
                    WaitGump('23');
                    WaitGump('38920ABD');
                    Wait(300);
                end;
                {make shovel}  
                 while Count(Shovel) < 2 do
                begin      
                    WaitGump('72');
                    WaitGump('38920ABD');
                    Wait(300);
                end;
             end;
        end;          
end.

8
Stealth Client / Stealth - Developer or Enduser ?
« on: July 29, 2016, 05:55:00 PM »
Hey guys, I'm completely new to this "Stealth" always thought the only thing to script in was EasyUO, but I like how stealth eats almost no CPU!

I want to learn how to script on this program, keep in mind I'm a complete NOOB. I have Notepad++ installed, but I see everyone with that cool black background program? Also I was wanting to learn how to sccript in Python as I could see as that bing more beneficial for other things then just UO hehe xD. However the best guide and most detailed is Pascal one maybe I should just learn that? Also how do I actually get the scripts to run?

Pages: [1]