• 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!

TFS 0.X CRITICAL SYSTEM -- -source edit ---0.3.7 otx2-

tuduras

Well-Known Member
Joined
Jun 4, 2017
Messages
351
Solutions
2
Reaction score
59
Hello. Does anyone have a critical system for otx 2.16 based on 0.3.7. I have script in creaturescript but not works.
Here post critical from /data/creaturescript
LUA:
function onStatsChange(cid, attacker, type, combat, value, target)
    if (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and isPlayer(attacker) then
        if (getPlayerStorageValue(attacker, 48904)*1) >= math.random (0,1000) then
            dano = math.ceil(value*(0.5)) -- aqui o multiplicador de dano
            doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 20) -- aqui é o valor que vai dar a mais de dano. no caso esta 20
            doSendAnimatedText(getCreaturePos(attacker), "Critical!", 100)
        end
    end
    return true
end

PS: I think so, that's necessary to source edit. ;p
best regards

I Tried this tutorial but many error Feature - Critical Chance Hit (https://otland.net/threads/critical-chance-hit.115609)
 
Last edited:
Why don’t you just grab the latest version of OTX?
It already includes critical, dodge, and reflect systems natively, implemented directly in the source code.
That version is much more stable and improved — everything works perfectly.

It’s really worth recompiling and migrating to this newer base.
You can check the commits to see all the recent improvements.

 
Back
Top