[Plugin] xControl

Your server seems different (the usage ID it’s different so it may not work).

Sorry i dont understand Python. and i dont know use xPackeTool, I Like so much this system commando , but no know use well.

i try use it but no know sorry

@JellyBitz Hi! I wonder if we could get a target from a person in the party. I mean; For example, the party leader’s target is to attack the monster all together. (“Target Support” in settings)

+1 It’s so usefull.

1 Like

I don´t think that will be possible. The python API blocks sending attack packets, so I from my point few don´t see a way how it could currently be implemented.

I tried zerk mode but it didn’t work. I’m writing ZERK from the party. I’m playing on a private server. Can you help me ? @JellyBitz

@JellyBitz i have a idee for a new plugin or an update for an existing one

it works like condition where u can add x,y and a smal range for example 3
if this waypoint in the script is reached it will be triggert and will send a custum opcode to the server with a little bit of wait time for example

pugin data x1000y1500r3
stop bot
wait1000
send opcode :xxxxxxxxxxxx
wait1000
send opcode :xxxxxxxxxxxx
wait1000
start bot

this funktion will add all custom teleporters with it they unly need to get theop code with another plugin also u can try make it script triggerd so it will be trigerd by sendopcode comand in script

You can do this with Handling Script Commands:
https://projecthax.gitbook.io/phbot-plugins/handling-script-commands

1 Like

@Verya how does i use this in my example with opcode how i have to edit this can u give me an example pls

def do_something_here(arguments):
log(’%s’ % arguments)
return 0

or will it look like this in script
walk1000,1500
do_something_here(opcode)
return10000
walk…

@Chefkoch
It´s not so easy as you think
def do_something_here (arguments) is a placeholder for a custom function. The bot leave his own script at this point and will continue with your custom fuction. When the custom function is finished, the bot continues is how script.
You need a plugin with this function where you have all necesarry steps for teleport

We talk about packets, opcode it’s just the identifier of the packet, you can do nothing with only the number, you have to understand how it works…
This plugin has INJECT command, same stuff can be done through script casually.

inject,Opcode,Encrypted?,Data?

Then…

inject,3091,false,01
inject,3091,01

That means “greetings” action as example.

@JellyBitz
question regarding the inject part
how we can exactly get those number ?
i think we can get them using xPacketTool right but the number we got with xPacket is in Hex like

for example
[03:17:47] Client: (Opcode) 0x7063 (Data) B5 91 01 00

thats for leaving the pt … how can i inject it ?

thats the point i want it to send this thing of codes via plugin triggerd by a command or waypoint in the script
or somehing like that

@JellyBitz
Hey,
I tried to use the follow function, but it was not working for me.
There is a bug in line 330 and 339:
for p in enumerate(players):
needs to be changed to
for p in players.values():
And the code to calculate the next position made my char just running away.
I replaced the code at line 353 and on with the following code. This did the trick for me.

        finPoint = get_position()
        x_0 = iniPoint[0]
        x_1 = finPoint['x']
        y_0 = iniPoint[1]
        y_1 = finPoint['y'] 
        distance = ( (x_1 - x_0)**2 + (y_1 - y_0)**2 )**0.5
        if(distance > followDistance):                
            t = followDistance / distance
            x = ((1-t)* x_0 + t * x_1)
            y = ((1-t)* y_0 + t * y_1)
            finDist = ( (x - x_0)**2 + (y- y_0)**2 )**0.5
            move_to(x,y,0)

You can open an issue and/or just push a request directly on github.
Any kind collaboration is welcome.

I didn’t find your code references so I just improved what I had.

Is it possible to use reverse scrool for party? When I try to make injections, each Charin’s Injectable code can be a problem because it is different. So can we teleport to Reverse points?

You can Use Condition to reverse to party leader for example

You are right, but in most private servers, there is no teleport to the party leader in reverse scrool.

There are different types:

grafik

Also there is for walking an option to use reverse but for this the bot must walk on first login to the spot and use return scroll to save the location