• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Tfs. 1.2 getAttack()

lazarus321

Member
Joined
May 8, 2017
Messages
222
Reaction score
23
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
 
Back
Top