JProxy & API - Coming Soon

08/27/2009 00:01 bucifal23#31
this is going to be awesome
08/29/2009 19:28 gabrola#32
I envy you :D
09/01/2009 01:23 ChingChong23#33
Nice one Inf, or though i don't think raw packets should be abstracted, just let plugins implement an interface which we give the command string, and it fires off our plugin when someone does /plugin ourPluginName

you really should add better scripting support, therefore even noobs will be able to script.

not sure how it's done in C# but heres a java example

Code:
public class ExamplePlugin extends ScriptUtils implements CommandListener {
	public String getCommand() {
		return "autowalker"; // called with /plugin autowalker personToFollow
	}

	public void onCommand(Client c, String[] arguments) {
		Entity target = getEntity(arguments[0]);
		if(target != null) {
			Chase(target, true); // boolean jump? or not.
		}
	}
}
Don't mind the bad indenting there, ScriptUtils is a super/base class that has many simplified methods.

also i saw somewhere about its for any language on .Net, is that including J# ?

Much easier than
Code:
using System;
using System.Threading;
using JProxyNativeInterface;

namespace ExamplePlugin
{
    public class PluginClass
    {
        private static PluginForm Form;
        private static JNativeGameClient Client;
        private static ushort LastFollowedX;
        private static ushort LastFollowedY;

        public static void ServerToClient(IntPtr nativeInstance, byte[] Packet)
        {
            if (Form.Following)
            {
                Client = new JNativeGameClient(nativeInstance);
                if (BitConverter.ToUInt16(Packet, 2) == 0x271A)
                { // 0x271A, 0x89 (Jump packet)
                    foreach (JNativeBasicEntity Entity in Client.Screen.Objects)
                    {
                        if (Entity.Name == Form.FollowName)
                        {
                            if (Entity.X != LastFollowedX &&
                                Entity.Y != LastFollowedY)
                            {
                                LastFollowedX = Entity.X;
                                LastFollowedY = Entity.Y;
                                Client.Jump(LastFollowedX, LastFollowedY);
                                Client.SyncClientScreen();
                            }
                            break;
                        }
                    }
                }
            }
        }
        public static void Main()
        {
            Form = new PluginForm();
            new Thread(delegate()
                {
                    System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
                    Form.ShowDialog();
                }
            ).Start();
        }
    }
}
09/02/2009 04:28 InfamousNoone#34
A library for packets may be released but will not be standardized in the JProxyNativeInterface, it will most likely be a seperate release.

Keep in mind this project is still very early in development =P
and yes that includes J#
09/05/2009 07:05 Zion~#35
Give me some free codes, so I can make a private server version
>_>
09/11/2009 22:41 gabrola#36
Quote:
Originally Posted by Zion~ View Post
Give me some free codes, so I can make a private server version
>_>
Of course you won't get anything :cool:
09/11/2009 23:07 Zion~#37
Quote:
Originally Posted by gabrola View Post
Of course you won't get anything :cool:
[Only registered and activated users can see links. Click Here To Register...]

I win?
09/13/2009 02:09 gabrola#38
Quote:
Originally Posted by Zion~ View Post
[Only registered and activated users can see links. Click Here To Register...]

I win?
Nope, that's the normal jProxy everyone has.
09/13/2009 14:48 Zion~#39
What are you trying to say..
Everyone has?

Ask Hybrid if you don't believe me.
09/16/2009 23:55 BigSoltan22#40
dude plz iam new here so i was asking if you could tell me how i could use this code if you dont mind ah and plz tell me what softwares should i use
thanks
10/01/2009 20:52 elafret#41
good