warp and loadmonster

02/19/2015 17:24 mikroti#1
Code:
                Packet packet = new Packet((ushort)WorldServerOpcodes.CLIENT_OPCODES.CLIENT_WARP);
                packet.WriteUInt8(0x10); //static 
                packet.WriteUInt8(0); //static 
                packet.WriteInt16(24744); //regionID 
                packet.WriteSingle(978); //x 
                packet.WriteSingle(-30.226059); //Y 
                packet.WriteSingle(1100); //Z 
                packet.WriteInt8(1); //worldid 
                packet.WriteUInt8(0); //static  
                Agent.Send(packet);
+
Code:
                        Packet packet = new Packet((ushort)WorldServerOpcodes.CLIENT_OPCODES.CLIENT_LOADMONSTER); //GM command
                        packet.WriteUInt8((byte)6); //Loadmonster
                        packet.WriteUInt8((byte)0);
                        packet.WriteUInt32(); // ID . mobs
                        packet.WriteUInt8(); //No. of mobs
                        packet.WriteUInt8((byte)3); //static
                        Agent.Send(packet);
when i warp success
loadmonster not working
should i do anything after loadmonster to can run 2 function
02/19/2015 18:29 ​Exo#2
Yes you need to wait for the char spawn confirmation.

PHP Code:
Thread.Sleep(1000); 
02/19/2015 23:44 KingDollar#3
and of course do not forget about
add to your code the packet of user spawn confirmation
Code:
                            Thread.Sleep(1000);
                            Packet p = new Packet(0x34b6);
                            Agent.Send(p);