Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

DatItem Structure #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Been doing some research on the dat structure and here's what I've come up
with, this isn't necessary but may be useful. Our Unknown value after
width/height (public static uint Unknown1 = 8;) is determined with this code:

If Width > 1 Or Height > 1 Then
    // return a value?
Else
    // skip
End If

Our unknown flag tells whether the item is actioned or not (i believe this
was the same before but no one ever noticed it). actioned items include
rope spots, stone piles you can shovel, sewer grates, ladders, stairs,
doors, and books/documents. I'm not exactly sure what factors go into
determining an actioned item, though.

isGround is actually isGroundItem. This can basically be used as isGround
because almost every ground item returns true except for items that are
transparent in the middle. This includes some ladder and stair holes. I
believe isGround is determined part by WalkSpeed and isGroundItem because
these items that have transparent middles are still considered ground
tiles, but not grounditems, but have a WalkSpeed higher than 0.

ie.
If WalkSpeed > 0 or isGroundItem = True Then
    isGround = True
End If

Original issue reported on code.google.com by joebingham07@gmail.com on 24 Dec 2008 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by joebingham07@gmail.com on 24 Apr 2009 at 5:43