Thread: Reset Cutscene Packet

Results 1 to 3 of 3
  1. #1 Reset Cutscene Packet 
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Code:
    	public void sendCutscene(int id) {
    		OutputStream stream = new OutputStream();
    		stream.writePacketVarShort(player, 142);
    		stream.writeShort(id);
    		stream.writeShort(20); // xteas count
    		for (int count = 0; count < 20; count++)
    			// xteas
    			for (int i = 0; i < 4; i++)
    				stream.writeInt(0);
    		byte[] appearence = player.getAppearence().getAppeareanceData();
    		stream.writeByte(appearence.length);
    		stream.writeBytes(appearence);
    		stream.endPacketVarShort();
    		session.write(stream);
    	}
    This is the cutscene packet. I'm unsure how to close the cutscene though after its finished. Does anybody know how to close the cutscene when its finished?

    You will be credited on the thread for your help!

    EDIT: Fixed. You need to load the map region to reset the cutscene.
    Code:
    player.loadMapRegions();
    Credits to walied yassen
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  2. #2  
    Donator

    Old Oak's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,552
    Thanks given
    542
    Thanks received
    435
    Rep Power
    189
    Quote Originally Posted by Zeref View Post
    Code:
    	public void sendCutscene(int id) {
    		OutputStream stream = new OutputStream();
    		stream.writePacketVarShort(player, 142);
    		stream.writeShort(id);
    		stream.writeShort(20); // xteas count
    		for (int count = 0; count < 20; count++)
    			// xteas
    			for (int i = 0; i < 4; i++)
    				stream.writeInt(0);
    		byte[] appearence = player.getAppearence().getAppeareanceData();
    		stream.writeByte(appearence.length);
    		stream.writeBytes(appearence);
    		stream.endPacketVarShort();
    		session.write(stream);
    	}
    This is the cutscene packet. I'm unsure how to close the cutscene though after its finished. Does anybody know how to close the cutscene when its finished?

    You will be credited on the thread for your help!

    EDIT: Fixed. You need to load the map region to reset the cutscene.
    Code:
    player.loadMapRegions();
    Credits to walied yassen
    Is your definition of a cutscene being able to control the camera or creating a copy of the map region? Because a cutscene in videogames is just any break in gameplay where the user has no input (just watching what is being presented). This doesn't have to have anything to do with mapregions if you don't want it to. For example, a cutscene could just be me locking the player in place and having him watch a zombie kill someone.

    If your definition of a cutscene is just copying a map region, then yes, you just load any other map region.

    Hope I helped to inform.
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by Godfrey View Post
    Is your definition of a cutscene being able to control the camera or creating a copy of the map region? Because a cutscene in videogames is just any break in gameplay where the user has no input (just watching what is being presented). This doesn't have to have anything to do with mapregions if you don't want it to. For example, a cutscene could just be me locking the player in place and having him watch a zombie kill someone.

    If your definition of a cutscene is just copying a map region, then yes, you just load any other map region.

    Hope I helped to inform.
    My idea of cutscene is precisely "a break in gameplay where the user has no input." The reason I refer this packet as a "cutscene packet" is because it's called that in the client.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    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. [562] Reset Camera Packet
    By Cedia in forum Requests
    Replies: 3
    Last Post: 03-15-2013, 04:47 PM
  2. cutscene packet and idx35
    By Vincent in forum RS 503+ Client & Server
    Replies: 14
    Last Post: 11-18-2011, 09:34 AM
  3. cutScene stop packet [614]
    By Polish Civil in forum Help
    Replies: 2
    Last Post: 08-08-2011, 09:17 AM
  4. [525] Cutscene packet
    By Simon in forum Configuration
    Replies: 2
    Last Post: 09-20-2009, 01:13 PM
  5. Cutscene Reset
    By ViperSniper in forum Snippets
    Replies: 10
    Last Post: 02-20-2009, 02:23 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
  •