I Need fast help (pls)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Pofatlan
Posts: 11
Joined: Sat Sep 14, 2013 2:29 am
Location: Hungary

I Need fast help (pls)

#1 Post by Pofatlan » Sun Dec 15, 2013 5:25 pm

My problem normal attack speed test I want to test the working of raid rune in talisman.
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... :)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: I Need fast help (pls)

#2 Post by lisa » Sun Dec 15, 2013 6:04 pm

just use a dps addon
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: I Need fast help (pls)

#3 Post by Bill D Cat » Sun Dec 15, 2013 6:05 pm

This is untested, but I believe the theory is sound. You'll have to edit the beginning to enter the Tower ID or name in whatever native language you run the game. Edit the coordinates for the first waypoint and it should run. If you just let it run, it will output the results every five minutes.

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>
Last edited by Bill D Cat on Sun Dec 15, 2013 7:48 pm, edited 3 times in total.

Pofatlan
Posts: 11
Joined: Sat Sep 14, 2013 2:29 am
Location: Hungary

Re: I Need fast help (pls)

#4 Post by Pofatlan » Sun Dec 15, 2013 7:23 pm

Bill D Cat thanks help!

There is a small problem run the bot and after two hits:
Image

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: I Need fast help (pls)

#5 Post by Bill D Cat » Sun Dec 15, 2013 7:45 pm

Fixed the code in my last post.

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: I Need fast help (pls)

#6 Post by Bill D Cat » Sun Dec 15, 2013 7:49 pm

lisa wrote:just use a dps addon
I don't think a DPS addon will tell you how many times you hit your target, only the sustained damage output.

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: I Need fast help (pls)

#7 Post by Bill D Cat » Sun Dec 15, 2013 7:54 pm

I just tested this myself on a mud newt with a level 5 character, and it said I had over 500 hits per minute! :o

I think the loop isn't blocking at each Attack() and so it cycles the counter more often than is intended. Not sure how to go about fixing that without putting more code in that could skew the results just as badly. The only option that comes to mind is to watch the in-game messages for the combat log and count how many hits (and misses) were recorded.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: I Need fast help (pls)

#8 Post by lisa » Sun Dec 15, 2013 8:42 pm

an addon is the only way you will get an accurate count of hits.

You won't be able to create code in the bot to accurately count hits, the code bill posted would do the repeat loop at an insane rate and even though you could add in yrest() that wouldn't be accurate for actual hits, the count would purely be set by the time in the rests.

I guess you could monitor the combat chat and then filter it out to be just normal attacks, which is what I would do in an addon.

CHAT_MSG_COMBAT
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: I Need fast help (pls)

#9 Post by lisa » Tue Dec 17, 2013 3:17 am

add this to a userfunction, then start bot with commandline

at command prompt do
comlog(time)
time is in seconds, it will start counting when you enter combat and finish each calculation at intervals of time you set when calling the function. So bigger numbers should get more accurate times.

comlog(30)

This only counts normal attacks from your character and will ignore all other attacks, so you can freely use any skills you want.
example

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Pofatlan
Posts: 11
Joined: Sat Sep 14, 2013 2:29 am
Location: Hungary

Re: I Need fast help (pls)

#10 Post by Pofatlan » Fri Jan 10, 2014 10:52 am

Dear Lisa and Bill D Cat!
Thank you very much for your help!
Does not work a raid runes in talisman... :S

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests