Thread: [PI] need help adding tree stumps to tress

Results 1 to 2 of 2
  1. #1 [PI] need help adding tree stumps to tress 
    Member
    Join Date
    Apr 2011
    Age
    31
    Posts
    697
    Thanks given
    60
    Thanks received
    22
    Rep Power
    0
    In PI when I remove the comments from the ones i marked it cant find the symbol.
    how can i fix this? do i need to add a if statement?
    Code:
    case 1278://trees
    			c.sendMessage("You chop at the tree.");
    			/* Woodcutting object respawning etc...
    this  -- >            Objects stump = new Objects(1343, c.objectX, c.objectY, 0, -1, 10, 0);
    this -->		Server.objectHandler.addObject(stump);
    this -->		Server.objectHandler.placeObject(stump);
    this -->		Objects tree = new Objects(c.objectId, c.objectX, c.objectY, 0, -1, 10, 7);
    and this -->	Server.objectHandler.addObject(tree);*/
    			//c.treeId = objectType;
    Reply With Quote  
     

  2. #2  
    Registered Member Da D4v1nci C0de's Avatar
    Join Date
    Jul 2010
    Posts
    423
    Thanks given
    128
    Thanks received
    30
    Rep Power
    56
    The way PI has made Stumps spawn is defiantly not the most efficient way to do it... but if you must use it...

    in whatever class your code is in, make sure you have this import:
    Code:
    import server.model.objects.Objects;

    Quote Originally Posted by atsiv3 View Post
    When I see your name login to my server, I will ban you.
    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. HD TRESS REQUEST?Texture problem?
    By The Awakener in forum Models
    Replies: 9
    Last Post: 06-13-2010, 09:08 PM
  2. Perfect woodcutting: stumps,logs,etc..
    By ill pk ur as in forum Tutorials
    Replies: 32
    Last Post: 03-19-2010, 09:56 AM
  3. Wintumber Tree XD
    By Demetri in forum Models
    Replies: 15
    Last Post: 09-04-2009, 01:59 PM
  4. Replies: 19
    Last Post: 01-01-2009, 04:41 AM
  5. Replies: 16
    Last Post: 04-09-2008, 09:29 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •