Sorry for my English, someone can tell me why this doesn't work, I'm learning the program in tfs 1.3 and I still don't know how to register the scripts, if anyone can fix it, I'm using otx12.64
I tested it on fire magic longsword and it worked but it doesn't work on sword usable :/ does anyone know why?
I was testing and in most of the sword, club, ax, it doesn't work but if I register other items it works.
the same but it doesn't work
Lua:
local weapon = Weapon(WEAPON_CLUB)
local area = createCombatArea({
{1, 1, 1},
{1, 3, 1},
{1, 1, 1}
})
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
combat:setArea(area)
function weapon.onUseWeapon(player, variant)
if player:getSkull() == SKULL_BLACK then
return false
end
return combat:execute(player, variant)
end
weapon:id(2391)
weapon:register()
Post automatically merged:
I tested it on fire magic longsword and it worked but it doesn't work on sword usable :/ does anyone know why?
Post automatically merged:
I was testing and in most of the sword, club, ax, it doesn't work but if I register other items it works.
Post automatically merged:
TFS 1.X+ - Effect weapon Attack
I'm trying to modify weapon effect attack. I would like to make the basic attack have the same effect exori. However I can only do "exori hit" feat around the monster instead of around the character, as shown in the image. I send the used code. I would like to make the hit area around the...
otland.net
the same but it doesn't work
Last edited: