Why not take a look at the gathering method for woodcutting? Cause this will only tell the intended functions.
|
So I'm adding woodcutting on my server, I'm using a clean Elvarg source, managed to make most trees cutable but for example, all oak logs only give me 1 log instead of having the chance of giving multiple.
I guess it has something to do with the cycles but I can't figure out where or what I have to adjust
code:
public static enum Tree {
NORMAL(1, 25, 1511, new int[] { 1276, 1277, 1278, 1279, 1280, 1282, 1283, 1284, 1285, 1286, 1289, 1290, 1291, 1315, 1316, 1318, 1319, 1330, 1331, 1332, 1365, 1383, 1384, 3033, 3034, 3035, 3036, 3881, 3882, 3883, 5902, 5903, 5904 }, 10, 8, false),
ACHEY(1, 25, 2862, new int[] { 2023 }, 13, 9, false),
OAK(15, 38, 1521, new int[] { 1281, 3037, 1751 }, 14, 11, true),
WILLOW(30, 68, 1519, new int[] { 1308, 5551, 5552, 5553 }, 15, 14, true),
TEAK(35, 85, 6333, new int[] { 9036 }, 16, 16, true),
DRAMEN(36, 88, 771, new int[] { 1292 }, 16, 17, true),
MAPLE(45, 100, 1517, new int[] { 1307, 4677 }, 17, 18, true),
MAHOGANY(50, 125, 6332, new int[] { 9034 }, 17, 20, true),
YEW(60, 175, 1515, new int[] { 1309, 1753 }, 18, 28, true),
MAGIC(75, 250, 1513, new int[] { 1306 }, 20, 40, true),
REDWOOD(90, 380, 19669, new int[]{}, 22, 43, true);
private final int[] objects;
private final int requiredLevel;
private final int xpReward;
private final int logId;
private final int cycles;
private final int respawnTimer;
private final boolean multi;
Why not take a look at the gathering method for woodcutting? Cause this will only tell the intended functions.
Take a look at isMulti.
Code://Regular trees should always despawn. //Multi trees are random. if (!tree.isMulti() || Misc.getRandom(15) >= 2) { //Stop skilling.. cancel(player); //Despawn object and respawn it after a short period of time.. TaskManager.submit(new TimedObjectReplacementTask(treeObject, new GameObject(1343, treeObject.getLocation(), 10, 0, player.getPrivateArea()), tree.getRespawnTimer())); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |