Soard
April 28th, 2011, 19:08
Tested base: DSPK (Pi)
Difficulty: 1/10
1. Go to your server files and search ActionHandler.java
Source -> Src -> Server -> Model -> Players
2. Find up
case 1278://trees
3. Now you see this:
case 1278://trees
//c.sendMessage("You chop the tree.");
/* Woodcutting object respawning etc. by lmtruck... making my own - look at this for example
Objects stump = new Objects(1343, c.objectX, c.objectY, 0, -1, 10, 0);
Server.objectHandler.addObject(stump);
Server.objectHandler.placeObject(stump);
Objects tree = new Objects(c.objectId, c.objectX, c.objectY, 0, -1, 10, 7);
Server.objectHandler.addObject(tree);*/
//c.treeId = objectType;
c.woodcut[0] = 1511;
c.woodcut[1] = 1;
c.woodcut[2] = 10;
c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]);
break;
Now there is
c.woodcut[2] = 10;
That you have to change. Mine is 10x40 = 400. So when you chop one tree you will gain 400 xp.
4. Checking up the factor. Open up Config.java and find
Skill Experience Multipliers
You will see this:
public static final int WOODCUTTING_EXPERIENCE = 40;
public static final int MINING_EXPERIENCE = 40;
public static final int SMITHING_EXPERIENCE = 40;
public static final int FARMING_EXPERIENCE = 40;
That's the factor. Example:
c.woodcut[2] = 10;
public static final int WOODCUTTING_EXPERIENCE = 40;
10x40 = 400.
Thanks, This was my first snippet. (:
Difficulty: 1/10
1. Go to your server files and search ActionHandler.java
Source -> Src -> Server -> Model -> Players
2. Find up
case 1278://trees
3. Now you see this:
case 1278://trees
//c.sendMessage("You chop the tree.");
/* Woodcutting object respawning etc. by lmtruck... making my own - look at this for example
Objects stump = new Objects(1343, c.objectX, c.objectY, 0, -1, 10, 0);
Server.objectHandler.addObject(stump);
Server.objectHandler.placeObject(stump);
Objects tree = new Objects(c.objectId, c.objectX, c.objectY, 0, -1, 10, 7);
Server.objectHandler.addObject(tree);*/
//c.treeId = objectType;
c.woodcut[0] = 1511;
c.woodcut[1] = 1;
c.woodcut[2] = 10;
c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]);
break;
Now there is
c.woodcut[2] = 10;
That you have to change. Mine is 10x40 = 400. So when you chop one tree you will gain 400 xp.
4. Checking up the factor. Open up Config.java and find
Skill Experience Multipliers
You will see this:
public static final int WOODCUTTING_EXPERIENCE = 40;
public static final int MINING_EXPERIENCE = 40;
public static final int SMITHING_EXPERIENCE = 40;
public static final int FARMING_EXPERIENCE = 40;
That's the factor. Example:
c.woodcut[2] = 10;
public static final int WOODCUTTING_EXPERIENCE = 40;
10x40 = 400.
Thanks, This was my first snippet. (: