Register for your free account! | Forgot your password?

You last visited: Today at 22:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



warp and loadmonster

Discussion on warp and loadmonster within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
mikroti's Avatar
 
elite*gold: 0
Join Date: Jan 2015
Posts: 28
Received Thanks: 2
Exclamation warp and loadmonster

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
mikroti is offline  
Old 02/19/2015, 18:29   #2


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
Yes you need to wait for the char spawn confirmation.

PHP Code:
Thread.Sleep(1000); 
​Exo is offline  
Thanks
1 User
Old 02/19/2015, 23:44   #3
 
KingDollar's Avatar
 
elite*gold: 857
Join Date: Dec 2013
Posts: 857
Received Thanks: 679
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);
KingDollar is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Map warp
10/03/2014 - Metin2 Private Server - 0 Replies
Hab ein kleines Problem und zwar, wenn ich per NPC auf eine Map will, funktioniert es nicht. Aber wenn ich es per Befehl eingeben, als GM, funktioniert es. Obwohl ich rebootet habe und etc. Also kurz gefasst, pc.warp geht nicht & /warp geht.
You warp to ..
11/07/2010 - Metin2 Private Server - 12 Replies
Hallo... Kann mich nirgenswo hinporten mit dem Befehl /warp xxx xxx Wenn ich jetzt beispielsweise eingebe /warp 123 123 steht zwar im Chat You warp to (12300 , 12300) aber es passiert nichts.. (War nur ein Beispiel funktioniert auch nicht bei den Kordis von Map1, Map2, DT, OX, ..., halt bei keinem ;))
Warp 450 450?
06/03/2010 - Metin2 Private Server - 28 Replies
Heyho, ich wollte fragen wie der Ordner heißt von der Map won man sich mit 450 450 hin portet^^ und wie die Cords ausgeschrieben sind? : ) dann wollte ich fragen ob es möglich ist trotzdem das ich mich nicht drauf porten kann. Eine quest zu schreiben die michdahin portet. MfG
/warp...?
03/18/2010 - Metin2 Private Server - 3 Replies
ich suche keinen normalen warp code wie map1 gelb:/warp 633 1664 sondern so eine map1 gelb:/warp b1 nur suche ich anstatt Gelb gildenzone :/warp 2219 93 gelb gildenzone: - -/warp b? was is der warpcode für gildenmap gelb???
Warp NPC
02/01/2009 - Ragnarok Online - 18 Replies
Also ich habe folgendes problem. Ich habe bei portals.txt das hier->morrocc 162 97 mjolnir_02 81 354 0 c r2 r5 npc.txt ->morocc 162 97 Warpra#26 Die Warpra steht da ich habs mit back slide /where ausprobiert DIE IS DA das sagt mein openkore dazu..... Calculating lockMap route to: Mt.Mjolnir(mjolnir_03)



All times are GMT +2. The time now is 22:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.