[Question] Effects at Coordinates

04/07/2010 20:03 -NewDawn-#16
Quote:
Originally Posted by -impulse- View Post
I have something on my mind. I'll test then I'll post the results.

And it actually works!!!

(Image)

Beg for it and you'll have it.
Oh wow! How did you do that? Did you get my code working or design your own? Maybe if you can't paste the code for the public you can direct us in how you came up with it? I'd appreciate it- I need it so badly to finish a lot of quests.
04/07/2010 22:36 -impulse-#17
Quote:
Originally Posted by EmmeTheCoder View Post
@Impulse

It's funny that most of the post you do is bragging of what you can do/have. Get real, you brag too much, seriously.
What's your problem? LOL

Here is what you need.

PHP Code:
        public static COPacket SpawnInvisibleEntity(ushort Xushort Yref uint UID)
        {
            
UID = (uint)(new Random().Next() % 1000000);
            
COPacket packet = new COPacket(new byte[28 8]);
            
packet.WriteInt16(28);
            
packet.WriteInt16(1109);
            
packet.WriteInt32(UID);
            
packet.WriteInt32(0); 
            
packet.WriteInt32(0); 
            
packet.WriteInt16(X);
            
packet.WriteInt16(Y);
            
packet.WriteInt16(371);
            
packet.WriteInt16(26);
            
packet.WriteByte(11);
            
packet.WriteByte(1);
            
packet.WriteByte(1);
            
packet.WriteString(" ");
            
packet.WriteString("TQServer");
            return 
packet;
        }
        public static 
COPacket CoordonateEffect(ushort Xushort Ystring Effect)
        {
            
uint UID 0;
            
COPacket packet1 SpawnInvisibleEntity(XYref UID);
            
COPacket packet2 String(UID10Effect);
            
byte[] buffer = new byte[packet1.Get.Length packet2.Get.Length];
            
Buffer.BlockCopy(packet1.Get0buffer0packet1.Get.Length);
            
Buffer.BlockCopy(packet2.Get0bufferpacket1.Get.Lengthpacket2.Get.Length);
            
COPacket packet = new COPacket(buffer);
            return 
packet;
        } 
Put them in Packet.cs where are other packets.
Usage:

Client.AddSend(Packets.CoordonateEffect(X,Y, "effect"));

Meh you got the point.
04/08/2010 00:46 Korvacs#18
Quote:
Originally Posted by -impulse- View Post
What's your problem? LOL

Here is what you need.

Put them in Packet.cs where are other packets.
Usage:

Client.AddSend(Packets.CoordonateEffect(X,Y, "effect"));

Meh you got the point.
Ah you did what i suggested, nice one. :)
04/08/2010 01:42 -impulse-#19
Quote:
Originally Posted by Korvacs View Post
Ah you did what i suggested, nice one. :)
You suggested an 'invisible' monster. :P I believe.
04/08/2010 03:58 -NewDawn-#20
Awesome! I completely understand that now. Thanks so much for your help you guys!
04/09/2010 03:33 PeTe Ninja#21
NewDawn.. just wondering...have you done anything without posting it here?
04/09/2010 07:49 -NewDawn-#22
Quote:
Originally Posted by PeTe Ninja View Post
NewDawn.. just wondering...have you done anything without posting it here?
Keep it to a PM Pete.
Do you mean keep stuff to myself instead of releasing them?
Well of course. Don't we all? Only Arco knows a feature that I added that no other server has. And yes, I am considerate sometimes and fix other people's problems too, like the 2nd client log in problem.

I'm new Pete, give me a break? I haven't been explained some simple facts in coding since I've never coded in C# before- or any other language besides HTML. I'm trying as hard as I can Pete- i just need some help once and a while to explain something that might seem simple to you that I've never seen before. You can only absorb so much in one month.
04/09/2010 08:19 -impulse-#23
Quote:
Originally Posted by -NewDawn- View Post
Keep it to a PM Pete.
Do you mean keep stuff to myself instead of releasing them?
Well of course. Don't we all? Only Arco knows a feature that I added that no other server has. And yes, I am considerate sometimes and fix other people's problems too, like the 2nd client log in problem.
Black-> What is it?
Red->I've got that working, just I use sql and it doesn't error.
04/09/2010 09:04 -NewDawn-#24
Quote:
Originally Posted by -impulse- View Post
Black-> What is it?
Red->I've got that working, just I use sql and it doesn't error.
Off Topic. PM me if you're interested.