Thread: Emulous Help

Results 1 to 4 of 4
  1. #1 Emulous Help 
    ryan1322
    Guest
    I need some help with knowing where to add new objects and where to delete objects. I am using the emulous source from livinglife, he said in the features that he did add global objects but i don't know where.
    Reply With Quote  
     

  2. #2  
    Registered Member Bradness's Avatar
    Join Date
    Jul 2007
    Posts
    68
    Thanks given
    0
    Thanks received
    0
    Rep Power
    3
    Emulous is made by hayzie o.o...

    Well, theres a ReplaceObject method...
    Reply With Quote  
     

  3. #3  
    ryan1322
    Guest
    Quote Originally Posted by Bradness View Post
    Emulous is made by hayzie o.o...

    Well, theres a ReplaceObject method...
    I know it was made by hayzie, i was saying i got livinglifes version of the source made by hayzie which is called emulous.

    Anyways theres no newObject or deleteOBject method?
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2007
    Age
    28
    Posts
    6,414
    Thanks given
    354
    Thanks received
    323
    Rep Power
    5000
    You need this

    Code:
    public void makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType){ //Makes Global objects
    		for (Player p : server.playerHandler.players){
    			if(p != null){
    				client person = (client)p;
    			if((person.playerName != null || person.playerName != "null")){
    				if(person.distanceToPoint(x, y) <= 60){
    					person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
    				}
    			}
    		}
    	}
    	}
    Then go to case 121 and add this under it

    Code:
    NewObjects();
    Then just add a method

    Code:
    public void NewObjects() {
                   makeGlobalObject(3004, 3383, 2469, 0, 10);//portal
    	}
    The first number is the “x” coordinate and the second is the “y” coordinate. The third number is the Object ID. The fourth number is which direction you want the object facing and the last number is what type of object it is

    And you might need this

    Code:
    public void ReplaceObject2(int objectX, int objectY, int NewObjectID, int Face, int ObjectType) {
    		outStream.createFrame(85);
    		outStream.writeByteC(objectY - (mapRegionY * 8));
    		outStream.writeByteC(objectX - (mapRegionX * 8));
    
    		outStream.createFrame(101);
    		outStream.writeByteC((ObjectType<<2) + (Face&3));
    		outStream.writeByte(0);
    
    		if (NewObjectID != -1) {
    			outStream.createFrame(151);
    			outStream.writeByteS(0);
    			outStream.writeWordBigEndian(NewObjectID);
    			outStream.writeByteS((ObjectType<<2) + (Face&3));
    			//FACE: 0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
    			//ObjectType: 0-3 wall objects, 4-8 wall decoration, 9: diag. walls, 10-11 world objects, 12-21: roofs, 22: floor decoration
    		}
    	}
    Credit - bokiller5

    http://www.rune-server.org/showthread.php?t=109273


    Menacescape - Runescape Private server
    Come to Menacescape. We've been online for over two years with an active community!
    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

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