Log in

View Full Version : All hexes.



Malmis
11-08-2007, 15:48
This will be a guide describing every hex I can find and how it works. It is not intended for dummies, but for those that already have some knowledge about hexes and how to use them.

First off, the basics. The first four characters in a hex are the headers. They are a sort of checksum for the packet, saying how long it is. The two characters after that is the type of the hex. After that is the data the hex contains, if any. Some hexes have alot of data, some just a byte of it.

The headers will not be included in the examples I use or the hexes I show here, they are automatically added to a hex when sent using the exiva > and exiva < functions.

Malmis
11-08-2007, 15:48
Container numbers
First off, we got the equipment slots:

01: Head
02: Necklace
03: Backpack
04: Armor
05: Right hand
06:Left hand
07: Legs
08: Boots
09: Ring
0A: Ammo

But containers has three different numbers you need to consider when moving to, from and using items in them or opening new ones. When you open a container the hex contains a number starting at 00 telling you what number the new container will have. But when you move and use items it isn't that but another number starting at hex 40 that you need to use.
And finally there is a number for the slot that the item is moved to or from or used from.

The first container you open will have number 00 as container ID and use 40 for moving and using items, the next one 01 and 41 and so on. The first slot in a container starts at hex 00 and the last one depends on how many slots there are. A regular backpack has 19 as the last slot.

As the container IDs start at 00, a good idea when deciding what ID the hex will open is to just make a $numbertohex1:X$, where X is the current amount of containers open. You could also use a very high value, even though BlackD Proxy doesn't support higher than 15 containers, which is 0F and 4F.

Opening container on ground:

fastExiva > 82 XX XX YY YY ZZ AA AA 01 0B
X, Y and Z's are the position, A's the item ID and 0B the ID the container will have.

Opening container from any EQ slot:

82 FF FF AA 00 00 BB BB 00 0C
A's are the EQ slot, B's the ID ($hex-equiped-item:XX$ is useful) and 0C the ID the container will have.

Opening containers from inside containers:

82 FF FF 4A 00 BB XX XX BB 0Y
4A is the container's ID, B's are what slot to use, X's the item ID and 0Y the ID the newly opened container will have. If A and Y is the same, the new container will replace the old.

Malmis
11-08-2007, 15:48
Any rune shoot with a hotkey:

84 FF FF 00 00 00 XX XX 00 YY YY YY YY

X's are the rune ID, Y's the target ID.

Any rune shoot manually, trough battle list or game window:

84 FF FF AA 00 BB XX XX BB YY YY YY YY
A's are the container, B's are the slot.

Fieldrunes shoot at nothing:

83 FF FF 00 00 00 XX XX 00 AA AA BB BB CC YY YY 00
A, B and C are the coordinates, Y's are the ID of the ground tile

Credits to Syntaxe for getting the data for me.

Malmis
11-08-2007, 15:48
Moving from one EQ slot to another:

78 FF FF 0X 00 00 $hex-equiped-item:0X$ 00 FF FF 0B 00 00 ZZ
0X is the slot to move from, 0Y to slot to move to. ZZ is the amount of items in the 0X slot. You can either use $hex-equiped-ammount:0X$ or simply write 64 to move any amount of items.

Moving from EQ slot to ground:

78 FF FF 0X 00 00 $hex-equiped-item:0X$ 00 XX XX YY YY ZZ CC
0X is the slot to move from and X, Y and Z's are the position to drop at. CC is the amount.

Moving from ground to EQ slot:

78 XX XX YY YY ZZ AA AA 01 FF FF 0X 00 00 CC
X, Y and Z's are the position, A's the item ID, 0X the slot and CC the amount.

Moving from ground to ground:

78 XX XX YY YY ZZ AA AA 01 XX XX YY YY ZZ CC
The first X, Y and Z's are the position to move from, the next are the one to move to. A's are the item ID and CC the amount.

Moving from ground to container:

78 XX XX YY YY ZZ AA AA 01 FF FF 4X 00 BB CC
Moving from container to ground:

78 FF FF 4X 00 BB AA AA BB XX XX YY YY ZZ CC
X, Y and Z's are the position, A's the item ID, 4X the container ID, BB the slot in the container and CC the amount.

Moving from container to another container:

78 FF FF 4A 00 AA XX XX AA FF FF 4B 00 BB CC
4A and AA are the container and slot to move from, 4B and BB are the container and slot to move to. X's are the item ID and CC the amount.

Malmis
11-08-2007, 19:40
Moving a single step:

65 = North
66 = East
67 = South
68 = West
6A = North-east
6B = South-east
6C = South-west
6D = North-west
The hex contains nothing more than this single command.

When walking using the mouse, the hex instead looks like this:

64 XX Y1 Y2 Y3 Y4 etc...
XX is the number in hex on how many of the commands coming after it it will execute. If you write 01 but have two movement commands after it, it will only execute one of them. I don't know if there is a maximum number for it, the built in walking in Tibia seems to use up to 9 commands at most, but I constructed one containing 18 that executed without problems.

The Y values in the hex used are the following:

01 = East
02 = North-east
03 = North
04 = North-west
05 = West
06 = South-west
07 = South
08 = South-east

Moving five steps to the east and then two to the south would look like this:

64 07 01 01 01 01 01 07 07

Turning:

6F = North
70 = East
71 = South
6B = West

Malmis
11-08-2007, 19:40
Spaceholder 2

Malmis
11-08-2007, 19:40
Spaceholder 3

Malmis
11-08-2007, 19:41
Spaceholder 4

Malmis
11-08-2007, 19:41
Spaceholder 5

Xavious
11-14-2007, 11:14
I wish to use this function,

Moving from ground to ground:
Code:

78 XX XX YY YY ZZ AA AA 01 XX XX YY YY ZZ CC

The first X, Y and Z's are the position to move from, the next are the one to move to. A's are the item ID and CC the amount.

But I dont understand how to get the X, Y and Z except for "exiva pos", can someone help me out please

Malmis
11-14-2007, 11:19
I wish to use this function,

Moving from ground to ground:
Code:

78 XX XX YY YY ZZ AA AA 01 XX XX YY YY ZZ CC

The first X, Y and Z's are the position to move from, the next are the one to move to. A's are the item ID and CC the amount.

But I dont understand how to get the X, Y and Z except for "exiva pos", can someone help me out please

What do you want to make?

Xavious
11-14-2007, 11:23
I want to put knives with id(DB 0C) over my loot that I dropped on ground on my cavebotscript

Alan
11-17-2007, 20:18
The first X, Y and Z's are the position to move from, the next are the one to move to. A's are the item ID and CC the amount.

Moving from ground to container:

78 XX XX YY YY ZZ AA AA 01 FF FF 4X 00 BB CC
[/QUOTE]

hey man... i don't undarstand this....i want to take gold and put on Backpack
how i can make this?

Xavious
11-18-2007, 10:57
I had trouble with it aswell, but it has an easy solution.

Find the tutorial of how to find all hexes and there will be no problem

Malmis
11-18-2007, 13:03
The first X, Y and Z's are the position to move from, the next are the one to move to. A's are the item ID and CC the amount.

Moving from ground to container:

78 XX XX YY YY ZZ AA AA 01 FF FF 4X 00 BB CC


hey man... i don't undarstand this....i want to take gold and put on Backpack
how i can make this?[/QUOTE]

I had trouble with it aswell, but it has an easy solution.

Find the tutorial of how to find all hexes and there will be no problem

As I stated in the first post, this is really just a reference for people who already have some knowledge about hexes.

Dru
11-21-2007, 08:41
use the $numbertohex2:$ function for the position to make the pos to a hex

knownname
12-08-2007, 13:00
How do i decide my loots destination ? do i use hex because i want gold to go to one bp and stones to go to another, is it possible ?

Xavious
12-08-2007, 15:19
no that u can change in your cavebot script

resetLoot
setLoot stoneid
dropLoot z,x,y
resetLoot
setLoot goldid
dropLoot z,x,y(another one)

knownname
12-08-2007, 15:47
droploot z,x,y whats that the backpacks id ?

nerdies
12-10-2007, 09:56
I got a script, just cant get the hexes work,

i want to hide loot under a normal brown bag,

08:55 Your position is : 31111,32222,10

what I have to do with XX,YY,ZZ?

thanks

inblackone
01-15-2008, 12:32
I got a script, just cant get the hexes work,

i want to hide loot under a normal brown bag,

08:55 Your position is : 31111,32222,10

what I have to do with XX,YY,ZZ?

thanks

$numbertohex2:31111$ $numbertohex2:32222$ $numbertohex2:10$

If You want to code Your current position, just use


$numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ $numbertohex2:{$myz$}$

inblackone
01-15-2008, 12:35
Malmis, sorry, but it sux a little bit.



78 FF FF 4X 00 BB $hex-equiped-item:0X$ BB XX XX YY YY ZZ CC

X, Y and Z's are the position, A's the item ID, 4X the container ID, BB the slot in the container and CC the amount.


Where do You have A in this code?
I don't completely understand it...

I wanted to help my friend and be the luggager.
He says me 'bolts' then conds get activated and I put per 100 bolts on the ground till he says 'enough' or something like that (message different from bolts).

Kjeld
01-18-2008, 07:25
Malmis, sorry, but it sux a little bit.



Where do You have A in this code?
I don't completely understand it...

I wanted to help my friend and be the luggager.
He says me 'bolts' then conds get activated and I put per 100 bolts on the ground till he says 'enough' or something like that (message different from bolts).

Malmis is right. You're just mistaken.

you can't find the A's because of this. '$hex-equiped-item:0X$' since that will display the AA AA's.

Kjeld~

Malmis
01-18-2008, 07:55
Malmis is right. You're just mistaken.

you can't find the A's because of this. '$hex-equiped-item:0X$' since that will display the AA AA's.

Kjeld~

Kjeld is wrong. He's mistaken.

Edited the hex.

Aha
02-15-2008, 17:55
can you add "use" and "use with"
for example, ropeing, eating, destroying ice blocks with o knife

xD Ima lol
03-21-2008, 00:56
Hey can you tell me how can i use these rune on me? im playing ots and i want to use it with hotkeys because i play in a ot with no hotkeys the id of the rune is these 6D 0C and i want to use it with me could anyone tell me what i have to put please?

its mr

educorgozinho
06-27-2008, 02:07
I make this to drop any item from arrow slot

Exiva > 78 FF FF 0A 00 00 $hex-equiped-item:0A$ 00 $numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ $numbertohex1:{$myz$}$ 64
Now I want know how to put item X from any backpck slot in arrow, can you help?

Zmulan
06-27-2008, 02:34
I make this to drop any item from arrow slot

Exiva > 78 FF FF 0A 00 00 $hex-equiped-item:0A$ 00 $numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ $numbertohex1:{$myz$}$ 64
Now I want know how to put item X from any backpck slot in arrow, can you help?

exiva #XX XX 0A (i think 0A is arrow slot, not 100% sure)

xx xx = item id of course

educorgozinho
06-27-2008, 03:16
I got one different in another conds, but worked for my script, thanks anyways...

Ayuki
07-31-2008, 02:43
How to make it use ( machete EC 0C ) from (arrow slot 0A ) on ( bamboo F8 08 ) ??

mooth
02-16-2009, 20:40
Moving from container to ground:

78 FF FF 4X 00 BB AA AA BB XX XX YY YY ZZ CC
X, Y and Z's are the position, A's the item ID, 4X the container ID, BB the slot in the container and CC the amount.
.

ok i try it and i get :

sayMessage exiva > 78 FF FF 4B 00 00 C2 0C 00 $numbertohex2:32733$ $numbertohex2:32066$ $numbertohex1:7$ 64

what is wrong ? i have message in tibia " sory its not posible " i dont understand parth with "4X the container " maybe its wrong.

thegrass
02-02-2013, 05:17
Thanks so much, really helped clear things up. Seeking such a huge list all together really helps when trying to spot patterns as well.

:-D

MartinG
11-17-2013, 21:52
I need hex that is using tile that im staindong on, usegrounditem doesnt work for me for some reason.

oclipper
08-27-2014, 00:50
How can I do an pick up items, that collect any items at my sqm and arround me?

(i tried to do it using "trainer" but id = 00 00 doesnt collect any items)

xHellsx
08-27-2014, 00:53
How can I do an pick up items, that collect any items at my sqm and arround me?

(i tried to do it using "trainer" but id = 00 00 doesnt collect any items)

Remember to tick the sqms (so theres a spear on each spot)

and remember to click activate trainer for your character

oclipper
08-27-2014, 15:54
Remember to tick the sqms (so theres a spear on each spot)

and remember to click activate trainer for your character


I did this but it doesnt work.

Inside the source:

chkEnableTrainer = true /checked
cmdPickup(index) = true /checked

It take items by ID but doesnt work for 00 00 (pick up all)

If i put "D7 08" (gold) it will take it, thats mean its working. I didnt find anywhere in the source that "00 00" = "all items ID" or something like

oclipper
09-03-2014, 21:39
Remember to tick the sqms (so theres a spear on each spot)

and remember to click activate trainer for your character


from ground to container:

Exiva > 78 $numbertohex2:{$myx$}$ $numbertohex2:{$myy$}$ $numbertohex1:{$myz$}$ D7 0B 01 FF FF 40 00 01 01

red = amount
blue = item ID

Is there a way to:

1- discard "amount" or "item ID" using hex comand?
2- take any amount (discard amount) ?
3- take any item (discard item id)? remember that id = 00 00 doesnt take any item