So I need your help for this testing. I need a programme to test how many hits per unit time. (e.g:hits/min)
I want to test my hits/min against "kentiaru deffense tower"
Sorry for my openning this new topic...
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="RUN">
<waypoint x="xxxx" z="zzzz" y="yyyy"> -- Enter the proper coordinates here.
local tower = player:findNearestNameOrId(xxxxxx) -- Enter the Name or ID of the tower here.
if tower and 150 > distance(tower, player) then
player:target_NPC(tower.Id)
local startTime = os.clock()
local now = os.clock()
local hitCount = 0
repeat
Attack()
hitCount = hitCount + 1
now = os.clock()
until (now - startTime) > 60 -- 1 minute
print("Hits per minute = "..hitCount)
end
</waypoint>
</waypoints>

I don't think a DPS addon will tell you how many times you hit your target, only the sustained damage output.lisa wrote:just use a dps addon
Code: Select all
Type in 'q' (without quotes) to quit.
Command> comlog(5)
event monitoring
Hits :7 Hits per second: 1.3980427401638
event monitoring
Hits :5 Hits per second: 0.99820323417848
event monitoring
Hits :8 Hits per second: 1.5961691939346
event monitoring
Command> comlog(20)
event monitoring
Hits :32 Hits per second: 1.6001600160016
Code: Select all
function comlog(ttime)
while (true) do
repeat
yrest(500)
player:update()
until player.Battling
EventMonitorStart("clwhispers", "CHAT_MSG_COMBAT");
local starttime = os.clock()
print("event monitoring")
yrest(ttime*1000)
local endtime = os.clock()
local count = 0
repeat
local time, moreToCome, name, msg = EventMonitorCheck("clwhispers", "4,1")
if msg and string.find(msg,player.Name.." attacks") then
count = count + 1
end
until moreToCome == false
EventMonitorStop("clwhispers")
print("Hits :".. count.." Hits per second: "..count/(endtime-starttime))
end
end
Users browsing this forum: No registered users and 2 guests