Talk:DraftSlots (00000103)

From SWGANH Wiki
Revision as of 05:12, 24 December 2006 by Schmunzel (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This Packet is send in order to open the second craftscreen after the schematic and item object have been created. If the objects are created correctly the 2nd craftscreen will open The packet as send by me



00 0D 00 65 00 00 02 12 05 00 46 5E CE 80 0B 00        ...e......F^....
00 00 03 01 00 00 4B 00 00 00 00 00 00 00 00 00        ......K.........
00 00 E1 0F 0A 0A 0F 00 00 00 C2 BB BB CB CC 00        ................
00 00 C3 BB BB CB CC 00 00 00 01 00 00 00 01 04        ................
00 00 00 18 00 63 72 61 66 74 5F 69 74 65 6D 5F        .....craft_item_
69 6E 67 72 65 64 69 65 6E 74 73 5F 6E 03 00 00        ingredients_n...
00 12 00 61 73 73 65 6D 62 6C 79 5F 65 6E 63 6C        ...assembly_encl
6F 73 75 72 65 00 01 00 00 00 18 00 63 72 61 66        osure.......craf
74 5F 69 74 65 6D 5F 69 6E 67 72 65 64 69 65 6E        t_item_ingredien
74 73 5F 6E 00 00 00 00 12 00 61 73 73 65 6D 62        ts_n......assemb
6C 79 5F 65 6E 63 6C 6F 73 75 72 65 05 00 00 00        ly_enclosure....
6D 00 65 00 74 00 61 00 6C 00 04 08 00 00 00 18        m.e.t.a.l.......
00 63 72 61 66 74 5F 69 74 65 6D 5F 69 6E 67 72        .craft_item_ingr
65 64 69 65 6E 74 73 5F 6E 00 00 00 00 0A 00 63        edients_n......c
6F 6E 74 72 6F 6C 6C 65 72 00 01 00 00 00 18 00        ontroller.......
63 72 61 66 74 5F 69 74 65 6D 5F 69 6E 67 72 65        craft_item_ingre
64 69 65 6E 74 73 5F 6E 00 00 00 00 0A 00 63 6F        dients_n......co
6E 74 72 6F 6C 6C 65 72 05 00 00 00 6D 00 65 00        ntroller....m.e.
74 00 61 00 6C 00 04 08 00 00 00 18 00 63 72 61        t.a.l........cra
66 74 5F 69 74 65 6D 5F 69 6E 67 72 65 64 69 65        ft_item_ingredie
6E 74 73 5F 6E 00 00 00 00 10 00 73 63 61 6E 6E        nts_n......scann
65 72 5F 61 73 73 65 6D 62 6C 79 00 01 00 00 00        er_assembly.....
18 00 63 72 61 66 74 5F 69 74 65 6D 5F 69 6E 67        ..craft_item_ing
72 65 64 69 65 6E 74 73 5F 6E 00 00 00 00 10 00        redients_n......
73 63 61 6E 6E 65 72 5F 61 73 73 65 6D 62 6C 79        scanner_assembly
05 00 00 00 6D 00 65 00 74 00 61 00 6C 00 04 08        ....m.e.t.a.l...
00 00 00 18 00 63 72 61 66 74 5F 69 74 65 6D 5F        .....craft_item_
69 6E 67 72 65 64 69 65 6E 74 73 5F 6E 00 00 00        ingredients_n...
00 0C 00 73 74 6F 72 61 67 65 5F 75 6E 69 74 00        ...storage_unit.
01 00 00 00 18 00 63 72 61 66 74 5F 69 74 65 6D        ......craft_item
5F 69 6E 67 72 65 64 69 65 6E 74 73 5F                 _ingredients_



6E 00 00 00 00 0C 00 73 74 6F 72 61                    n......stora
67 65 5F 75 6E 69 74 07 00 00 00 6D 00 69 00 6E        ge_unit....m.i.n
00 65 00 72 00 61 00 6C 00 04 08 00 00 00 00 00        .e.r.a.l........
00 00 49 D9     






packet << (uint16)5; // opcount
		packet.opcode2(AMSG_INT_PACKET); //
		packet << (uint32)0x0000000b; // 
		packet << (uint32)0x00000103; // 
		packet << (uint64)_player->ObjID; 
		packet << (uint32)0; // 
		
		packet << (uint64)crafttoolid; // 
		packet << (uint64)MSCOid; // 
		packet << (uint64)NewItemid; //


		
		
		packet << (uint32)1;//dataPad size
		packet << (uint8)1;//??????????
		packet << (uint32)4;//nr of objects the schem consists of

		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)3;

		Effect = "assembly_enclosure";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		packet << (uint8)0;
		packet << (uint32)1;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "assembly_enclosure";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		Effect = "metal";
		len = strlen(Effect);	
		packet << (uint32) len;
		for (int i=0;i<len;i++)
			packet << (unicode)Effect[i];	
		
		packet << (uint8)4;
		packet << (uint32)8;//amount of resource needed
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "controller";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		packet << (uint8)0;
		packet << (uint32)1;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "controller";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		Effect = "metal";
		len = strlen(Effect);	
		packet << (uint32) len;
		for (int i=0;i<len;i++)
			packet << (unicode)Effect[i];	
			

		packet << (uint8)4;
		packet << (uint32)8;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "scanner_assembly";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		packet << (uint8)0;
		packet << (uint32)1;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "scanner_assembly";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		Effect = "metal";
		len = strlen(Effect);	
		packet << (uint32) len;
		for (int i=0;i<len;i++)
			packet << (unicode)Effect[i];	
			


		packet << (uint8)4;
		packet << (uint32)8;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "storage_unit";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		packet << (uint8)0;
		packet << (uint32)1;
		
		Effect = "craft_item_ingredients_n";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	
		
		packet << (uint32)0;

		Effect = "storage_unit";
		len = strlen(Effect);	
		packet << (uint16) len;
		for (int i=0;i<len;i++)
			packet << (char)Effect[i];	

		Effect = "mineral";
		len = strlen(Effect);	
		packet << (uint32) len;
		for (int i=0;i<len;i++)
			packet << (unicode)Effect[i];	
			
		
		packet << (uint8)4;
		packet << (uint32)8;

		packet << (uint16)0;//x37;
		packet << (uint8)0;//9;



		return packet;