Thread: Adding objects

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1 Adding objects 
    +Jedi+
    Guest
    Description: Adding objects to the 503 server

    Difficulty: 1/10

    Assumed Knowledge: Java, A brain, Know how to read

    Tested Server: Project duke

    Files/Classes Modified: Player.java, HandlePacket.java Frames.java - only if your not using project duke

    Procedure
    Step 1: Go to Player.java and add this method (YOU SHOULD KNOW WHERE TO ADD IT)
    Code:
    public void objects() {
    //frame.createObject(this, objID, HEIGHT, X, Y, FACE, TYPE);
    frame.createObject(this, 4388, 0, 3216, 3262, 0, 10);
    }
    Step 2: Go to HandlePacket.java and add this in packet 62

    Code:
    p.objects();
    Step 3: Heres the createobject method add it in frames.java -- Only add this if your not using project duke
    Code:
    public void createObject(Player p, int objectId, int height, int objectX, int objectY, int face, int objectt) {
    	        if (p == null || p.outStream == null || p.disconnected[0]) {
    	            return;
    	        }
    	        
    	        if (Main.engine.getDistance(objectX, objectY, p.absX, p.absY) <= 60 && p.heightLevel == height) {
    	            sendPlayerCoords(p, (objectX - ((p.mapRegionX - 6) * 8)), (objectY - ((p.mapRegionY - 6) * 8)));
    	            p.outStream.createFrame(224);
    	            p.outStream.writeByteC(0);
    	            p.outStream.writeWordBigEndian(objectId);
    	            p.outStream.writeByteA((objectt << 2) + (face & 3));
    		}
    		}
    picture:

    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    Credits: 50 percent me for writing the tutorial and 50 percent t x and lumby for the method and project duke

    Quote Originally Posted by T X View Post
    Tbh u got permison from me for posting this to give nubs help i.e i dont care if u use the code from the souce


    u can put this in the first post if u want
    Reply With Quote  
     

  2. #2  
    +Jedi+
    Guest
    well they should know where to add the method in player.java or they they suck at java. this is not noob friendly...
    Reply With Quote  
     

  3. #3  
    Community Veteran

    Cascade's Avatar
    Join Date
    Oct 2006
    Posts
    1,023
    Thanks given
    12
    Thanks received
    27
    Rep Power
    912
    Quote Originally Posted by Legend Rene View Post
    Nice leech, you don't even tell them to add the method rofl.
    Thats because its already in project duke.
    Reply With Quote  
     

  4. #4  
    +Jedi+
    Guest
    LOL i didnt leech people should have the brains to copy and paste... and btw this is not leeched its not on mopar, sythe etc
    Reply With Quote  
     

  5. #5  
    HcoFlame
    Guest
    I had to lol at this Yes, you have objects, but you have no way to handle dynamic objects, such woodcutting trees, mining rocks, etc.
    Reply With Quote  
     

  6. #6  
    +Jedi+
    Guest
    Umm if you add the object in objectclick1.java to do an action it will do the action
    Reply With Quote  
     

  7. #7  
    +Jedi+
    Guest
    Quote Originally Posted by Linux View Post
    Why are you have to of the same methords



    its already in the Misc class
    I added the method on my thread for people that are not using project duke and i didnt know its in misc too
    Reply With Quote  
     

  8. #8  
    +Jedi+
    Guest
    Quote Originally Posted by Linux View Post
    Also I think the stream methords are wrong with the coords because its a like off.
    They are perfect i tested them

    EDIT: some objects make sounds when you walk near them
    Reply With Quote  
     

  9. #9  
    Registered Member
    tommo's Avatar
    Join Date
    Aug 2008
    Posts
    421
    Thanks given
    30
    Thanks received
    36
    Rep Power
    200
    Code:
    (objectY - ((p.mapRegionY / 6) * 8)))
                              ^
    thats the error pm me or add my msn: [Only registered and activated users can see links. ] plz
    23:06 <t4> of course, you can just reverse their wavygravy cipher to produce the public volatile boolean needed
    22:58 <t4> careful it sends bologna packets to the login servers
    22:58 <t4> very unsafe kernel flash
    Reply With Quote  
     

  10. #10  
    +Jedi+
    Guest
    Quote Originally Posted by Pixel View Post
    Nice leeching my friend, Just download Project Duke if you want Objects.
    My tut was mainly for making the objects spawn....
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •