Ok so i desided to make an item lastnight using my webapp editor what happens it works
Until I got too the making my robe. (Chest item)
so i did some trouble shooting and here is my problem
I am pulling the values in and posting back just fine unless its chest, legs, feet, ammo, waist here is what I got and im kinda stumped on the conversion
$itemSlotsa = hexdec(bin2hex(substr($row[0],188,1)));
$itemSlotsb = hexdec(bin2hex(substr($row[0],189,2)));
$itemSlotsc = hexdec(bin2hex(substr($row[0],190,2)));
$itemSlots = $itemSlotsa + $itemSlotsb + $itemSlotsc;
$tmp_itemSlots = $itemSlotsa ." ". $itemSlotsb ." ". $itemSlotsc;
Here are the conversions from Kaiyodo's item editor which are the values I used as reference.
4 - Head
8 - Face
18 - Earring
32 - Neck
64 - Shoulders
128 - Arms
256 - Back
512 - unknown
1536 - Wrist
2048 - Range
4096 - Hands
8192 - Primary
16384 - Secondary
98304 - Finger
131072 - Chest
262144 - Pants
524288 - Feet
1048576 - Waist
2097152 - Ammo
All worked untill Finger then here is what i was returning i split them up so you can see the pattern
slotname - 188, 189, 190
Chest - 0, 2, 512
legs - 0, 4, 1024
feet - 0, 8, 2048
waist - 0, 16, 4096
ammo - 0, 32, 8192
Any ideas how to get the chest, lets, feet, waist, ammo to equal there correct dec value?
thanks