Hello, how can you turn this script into one showing me whats the highest hit dealt on me, and due to whom.
The script is a total copy of one regaring a max hit counter.Code:init start local BEST_HIT = { POSITION = {$clientwin.left + 10, $worldwin.top - 55}, -- do not edit below BEST = 0, CREATURE = "" } BEST_HIT_FONT = {} BEST_HIT_FONT.DISTANCE = 140 BEST_HIT_FONT.COLOR = color(255, 255, 255, 0) BEST_HIT_FONT.WARNING_COLOR = color(243, 47, 47, 25) setmaskcolorxp(0) setfontstyle('Tahoma', 8, 85, BEST_HIT_FONT.COLOR, 1, color(0, 0, 0, 20)) init end foreach newmessage m do if m.type == MSG_STATUSLOG then local messageDealt = {m.content:match(REGEX_DMG_DEALT)} if unpack(messageDealt) then if tonumber(messageDealt[2]) > BEST_HIT.BEST then BEST_HIT.BEST = tonumber(messageDealt[2]) BEST_HIT.CREATURE = messageDealt[1] end end end end setposition($clientwin.left + BEST_HIT.POSITION[1], $clientwin.top - BEST_HIT.POSITION[2]) setfontcolor(BEST_HIT_FONT.COLOR) drawtext('Best hit: ') if BEST_HIT.BEST == 0 then drawtext('Best hit: -') else setfontcolor(BEST_HIT_FONT.white) drawtext(BEST_HIT.BEST .. ' to ' .. string.capitalizeall(BEST_HIT.CREATURE), BEST_HIT.POSITION[1] + 37) end