Thread: Strange object spawning problem

Results 1 to 3 of 3
  1. #1 Strange object spawning problem 
    Registered Member
    Join Date
    May 2011
    Posts
    185
    Thanks given
    4
    Thanks received
    15
    Rep Power
    6
    The problem i'm having is that I want to spawn a trapdoor but when spawned it is there, because I can't walk onto it but it's invisible. Any trapdoors that are already in game without being spawned like say the trapdoor in lumbridge castle show up though.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2014
    Posts
    209
    Thanks given
    20
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by justin oglesby View Post
    The problem i'm having is that I want to spawn a trapdoor but when spawned it is there, because I can't walk onto it but it's invisible. Any trapdoors that are already in game without being spawned like say the trapdoor in lumbridge castle show up though.
    show me ur code that u've putted in ur class
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2011
    Posts
    185
    Thanks given
    4
    Thanks received
    15
    Rep Power
    6
    Code:
    public void object(int objectId, int objectX, int objectY, int face, int objectType) {
    		//synchronized(c) {
    		if(c.getOutStream() != null && c != null) {
    			c.getOutStream().createFrame(85);
    			c.getOutStream().writeByteC(objectY - (c.getMapRegionY() * 8));
    			c.getOutStream().writeByteC(objectX - (c.getMapRegionX() * 8));
    			c.getOutStream().createFrame(101);
    			c.getOutStream().writeByteC((objectType<<2) + (face&3));
    			c.getOutStream().writeByte(0);
    
    			if (objectId != -1) { // removing
    				c.getOutStream().createFrame(151);
    				c.getOutStream().writeByteS(0);
    				c.getOutStream().writeWordBigEndian(objectId);
    				c.getOutStream().writeByteS((objectType<<2) + (face&3));
    			}
    			c.flushOutStream();
    		}
    
    	}
    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. 614 World Object Spawning Problem !!!!
    By nick2010 in forum Help
    Replies: 1
    Last Post: 09-01-2010, 06:56 AM
  2. [508] working global Object spawn
    By Richard1992 in forum Tutorials
    Replies: 80
    Last Post: 08-24-2009, 08:58 AM
  3. Wewt Object spawning
    By Lumby in forum RS 503+ Client & Server
    Replies: 14
    Last Post: 08-09-2008, 01:34 AM
  4. Adding objects/Spawns/Npc's Automatically
    By Pride in forum Tutorials
    Replies: 30
    Last Post: 05-31-2008, 11:01 AM
  5. npc spawning problem
    By xp4r4n014x in forum RS2 Client
    Replies: 4
    Last Post: 02-07-2008, 12:27 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •