Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Packet.dll for Tibia 8.70 - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Packet.dll for Tibia 8.70

  1. #11
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Packet.dll for Tibia 8.70

    using System.Runtime.InteropServices;
    [DllImport("packet.dll")]
    public static extern void SendPacket(parameters);

    Replace parameters with proper parameters (i.e. IntPtr handle, byte[] packet, unsure about this as I've never used packet.dll)
    It might also return something else than void

  2. #12

    RE: Packet.dll for Tibia 8.70

    thanks man, I already read some tuts about this

  3. #13

    RE: Packet.dll for Tibia 8.70

    Guys!
    Can u tell me please what r the parameters of SendPacket??

    Ty

  4. #14
    Administrator
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    1,274

    RE: Packet.dll for Tibia 8.70

    Read two posts above your post.

  5. #15

    RE: Packet.dll for Tibia 8.70

    So the parameters are (int handle, byte[] packet)??
    But he said: "unsure about this as I've never used packet.dll"
    And: "It might also return something else than void"
    I think he doesn't know the parameters too!!

    Please help me!!!!!!!!!!

  6. #16
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: Packet.dll for Tibia 8.70

    It's open source, you can just take a quick look to see what parameters it takes

  7. #17

    RE: Packet.dll for Tibia 8.70

    Quote Originally Posted by Blaster_89
    It's open source, you can just take a quick look to see what parameters it takes
    How??
    I program in delphi
    Just tell me what are the parameters of SendPacket function :O

  8. #18
    Junior Member
    Join Date
    May 2009
    Posts
    3

    RE: Packet.dll for Tibia 8.70

    how to use it in vb6?

  9. #19

    RE: Packet.dll for Tibia 8.70

    Quote Originally Posted by ninjagameplayer
    Quote Originally Posted by Blaster_89
    It's open source, you can just take a quick look to see what parameters it takes
    How??
    I program in delphi
    Just tell me what are the parameters of SendPacket function :O
    Check the packet.asm file. You'll find a line like this:
    Code:
    SendPacket PROC ProcessID:DWORD,Packet:DWORD
    This means the function takes 2 parameters: PID of the Tibia process (an unsigned 32-bit int) and the pointer to the packet data. Also, by analysing the rest of the function, you can see it doesn't put anything into eax, so it doesn't return anything useful. Also, the usual calling convention for functions in dll is stdcall.

    So the declaration in Delphi would look like this:
    Code:
    procedure SendPacket(ProcessID: LongWord; Packet: Pointer); stdcall; external 'packet.dll';

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •