Page 1 of 1
can anyone help me out? "skip node"
Posted: Fri Apr 27, 2012 12:29 am
by deztorix
how do I skip harvest node if my level is too low for harvesting? example:
in game it will say "herbalist level is not high enough to gather this!" > next waypoint?
I've browsed through other peoples scripts but did not find any info.
Cheers in advance.
Re: can anyone help me out? "skip node"
Posted: Fri Apr 27, 2012 1:38 am
by rock5
The problem is 2 fold. 1 we don't collect the node level when getting data about the object from memory. Which is to be expected as not all objects have skill level requirements and 2 we don't collect player crafting levels.
I had a quick look. Looks like it would be easy to get player crafting levels from memory. We could probably get the node craft level requirement from memory too but it might be easier to just add the level to the node.xml database.
Hm.. looks like it wouldn't be too hard to add. I'll look into it.
Re: can anyone help me out? "skip node"
Posted: Fri Apr 27, 2012 2:57 am
by rock5
I'm just trying to add the level information to the nodes database.
What's with all the wierd entries? For starters there are multiple entries with the same id so because the entries are saved by id that means it overwrites the last entry when loaded. Second if I look up these ids in runesdatabase.com or do a GetIdName(id) command it tells me they don't have any names. Thirdly if I go and look for them as per the maps in runesdatabase they can't be found. Why were these entries added?
Here's an example of the entries I'm talking about.
Code: Select all
<node name="Rock Crystal" id="560012" type="ORE" />
<node name="Dark Crystal" id="560012" type="ORE" />
<node name="Silver Ore" id="560012" type="ORE" />
I'm concidering just removing them all.
Re: can anyone help me out? "skip node"
Posted: Fri Apr 27, 2012 5:00 am
by rock5
I think I'll just comment out the weird entries in the node database for now and see if anyone complains. I've got it all set up and working nicely. I'll include it in my next commit which shouldn't be long. Probably within a day.
Re: can anyone help me out? "skip node"
Posted: Fri Apr 27, 2012 6:23 pm
by lisa
I think it is a mistake for them to be the same ID, as for runesdatabase they don't usually have the ID for the actual node, they just have the ID for the items.
ie. Silver Ore 200239
Re: can anyone help me out? "skip node"
Posted: Sat Apr 28, 2012 12:07 am
by rock5
Nah, runesdatabase does have the nodes. They are under recipes but if you do a search for them it doesn't show them. Go figure. Eg. Zinc Ore is
http://www.runesdatabase.com/gathersource/560001
The weird entries such as 560012
http://www.runesdatabase.com/gathersource/560012
doesn't show an item name and neither does GetIdName(560012). I'm pretty sure if an id has no name then you wont be able to click it. So it can't be a valid id. I'm just going to comment them out but leave them in, in case they are actually needed.
Re: can anyone help me out? "skip node"
Posted: Sat Apr 28, 2012 1:29 am
by lisa
the link you did for 560012 has it yielding the 3 types of ore that were in the database.
Rock Crystal
Dark Crystal
Silver Ore
Kind of weird if you ask me but the dev's of RoM do some really weird things sometimes lol
Re: can anyone help me out? "skip node"
Posted: Sat Apr 28, 2012 1:36 am
by rock5
I know. It sort of implies that that node could yield either of those resourses but then what would the node look like? Anyway, like I said, the node doesn't have a name so I don't think it's valid.