Thread: Need help with Brimhaven Vines

Results 1 to 2 of 2
  1. #1 Need help with Brimhaven Vines 
    Registered Member
    Join Date
    Jul 2010
    Posts
    287
    Thanks given
    38
    Thanks received
    4
    Rep Power
    1
    so yeah i tried to add it but doesnt really work out well yet, i cant walk tru the object of slashed vine. I might need forced walk but i don't know how to do that.

    objecthandler.java
    Code:
    					case "vines":
    						if (objectDef.containsOption(0, "Chop-down"))
    							slashVine(player, object);
    Code:
    private static void slashVine(Player player, WorldObject object)
    	{
    		World.spawnTemporaryObject(new WorldObject(object.getId() + 1, object.getType(), object.getRotation(), object.getX(), object.getY(), object.getPlane()), 60000);
    		player.getPackets().sendGameMessage("You slash the vine");
    	}
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Mar 2009
    Posts
    1,461
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    Woodcutting class addLog method:

    Code:
    if (definitions == TreeDefinitions.VINES) {
    			if (tree.getId() == 5104) {
    				player.addWalkSteps(tree.getX(), tree.getY() + (player.getY() < tree.getY() ? 1 : -1), -1, false);
    			} else
    				player.addWalkSteps(player.getX() + (player.getX() < tree.getX() ? 1 : -1), tree.getY(), -1, false);
    		}
    Attached image
    Quote Originally Posted by MaxXi View Post
    Your combat is so awsome that i almost forgot its the combat matrix coded.
    Quote Originally Posted by twobrosplay View Post
    Try allowing the batch file through your firewall?
    Quote Originally Posted by SS_Alophonse View Post
    i have no life u say ha anything u say kid.i doubt u can even get a girlfriend
    i bet u cant even code anything.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. I need help with pen tool
    By Joe in forum General
    Replies: 6
    Last Post: 01-19-2008, 07:05 PM
  2. Need help with turning something back
    By ftmaster in forum RS2 Server
    Replies: 0
    Last Post: 12-20-2007, 03:11 PM
  3. Need help with DomScape
    By thegreatblob in forum Requests
    Replies: 4
    Last Post: 11-30-2007, 04:25 AM
  4. need help with making a client with new stuff
    By yahoo112 in forum RS2 Client
    Replies: 1
    Last Post: 09-19-2007, 08:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •