You have to re-send the varps when you enter a new region.
|
Hello, on osrs config 529 now manage all paths, maybe someone can share code how to manage in diferenct cities?
configValue = (0x02 << 24) ;
player.send(new SendConfig(529, configValue));
When i call this code in all cities path came same
A old was return config = (plantState == 2 ? herbStages[index] + 0x9e : plantState == 1 ? herbStages[index] + 0x9a : getPlantState(plantState) << 6) + herbData.getStartingState() + herbStage - 4;
Maybe u know new one formula?
That still works but i cant get dead herb
Bump
You should use a varbit instead. I'm confident they split up all patch types using them. Send the information when you're in the same chunk (x >> 3) is chunkX (y>>3) is chunkY I believe.
config = herbData.getStartingState() + herbStage - 4;
int configValue = (config << 24);
by this code raking and herb growing works smoothly but i cant figure out how to get dead herb
Use varbits. They will effectively split this large varp that you call 'configValue' into 5 individual smaller varbits which you can modify easier.
Dead state on herbs iirc is achieved by enabling bits 6(alone is "watered") & 7 (alone is "diseased) together, so effectively.. in your example which I strongly advise against doing..
config = (herbData.getStartingState() + herbStage - 4) | 1 << 6 | 1 << 7;
Bump
int configValue = (1<< 24); weed
int configValue = (2<< 24); weed
int configValue = (3<< 24); weed
int configValue = (4<< 24); small herb
int configValue = (5<< 24); bigger herb
How to get dead or disead
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |