mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
* Added new achievements to the lib * Potions update - added potion talktype - knights now can use strong mana potion and paladns are able to use great mana potion * Updated empty potion flask descriptions and fixed a wrongly named one * Added distance weapons reason of having two diamond arrows: they added the first one as expirable item, and then added second one as non expirable instead of editing the first one * Added familiars (only files) also added summon challenge spell used by them * Update sweet mangonaise elixir description * Update shiny blade attack and defense modifier accordingly to 12.31.9604 update
19 lines
553 B
Lua
19 lines
553 B
Lua
local area = createCombatArea({
|
|
{0, 1, 1, 1, 0},
|
|
{1, 1, 1, 1, 1},
|
|
{1, 1, 3, 1, 1},
|
|
{1, 1, 1, 1, 1},
|
|
{0, 1, 1, 1, 0},
|
|
})
|
|
|
|
local combat = Combat()
|
|
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
|
|
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
|
|
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DIAMONDARROW)
|
|
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
|
|
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
|
|
combat:setArea(area)
|
|
|
|
function onUseWeapon(player, variant)
|
|
return combat:execute(player, variant)
|
|
end
|