I've managed to capture eqdata and invdetail (both are commands in Aaardwolf). I can capture the data with triggers and send it to an array.
When I print the array
the result (I'm only posting two results out of 29)
Here is where I've lost visualization. How do I extract custom data from the table? For instance, damage roll, hit roll, etc.
I've tried the following:
and got the following result:
The numbers in the left column are equipment ID numbers.
I have reviewed http://www.gammon.com.au/forum/?id=6036 (What are tables?) but did not have any success. Any help is much appreciated and I'm looking forward to learning something new.
When I print the array
tprint (eqipinform)
the result (I'm only posting two results out of 29)
"468263929":
"level"=1
"weight"=1
"wearloc"="sleeping"
"details_captured"=true
"stats":
"owner"="Strazor"
"objectid"="12569898"
"flags"="glow, hum, magic, held, nopurge, burn-proof, nolocate, solidified, resonated, illuminated, v3, precious"
"itemtype"="Furniture"
"container_id"="worn"
"resists":
"name"="V3 Trivia Sleeping Bag"
"score"="0"
"965742031":
"level"=41
"weight"=0
"wearloc"="neck"
"details_captured"=true
"stats":
"damageroll"=29
"luck"=2
"moves"=-30
"wisdom"=2
"intelligence"=2
"hitroll"=1
"hitpoints"=25
"owner"=""
"objectid"="125689755"
"flags"="unique, glow, hum, magic, held, burn-proof, solidified, illuminated, v3, searchable"
"itemtype"="Armor"
"container_id"="worn"
"resists":
"name"="(>Asura's Azurite Pearl<)"
"score"="205"
Here is where I've lost visualization. How do I extract custom data from the table? For instance, damage roll, hit roll, etc.
I've tried the following:
table.foreach (equipinform, print)
and got the following result:
468263934 table: 0x026387e0
965742678 table: 0x01858e20
630298213 table: 0x0223a8c8
965731907 table: 0x021fb3f8
965752670 table: 0x0244bcf8
748863834 table: 0x0264fe68
118730246 table: 0x0240fc00
973922268 table: 0x02481068
468233209 table: 0x0222e040
973922349 table: 0x016dd7f8
965751034 table: 0x0184abe0
428935134 table: 0x026f1288
505208345 table: 0x023bacc0
131909345 table: 0x024dd0e8
468156345 table: 0x026d8d18
973922335 table: 0x0240d570
423542987 table: 0x025f44d0
965753789 table: 0x0170bd90
168525345 table: 0x02482288
553988345 table: 0x02386028
504820454 table: 0x0265eee8
553987564 table: 0x0265e6c0
965729234 table: 0x01049858
485890789 table: 0x023cb4c8
965761345 table: 0x026c6fa8
965752233 table: 0x02481478
945724244 table: 0x024485b8
522889566 table: 0x02448790
965731567 table: 0x024834c8
The numbers in the left column are equipment ID numbers.
I have reviewed http://www.gammon.com.au/forum/?id=6036 (What are tables?) but did not have any success. Any help is much appreciated and I'm looking forward to learning something new.