This is kind of hard for me to explain but look
this code works fine but only with 1 word for ex if i did /test word 5 it would send the word 5 times but if i did /test word word 5 it wouldn't work because there is more than 1 world. Please help if you can (:Code:PlayerTextPacket pkt = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT); pkt.Text = string.Join(" ", args[0]); int length = int.Parse(args[1]); for (int i = 0; i < length; i++) { client.SendToServer(pkt); }
Try putting the quantity first, then the word + rest of words.
/test 5 word word
Then just read quantity first, and then loop the length of args.
My Vouches
Having an issue with RotMG? Check for the solution here.
Need Realm items? Come to RealmStock!
Accepting PayPal - Bitcoin - Giftcards
Selling ST Sets, Class Top Sets, Life Pots, and much more!
Find it here: MPGH Sales Thread