Page 2 of 2

Re: tracking player name // time // WP // level

Posted: Sat Feb 12, 2011 10:46 am
by lisa
easiest way I see option 2 working is if you have a folder purely for this and have a different file for each character. That way different characters can't mess with the info for other characters that are playing at the time. Then just need to be able to read the data efficiently and with mathmatical formulas, like addition lol
Also have it so that reading the data doesn't keep the file "open" and therefore new info can be saved to the file while bot is running.

Re: tracking player name // time // WP // level

Posted: Sat Feb 12, 2011 2:11 pm
by swietlowka

Code: Select all

table.save(  tbl,filename )
tbl = table.load( sfile )
since we can get players name we can make smt like

Code: Select all

table.save(  tbl,"playernamedatabase" )
tbl = table.load( sfile )
also make another table like

Code: Select all

table.save(  tbl, "savedplayernamesdatabases" )
tbl = table.load( sfile )
witch would add new names and theirs database files only


PS. it would be also wise not to make this addon MM only, cause theres a lot of times when we need to open a client without MM... (at least i do need that)

Re: tracking player name // time // WP // level

Posted: Sat Feb 12, 2011 10:43 pm
by lisa
I'm working on a html viewer as such to view the data saved to a XML file.
So bot function will save data to XML files and then they can be viewed in a web page.

Should cover everything people have asked for ;)

Re: tracking player name // time // WP // level

Posted: Sun Feb 13, 2011 8:47 am
by lisa
swietlowka wrote: so id like also knwo like rom botter how exactly do i run the perl code?
Not sure with method Othon1001 uses but there is 2 ways I found to utilise the perl.

1. install perl on your machine and then use cmd.exe to execute the .pl file. It then basically works like MM and has charcter output.

2. Which I only read but haven't tested is to implement the perl code into a html file which would output the info into a web browser.

Well I spent most of today learning how to use XML in HTML and I can say it is pretty limited at basic lvles and would require a lot of coding just to get the output.html to be anything useful for what we want.

Did someone say they didn't want the data to be read using MM, I thought someone did but to be honest at this stage it seems to me like the easiest way to actually get the volume of data we would be looking at.
It wouldn't involve rombot to be running, it would be MM running with a new .lua created just for viewing the saved data.

It would be purely word based usage but no reason you couldnt "ask" for details on specific characters/accounts/realms or just all the info together. As for the type of info it could be gold/tokens/just about anything you want.

Any comments about using MM for this??

Re: tracking player name // time // WP // level

Posted: Sun Feb 13, 2011 11:43 am
by swietlowka
lisa wrote:
swietlowka wrote: so id like also knwo like rom botter how exactly do i run the perl code?
Not sure with method Othon1001 uses but there is 2 ways I found to utilise the perl.

1. install perl on your machine and then use cmd.exe to execute the .pl file. It then basically works like MM and has charcter output.

2. Which I only read but haven't tested is to implement the perl code into a html file which would output the info into a web browser.

Well I spent most of today learning how to use XML in HTML and I can say it is pretty limited at basic lvles and would require a lot of coding just to get the output.html to be anything useful for what we want.

Did someone say they didn't want the data to be read using MM, I thought someone did but to be honest at this stage it seems to me like the easiest way to actually get the volume of data we would be looking at.
It wouldn't involve rombot to be running, it would be MM running with a new .lua created just for viewing the saved data.

It would be purely word based usage but no reason you couldnt "ask" for details on specific characters/accounts/realms or just all the info together. As for the type of info it could be gold/tokens/just about anything you want.

Any comments about using MM for this??
in your place i would start with asking a guy who made http://www.rom-armory.com/ this site... wich i belive is run by welshde http://forum.us.runesofmagic.com/showthread.php?t=50586


PS. i was the one saying that it better be an normal addon, because when it will be MM only u'll have no info about characters you dont bot with

Re: tracking player name // time // WP // level

Posted: Sun Feb 13, 2011 10:06 pm
by lisa
I checked out that site and it seems all infomation is added by the user, it doesn't get the info directly from RoM. You might have been thinking it was like wow-armory which does get the info directly from the game servers database.

At the moment I am thinking along the lines of a small addon, there wouldn't be much difference to building this in rombot or RoM itself. I am currently looking at a different output though, instead of using purely xml tables I am looking at outputing to htm files directly, So actually making htm files from the functions. This will give an easy to read table format for each character. The trouble is to then make it to do calculations though.

I think having 2 types of output is the way to go. A xml table and direct to htm tables. So a function to store data in tables and then another function to build the htm files or just do them both at the same time.

This would probably mean the data will be stored inside the runes of magic/interface/addons diretory. Would be silly to output files to rombot folder from within the RoM client.

Re: tracking player name // time // WP // level

Posted: Mon Feb 14, 2011 2:04 am
by lisa
This is just an example of the html output for use with a web browser. I did it using 11 year old software though, hopefully it still works across the different browsers. Frontpage 2000 FTW lol

Have a look and see what you think, it's obviously very basic.

Re: tracking player name // time // WP // level

Posted: Mon Feb 14, 2011 10:33 pm
by lisa
character data file something like this, I'm thinking .lua

Code: Select all

dataviewer = {
	["Account"] = {
		["Name"] = "myaccountrox",

		["Server"] = {
			["Name"] = "Thalia",

			["Character"] = { 
				["Name"] = "Abracadabra",

				["Money"] = {
					["Gold"] = 40458,
					["XMutor"] = 1,
				},
				["ClassInfo"] = {
					["Class1"] = "13",
					["Class2"] = "13",
				},
				["Items"] = {
					["High_Class_Equipment_Package"] = "3",
					["Disenchant_Rune"] = "14",
					["Blast_War_Hammer"] = "1",
					["Experience_Orb_10000_Points_"] = "11",
					["Talent_Orb_100_Points"] = "7",
					["Card_Shaggy_Snow_Bear"] = "1",
					["Superior_Equipment_Package"] = "5",
					["Gnoll_Bracelet"] = "7",
					["Phirius_Token_Coin"] = "580",
				},
				
			},
		},

	},
}

Re: tracking player name // time // WP // level

Posted: Mon Feb 14, 2011 11:04 pm
by rock5
Personally I think you are making too much work for yourself. I'd just copy most of the data straight from 'player' and 'inventory' and save it to a file or files. Then I'd have a separate program/code/lua/html or whatever use that data to display it the way you want. That way you keep the 'saving of the data' and the 'displaying of the data' separate, which is a lot neater I think. Plus you don't have to remember what variable you used in the file because it will be the same as you use with the bot. :)

Just my 2 cents worth.

Re: tracking player name // time // WP // level

Posted: Tue Feb 15, 2011 1:41 am
by lisa
Yeah I am making it an in game addon so not using any of the bot to do it. I should prob just stop posting my thoughts here as I went away from the idea of using it purely for the bot.

Re: tracking player name // time // WP // level

Posted: Tue Apr 19, 2011 5:18 am
by hagenleu
According to you is possible to modify the script of Othon1001
to store number of gold collected? (in this way i can trash some addon that do this work and free memory and so fps)

Tnx, Hagenleu

Re: tracking player name // time // WP // level

Posted: Tue Apr 19, 2011 7:46 am
by lisa
Yup you will want to add into the code


Edited,
None of the code I posted works anymore, so removed this post.

New code has been added in the next few posts which does work =)

Re: tracking player name // time // WP // level

Posted: Mon May 23, 2011 12:27 am
by lisa
Added a gold tracker user function to first post.
Call the function in your WP onload section will set the start time and then call the function from your WP again just after repairing/selling.

Code: Select all

 goldtracker()

Re: tracking player name // time // WP // level and now gold

Posted: Mon May 23, 2011 6:19 pm
by Alkaiser
I think there is something wrong with the profit per hour formula. It keeps getting bigger, 10 million gold per hour clops runs? I wish!

I believe the correct formula is:

Code: Select all

printf("Profit per hour: " .. profit / elapsedtime * 60 .. "\n")

Re: tracking player name // time // WP // level and now gold

Posted: Mon May 23, 2011 7:38 pm
by lisa
Yes that would make more sense, I'll change and make it V 1.2

Thanks =)

Re: tracking player name // time // WP // level and now gold

Posted: Thu May 26, 2011 11:24 am
by kanta
I was just going to ask about the same thing Alkaiser did. :)
Current gold: 16054131
Profit: 5043529
Elapsed time: 850.62806666667 minutes.
Profit per hour: 71502788.707454

Re: tracking player name // time // WP // level and now gold

Posted: Thu May 26, 2011 7:13 pm
by lisa
quick calculation that should say around 350k per hour.
Try the V 1.2 and hopefully I got it right =)

Re: tracking player name // time // WP // level and now gold

Posted: Sun May 29, 2011 9:30 pm
by kanta
Yup, 1.2 works perfectly, thank you so much. :)