Page 1 of 1

How to check harvest level ?

Posted: Fri Jan 06, 2012 6:48 pm
by M4gm4
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

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 7:50 pm
by lisa
There is probably an ingame function for it.
http://www.theromwiki.com/List_of_Functions

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:21 pm
by M4gm4
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 :(

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:23 pm
by MiesterMan
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.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:30 pm
by lisa
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.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:31 pm
by M4gm4
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: (

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:35 pm
by M4gm4
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

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:37 pm
by lisa
I can not think of any code at this point, I will have a look in to it when I have some time.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:42 pm
by MiesterMan
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.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:44 pm
by M4gm4
sehr nett, vielen dank .

edit: copyed the german text ^^


very nice, many thanks. <---- :mrgreen:

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:48 pm
by kuripot
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

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 8:52 pm
by M4gm4
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

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 9:13 pm
by MiesterMan
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.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 9:21 pm
by M4gm4

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 9:32 pm
by lisa
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.

Re: How to check harvest level ?

Posted: Fri Jan 06, 2012 9:40 pm
by M4gm4
hmm,,, many thanks first, but now I must go to bed. 3:40 am we have here

Re: How to check harvest level ?

Posted: Sat Jan 07, 2012 12:56 pm
by M4gm4
test with macro ingame

Code: Select all

/script herb=("GetPlayerCurrentSkillValue('HERBLISM');") ;
SendChatMessage("Ich habe level ".. herb .." , "SAY");
returns nothing :?:

Re: How to check harvest level ?

Posted: Sat Jan 07, 2012 1:10 pm
by rock5
You didn't write it properly. Try this.

Code: Select all

/script herb=GetPlayerCurrentSkillValue('HERBLISM')
/script SendChatMessage("Ich habe level ".. herb , "SAY");

Re: How to check harvest level ?

Posted: Sat Jan 07, 2012 6:15 pm
by M4gm4
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

Re: How to check harvest level ?

Posted: Tue Jan 10, 2012 6:13 pm
by M4gm4
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