lazarus321
Member
- Joined
- May 8, 2017
- Messages
- 209
- Reaction score
- 20
Guys, how do I get the physical attack of the sword for example after it has been added Attribute. I'm using it this way below but it takes the base item as a reference.
C++:
function onCastSpell(creature, var)
local player = Player(creature)
local leftHand2 = pushThing(player:getSlotItem(CONST_SLOT_LEFT)).itemid
local item = ItemType(leftHand2):getAttack()
player:sendTextMessage(MESSAGE_INFO_DESCR, item)
return true
end