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

Max Frigo double damage

d4rkbl0od

Member
Joined
Mar 21, 2008
Messages
160
Reaction score
7
Hello people, In my Ot, when I attack using max frigo, or max vis or wathever , thoose 8.7 spells, it hits 2 time the monster!

Example:
1 max frigo, 2 hits on the same monster
20:23 You deal 6 damage to a training monk.
20:23 You deal 6 damage to a training monk.

It should be 6 the hit, but its 12!


Help please!
 
You need change this:
PHP:
function onCastSpell(cid, var)
	local storage = 23018
	local spellname = "Strong Ethereal Spear"
	local time = 8

        if exhaustion.check(cid, storage) == false then
                exhaustion.set(cid, storage, time)
                return doCombat(cid, combat, var) and doCombat(cid, combat, var)
        else
                doPlayerSendCancel(cid, "You are exhausted in " .. spellname .. " for: " ..exhaustion.get(cid, storage).." segundos.")
        end
end

for

PHP:
function onCastSpell(cid, var)
        if exhaustion.check(cid, 23000) == false then
                exhaustion.set(cid, 23000, 8)
                return doCombat(cid, combat, var)
        else
                doPlayerSendCancel(cid, "You have exhausted in strong ethereal spear for: [" ..exhaustion.get(cid, 23000).."] seconds")
        end
end

Code:
exhaustion.set(cid, [COLOR="#0000CD"]23000[/COLOR], [COLOR="#FF0000"]8[/COLOR])

Storage -- need same storage in exhaustion.check
and
seconds of cooldown
 
Back
Top