• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Max Damage Information

raezil

Member
Joined
Apr 17, 2012
Messages
57
Reaction score
17
Welcome!
So i need script/code who send information about new max damage. With every puncture the best blockbuster send a message which is our new best hit.
I need such effect
layb.jpg

I found version this code to yurots 7.6. I need this for theforgotttenserver 0.3.6plr1

http://forum.tibia.tv/showthread.php?17649-Informacja-o-MaxDmg <---- version 7.6, so who help me ;d?
 
Last edited:
I can do this for PVP only. Registering an event to monsters requires lots of work, for you ofc :)

For PVP:
Creatureevent, remember to register it in creatureevents.xml and login.lua:
Code:
local storage = 45893
function onStatsChange(cid, attacker, type, combat, value)
    if isPlayer(attacker) == true and (type == 1 or type == 3) then
        local v = getPlayerStorageValue(attacker, storage)
        if v == -1 or v < value then
            doPlayerSetStorageValue(attacker, storage, value)
            doPlayerSendTextMessage(attacker, MESSAGE_EVENT_ADVANCE, "Your new max damage is " ..value.. ".")
        end
    end
    return true
end
 

Similar threads

Back
Top