lazarus321
Member
- Joined
- May 8, 2017
- Messages
- 209
- Reaction score
- 20
I'm trying to do a check while using a spell but I can not do it.
It is a check if it is axe or sword. anyone can help? is tfs 1.3.
function onCastSpell(creature, variant)
local player = Player(creature)
local leftHand = player:getSlotItem(CONST_SLOT_LEFT)
local item = leftHand:getWeaponType()
creature:say(''..item..'', TALKTYPE_MONSTER_SAY)
end
It is a check if it is axe or sword. anyone can help? is tfs 1.3.
function onCastSpell(creature, variant)
local player = Player(creature)
local leftHand = player:getSlotItem(CONST_SLOT_LEFT)
local item = leftHand:getWeaponType()
creature:say(''..item..'', TALKTYPE_MONSTER_SAY)
end
Last edited: