Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
I wanted to get the name of who attacked while giving magicwall look. tried:
tfs 1.2
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
combat:setDescription(string.format("Rune thrown by:", creature:getName()))
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
tfs 1.2