How to check harvest level ?

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

How to check harvest level ?

#1 Post by M4gm4 » Fri Jan 06, 2012 6:48 pm

Servus all ;)

How can i check my Harvest level ?
egg. i harvest Ore, on the end of the waypoint, the script check which level i have.
is the Ore harvest level under 40 , run again ,, is the Ore harvest level 40, go to next waypoint....

Did u understand my bad english ? :mrgreen:

greets, M4gm4
I use the google translator, so do not be surprised if my english is funny

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

Re: How to check harvest level ?

#2 Post by lisa » Fri Jan 06, 2012 7:50 pm

There is probably an ingame function for it.
http://www.theromwiki.com/List_of_Functions
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

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#3 Post by M4gm4 » Fri Jan 06, 2012 8:21 pm

hm, sry,, i have looked there, but i don´t know for what i have to search? :(
i have used the search function for the "function site" with words like herb ore wood harvest.. i dont know :( have no plan :(
I use the google translator, so do not be surprised if my english is funny

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: How to check harvest level ?

#4 Post by MiesterMan » Fri Jan 06, 2012 8:23 pm

M4gm4 wrote:Servus all ;)

How can i check my Harvest level ?
egg. i harvest Ore, on the end of the waypoint, the script check which level i have.
is the Ore harvest level under 40 , run again ,, is the Ore harvest level 40, go to next waypoint....

Did u understand my bad english ? :mrgreen:

greets, M4gm4
Actually it was pretty bad. Try posting in your native lang and we'll try google-translating it (or you can google-translate it for us). Be as specific as possible.

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

Re: How to check harvest level ?

#5 Post by lisa » Fri Jan 06, 2012 8:30 pm

MiesterMan wrote:Actually it was pretty bad.
lol I understood what he wanted just fine.

He wants to know how to get his current level for harvesting, ore/wood/herb. So that when it reaches a certain level he can tell bot to do something else.

example.
If it reaches lvl 40, which would be max until you do the quest, then it can stop harvesting and go do something else.
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

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#6 Post by M4gm4 » Fri Jan 06, 2012 8:31 pm

ok, I hope that is here translated correctly to the google translator.
My question was whether and how to query the claim level of the collective.
Is at the end of the waypoint-file are queried whether a certain stage is reached, if yes, then to the next waypoint-file, if not, then again the round from the front.

I hope you understand, what I mean: (
I use the google translator, so do not be surprised if my english is funny

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#7 Post by M4gm4 » Fri Jan 06, 2012 8:35 pm

lisa wrote:
MiesterMan wrote:Actually it was pretty bad.
lol I understood what he wanted just fine.

He wants to know how to get his current level for harvesting, ore/wood/herb. So that when it reaches a certain level he can tell bot to do something else.

example.
If it reaches lvl 40, which would be max until you do the quest, then it can stop harvesting and go do something else.
google translated: yes, just like I said it. I would like to harvest. and when I reached the max level of herbs, he should go to the waypoint to the next level herbs

Mountain Demon Grass is level 1... ok, harvest
check if level 8 is reached, no? do again / yes? go to waypoint for Beetroot
Last edited by M4gm4 on Fri Jan 06, 2012 8:39 pm, edited 1 time in total.
I use the google translator, so do not be surprised if my english is funny

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

Re: How to check harvest level ?

#8 Post by lisa » Fri Jan 06, 2012 8:37 pm

I can not think of any code at this point, I will have a look in to it when I have some time.
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
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: How to check harvest level ?

#9 Post by MiesterMan » Fri Jan 06, 2012 8:42 pm

Ok, well all around it's still a bit confusing but I understand what you're asking. The part that threw me was when you used "egg" in the first post.

Anyways, I'd looked into this at one point and found that the values are stored in memory as floats where the level was the integer value in front and the percent gained for the level was the truncated decimal value.

Like lisa said you can get this value from the game but the function isn't listed on theromwiki I don't think, some global variable called lifeskill is used. Give me a minute to look it up.

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#10 Post by M4gm4 » Fri Jan 06, 2012 8:44 pm

sehr nett, vielen dank .

edit: copyed the german text ^^


very nice, many thanks. <---- :mrgreen:
I use the google translator, so do not be surprised if my english is funny

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: How to check harvest level ?

#11 Post by kuripot » Fri Jan 06, 2012 8:48 pm

M4gm4 wrote:
lisa wrote:
MiesterMan wrote:Actually it was pretty bad.
lol I understood what he wanted just fine.

He wants to know how to get his current level for harvesting, ore/wood/herb. So that when it reaches a certain level he can tell bot to do something else.

example.
If it reaches lvl 40, which would be max until you do the quest, then it can stop harvesting and go do something else.
google translated: yes, just like I said it. I would like to harvest. and when I reached the max level of herbs, he should go to the waypoint to the next level herbs

Mountain Demon Grass is level 1... ok, harvest
check if level 8 is reached, no? do again / yes? go to waypoint for Beetroot




i think its possible but i don't know how..
this is nearly the same in "1-10Pioneers" waypoint which start in lvl 1 waypoint and when reach the given lvl and it will load the next waypoints for his current level and so on

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#12 Post by M4gm4 » Fri Jan 06, 2012 8:52 pm

i found this by google , But I do not think it's the right

Code: Select all

strRank = CCFrame_GetLifeSkillRankString( skillLevel )
description

Returns the name of the craft level as a string.
[edit]
parameter

skill level
the craft level, for which one wants to like to have the name of the step. For example, the function returns the parameter value 19 the name of students.

[edit]
return Values

strRank
Name of stage
I use the google translator, so do not be surprised if my english is funny

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: How to check harvest level ?

#13 Post by MiesterMan » Fri Jan 06, 2012 9:13 pm

Ah, it was there:

Code: Select all

mining = RoMScript("GetPlayerCurrentSkillValue('MINING');
herbalism = RoMScript("GetPlayerCurrentSkillValue('HERBLISM'); -- note they mispelt it, lolz
woodcutting = RoMScript("GetPlayerCurrentSkillValue('LUMBERING');
Those will get you the player collection levels, in float form.

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#14 Post by M4gm4 » Fri Jan 06, 2012 9:21 pm

Last edited by M4gm4 on Fri Jan 06, 2012 9:37 pm, edited 2 times in total.
I use the google translator, so do not be surprised if my english is funny

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

Re: How to check harvest level ?

#15 Post by lisa » Fri Jan 06, 2012 9:32 pm

That would be the in game function =)

Code: Select all

local herbalism = RoMScript("GetPlayerCurrentSkillValue('HERBLISM');") 
if herbalism == 40 then
loadPaths("somename")
end
Not sure if it will be exactly 40 though as floats generally have a lot of decimal points.
So you will probably just need to do some testing.
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

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#16 Post by M4gm4 » Fri Jan 06, 2012 9:40 pm

hmm,,, many thanks first, but now I must go to bed. 3:40 am we have here
I use the google translator, so do not be surprised if my english is funny

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#17 Post by M4gm4 » Sat Jan 07, 2012 12:56 pm

test with macro ingame

Code: Select all

/script herb=("GetPlayerCurrentSkillValue('HERBLISM');") ;
SendChatMessage("Ich habe level ".. herb .." , "SAY");
returns nothing :?:
I use the google translator, so do not be surprised if my english is funny

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to check harvest level ?

#18 Post by rock5 » Sat Jan 07, 2012 1:10 pm

You didn't write it properly. Try this.

Code: Select all

/script herb=GetPlayerCurrentSkillValue('HERBLISM')
/script SendChatMessage("Ich habe level ".. herb , "SAY");
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#19 Post by M4gm4 » Sat Jan 07, 2012 6:15 pm

Yayyyy Thanks :)

This will work:

Code: Select all

	<!-- #192 --><waypoint x="-21" z="4555" y="685">
	local mininglevel = RoMScript("GetPlayerCurrentSkillValue('MINING');");
		if (mininglevel >= 44) then
		loadPaths("Erz44");
	end
	</waypoint>
checks the mining level, it is over, or equal to 44, it loads the next waypoint-file.
In my example it would be here now by Wizard-Iron Ore, to Moon Silver Ore.

My goal therefore is to level chars in mining, herbalism and lumbering, ... But only for a separate, so that you can collect up to max level, for the process.
Only mining or only herbalism or lumbering.
I hope the google translator has translated well and I thank you again for your help:)

Arguments:

Crafting Skills
ALCHEMY
BLACKSMITH
CARPENTER
COOK
HERBLISM
LUMBERING
MAKEARMOR
MINING
PLANT
TAILOR

Weapon Skills
AXE
HAMMER
AXE2H
POLEARM
BLADE
STAFF
BLUDGEON
UNARMED
BOW
WAND
CLAYMORE
COSSBOW
DAGGER
DEFENCE
GUN
I use the google translator, so do not be surprised if my english is funny

M4gm4
Posts: 137
Joined: Sun Jan 30, 2011 2:30 pm

Re: How to check harvest level ?

#20 Post by M4gm4 » Tue Jan 10, 2012 6:13 pm

Ok, with this method you need about 6 days to get from level 0 to level 69 of the collective level. tested and found to be good: P
I use the google translator, so do not be surprised if my english is funny

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests