ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: playforfun on January 30, 2019, 11:00:40 PM

Title: C# Compatibility
Post by: playforfun 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?
Title: Re: C# Compatibility
Post by: ZeroDX on January 30, 2019, 11:15:39 PM
ะก# repo (https://github.com/Maxwellwr/ScriptDotNet/commits/master)
wait for a few days. will be updated soon
Title: Re: C# Compatibility
Post by: playforfun on January 30, 2019, 11:41:45 PM
Noob question: How do I implement this into VisualStudios so I can call for them? thanks.
Title: Re: C# Compatibility
Post by: Tidus on January 30, 2019, 11:53:05 PM
Noob question: How do I implement this into VisualStudios so I can call for them? thanks.

You need to make a reference to it in your Application.  Once you reference the DLL make sure that it accompanies your exe file whenever you compile it and share.
Title: Re: C# Compatibility
Post by: playforfun on January 31, 2019, 10:27:04 PM
Noob question: How do I implement this into VisualStudios so I can call for them? thanks.

You need to make a reference to it in your Application.  Once you reference the DLL make sure that it accompanies your exe file whenever you compile it and share.

Not sure how to do this, spent the last 20 minutes playing around trying to figure it out, tried dragging and dropping into reference, also curios as to why there is 2 different scrptdotnet folders which seem to contain the same files.
Title: Re: C# Compatibility
Post by: Tidus on January 31, 2019, 10:44:34 PM
https://stackoverflow.com/questions/12992286/how-to-add-a-dll-reference-to-a-project-in-visual-studio
Title: Re: C# Compatibility
Post by: playforfun on January 31, 2019, 11:54:14 PM
I get this error when I try to run a simple hello world script, am I calling upon the API incorrectly?

"Error, Unfinished Socket Stream - Len < 6"



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

namespace test1
{
    class Program
    {
        static void Main(string[] args)
        {
            Stealth.Default.Client.UOSay("Hello World.");
        }
    }
}
Title: Re: C# Compatibility
Post by: ZeroDX on February 01, 2019, 02:50:01 AM
ok. i found some bugs
try with this package (https://github.com/ZeroDX255/ScriptDotNet/tree/master)
Title: Re: C# Compatibility
Post by: playforfun on February 01, 2019, 10:40:21 PM
Trying my best to help out here, tried to debug the solution so I could get the .dll in the din folder, but it's not appearing.
Title: Re: C# Compatibility
Post by: ZeroDX on February 05, 2019, 12:01:09 PM
try this (https://github.com/Maxwellwr/ScriptDotNet). It works fine now.
Title: Re: C# Compatibility
Post by: playforfun on February 06, 2019, 11:33:23 PM
Thanks you're the best!

Seems a little obsessive to have to write; Stealth.Default.......

For every call to the API is there a way to shorten this?

Also I'm trying to search the APK for how to call upon the Attack service, can't seem to figure it out.

Tried to do:

Code: [Select]
        ScriptDotNet2.Services.AttackService()
Title: Re: C# Compatibility
Post by: ZeroDX on February 07, 2019, 07:15:14 AM
sorry, but i can't help with that. i am not the author, i just fixed errors