Item TLO

PumpThump

Member
Joined
Jan 28, 2011
Messages
603
Reaction score
5
Points
18
Age
37
Was messing with some code that would detect whether or not an item in the Range slot was a bow and realized, according to the Wiki page linked below, that you cannot access the skill (1hp, 2hb, archery, etc) or damage of a weapon? Is there another way to access those from an item? Seems an odd thing to leave out when everything else under the sun is accessable.

DataType:item - MacroQuest Wiki
 
This returns Archery if you have a bow in ranged


/echo ${InvSlot[Ranged].Item.Type}
 
This returns Archery if you have a bow in ranged


/echo ${InvSlot[Ranged].Item.Type}


Cool thanks. Will that return 1 hand pierce and such with a regular weapon?

Seems odd there's no way to access the weapon's damage though. Not that I need to now but still...
 
you can,

/echo ${InvSlot[Ranged].Item.Damage}

and yes it returns 1h blunt or 1h slashing if it is that.