Jump to content
Parabot - Bot for Ikov, DreamScape, SoulPlay, RuneWild, and more
  • 0
Sign in to follow this  
Aquel

Server hooks

Question

Hey, was looking into to hooking PkHonor back into Parabot, however I came across some parts that I'm unfortunately unsure about.

Looking into the XML files I see some things, which is not clear for me.

Callbacks, what is it? What do they do? And why does the copy I found of Pkhonor's look like:

   <callbacks>
   <add>
      <accessor>Client</accessor>
      <methodname>tEh</methodname>
      <desc>(Ljava/lang/String;ILjava/lang/String;I)V</desc>
      <callclass>org/rev317/min/callback/MessageCallback</callclass>
      <calldesc>(ILjava/lang/String;Ljava/lang/String;)V</calldesc>
      <callmethod>messageListenerHook</callmethod>
      <callargs>1,2,0</callargs>
   </add>
</callbacks>

Invokers, what do they do?

And the setter seems to be clear enough, however mine says setInterface?

 

<setters>
    <add>
        <classname>pkhonor/Client</classname>
        <into>pkhonor/Client</into>
        <field>JO</field>
        <methodname>setInterface</methodname>
        <descfield>I</descfield>
    </add>
</setters>

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Sorry to disappoint you but getting pkhonor working isn't as simple as just hooking it.

But to answer your question callbacks are methods parabot will intercept when they are called and invokers are methods parabot will call to perform an action.
As for the setter, that seems fine not sure why you'd think it's wrong.

If what I just said doesn't make sense you'll have a hard time working it out, good luck though.

Share this post


Link to post
Share on other sites
  • 0
On 2/17/2019 at 12:54 PM, Atex said:

Sorry to disappoint you but getting pkhonor working isn't as simple as just hooking it.

But to answer your question callbacks are methods parabot will intercept when they are called and invokers are methods parabot will call to perform an action.
As for the setter, that seems fine not sure why you'd think it's wrong.

If what I just said doesn't make sense you'll have a hard time working it out, good luck though.

What else but hooking should be done? :curious:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...