Thread: Doors

Results 1 to 6 of 6
  1. #1 Doors 
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    How can I open a door? like make the door actually open not just tele on the other side?

    is there a remove object method?


    rep++ if helped.
    Reply With Quote  
     

  2. #2  
    Registered Member Dr Satan's Avatar
    Join Date
    Mar 2008
    Posts
    286
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    there is a tutorial for this in the tutorials section
    Reply With Quote  
     

  3. #3  
    Typical Swede


    Join Date
    Jul 2008
    Posts
    1,162
    Thanks given
    204
    Thanks received
    154
    Rep Power
    217
    Etc.
    Code:
    	case 36844: //Lumb door to kitchen
    		p.frames.createGlobalObject(36844, 0, 3208, 3211, -2, 0);
    	break;
    	
    	case 36846: //Lumb castle back doors
    		p.frames.createGlobalObject(36844, 0, 3201, 3219, -3, 0);
    	break;
    		
    	case 12348: //Lumb kitchen door to Dining room
    		p.frames.createGlobalObject(12348, 0, 3207, 3217, -2, 0);
    	break;
    	
    	case 12349: //Lumb door to Dining room
    		p.frames.createGlobalObject(12349, 0, 3213, 3222, -3, 0);
    		p.frames.createGlobalObject(12350, 0, 3213, 3221, -1, 0);
    	break;
    	
    	case 12350: //Lumb door to Dining room
    		p.frames.createGlobalObject(12349, 0, 3213, 3222, -3, 0);
    		p.frames.createGlobalObject(12350, 0, 3213, 3221, -1, 0);
    	break;
    100% credit to enzo

    'Strange things did happen here no stranger would it be'
    ______________________________________________
    Reply With Quote  
     

  4. #4  
    Registered Member Dr Satan's Avatar
    Join Date
    Mar 2008
    Posts
    286
    Thanks given
    0
    Thanks received
    1
    Rep Power
    16
    Code:
    case 11714:
    if(p.absX == 2973 && p.absY == 3348 && p.heightLevel == 0)
    {
    p.frames.createGlobalObject(11714, 0, 2973, 3348, -2, 0);
    }
    else if(p.absX == 2978 && p.absY == 3346 && p.heightLevel == 0)
    {
    p.frames.createGlobalObject(11714, 0, 2978, 3346, -2, 0);
    }
    else if(p.absX == 2983 && p.absY == 3348 && p.heightLevel == 0)
    {
    p.frames.createGlobalObject(11714, 0, 2983, 3348, -2, 0);
    }
    break;
    this is for doors that have the same id and all i'm telling is it goes in ObjectOption1.java
    Reply With Quote  
     

  5. #5  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    29
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    If you want doors that go open and close after you could use codes like these (Need a event implented)
    Code:
    case 15644: // Door to animators
    			if (p.absX == 2855 && p.absY == 3545) {
    				p.reqWalkQueue(2855, 3546);
    				p.frames.createGlobalObject(15644, 0, 2855, 3545, 0, 0);
    			EventManager.getSingleton().addEvent(new Event() {
    						@Override
    							public void execute(EventContainer event) {
    								p.frames.createGlobalObject(15644, 0, 2855, 3545, 3, 0);	
    								event.stop();
    							}
    					}, 600); // 500 mili seconds
    			}
    			break;
    Either do what the guys posted above.
    Reply With Quote  
     

  6. #6  
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    weird because i tried spawning a object over the door, and it wasn't working, but thanks i guess i was doing it wrong.
    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
  •