• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Lua Crit Amount Max 100

nefinoo

Carnage.flv
Joined
Sep 11, 2010
Messages
509
Solutions
1
Reaction score
47
Location
Lo Mochis, Sinaloa
Why does the amount of damage per crit only go up to 100?

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
condition:setParameter(CONDITION_PARAM_SPECIALSKILL_CRITICALHITAMOUNT, 250)
condition:setParameter(CONDITION_PARAM_SPECIALSKILL_CRITICALHITCHANCE, 5)
condition:setParameter(CONDITION_PARAM_BUFF_SPELL, true)
combat:addCondition(condition)

function onCastSpell(creature, variant)
    if creature:getStorageValue(3587653) ~= 2 then
        creature:sendTextMessage(MESSAGE_STATUS_WARNING, 'You can not cast this spell.')
        return false
    end
    return combat:execute(creature, variant)
end

asdas.png
 
Top