Thread: Adding objects to Final Devo 2.4

Results 1 to 8 of 8
  1. #1 Adding objects to Final Devo 2.4 
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    Oh my gee i'm getting frustrated trying to add objects into this source, i've never seen anything like this. ive added shops, mysql, fixed dupes, but adding objects and replacing doors gives me 0 success. I've added all the voids needed to delete doors and add objects like bank booths but nothing works. I've tried going to object.cfg, yet no success? Any help please|??>.< >.<
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    can no one help me? Oh my gee, i've posted this on runeloacus, moparscape, and here, and no one knows... Ive tried case 121: (nulls the server) Ive tried adding the ids into object.cfg, no results.... Idk what's going wrong tbh.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Show me your code.
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2008
    Posts
    492
    Thanks given
    1
    Thanks received
    8
    Rep Power
    10
    try adding a different addObject method
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    Yes provide what you have tried so far...
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    Ok 1 sec lemme copy and paste it here.

    I've tried 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);
    				}
    			}
    		}
    	}
    	}
    	
    
    	
    
    	   public void NewObjects() {
            makeGlobalObject(2787, 2806, 2875, 0, 10);//portal
    	}
    Then i tried adding
    Code:
    Case 121:
    NewObjects();
    break;
    This just nulls the server.

    Ive also tried the object.cfg, but the objects doesn't show...

    I've tried using the CreatObj() void which came with the source...
    Code:
    public void CreateObj(int X, int Y, int ID, int FACE, int TYPE) {
    		if (distanceToPoint(X, Y) <= 60) {	
            		outStream.createFrame(85);
            		outStream.writeByteC(Y - (mapRegionY * 8)); 
            		outStream.writeByteC(X - (mapRegionX * 8)); 
    				outStream.writeByteA(0);
    				outStream.writeWordBigEndian(ID);
            		outStream.createFrame(151);
            		outStream.writeByteS((TYPE << 2) + (FACE & 3));
    		} }
    No results... Need desperate help
    Reply With Quote  
     

  7. #7  
    Registered Member
    Knova's Avatar
    Join Date
    Aug 2007
    Age
    33
    Posts
    677
    Thanks given
    0
    Thanks received
    9
    Rep Power
    344
    why not just use replaceobject code? works perfectly o_O
    I AM KITE! Hope you like my programming!
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    May 2009
    Posts
    1,220
    Thanks given
    4
    Thanks received
    61
    Rep Power
    0
    Does it? Omg, the thing i dont try works, thanks bro.

    ---------- Post added at 11:20 PM ---------- Previous post was at 11:17 PM ----------

    Quote Originally Posted by Knova View Post
    why not just use replaceobject code? works perfectly o_O
    wait so it would be.

    public void NewObjects() {
    ReplaceObject2(2776, 2797, 2213, 0, 10);
    }

    But where do i put the NewObjects() ?
    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
  •