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

monster with saves top hits

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,395
Reaction score
162
Hello i would like to requist a script for 0.3.6

So the monster show save top hit of player and broadcast on himself like "2500 demage deald by Charactername if someone dealsmore demage on mob hes name is btoadcasted on monster and so on.

Sorry for broken english :D
Thanks in advance
Lbtg
 
yeah its working good , but is it posible to make that it show server highest plyer demage like "Best Demage deald by Lbtg 3444" etc , and every 24 it resets ?
?
 
i have no idea how to make scripts for 0.3.6 but loooking on that other script it should just be simple as this
Code:
function onStatsChange(cid, attacker, type, combat, value)
  if(type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) and (isplayer(attacker)) then
    if value > biggestdmg then
      doBroadcastMessage('Congratulations! ' .. getCreatureName(attacker) .. ' dealt ' .. value .. ' damage which is a new record!')
      biggestdmg = value
    end
  end
  return true
end

and in global.lua add
Code:
biggestdmg = 0

and for it to reset each 24hours
u should make a globalevent that just sets biggestdmg to 0 again.
 
Last edited:
Back
Top