HelpK Relay Scripting help - Why is this not working?

Posts 1–3 of 3 · Page 1 of 1
K Relay Scripting help - Why is this not working?
I've checked the code over and over again.
How on earth is this not working:

Code:
public void NnT(Client client, Packet packet)
        {
            if (_enabled == true)
            {
                if (no == 15)
                {
                    ptpk = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT);
                    ptpk.Text = " Selling " + Trade.sellno.ToString() + " " + Trade.sellitem + " >>> ".ToString() + Trade.requestedamount.ToString() + " " + Trade.requesteditem.ToString() + " @".ToString() + client.PlayerData.Name + ",..";
                    client.SendToServer(ptpk);
                }
                if (no == 30)
                {
                    PTptab = (PlayerTextPacket)Packet.Create(PacketType.PLAYERTEXT);
                    PTptab.Text = " Selling " + Trade.sellno.ToString() + " " + Trade.sellitem.ToString() + " >>> ".ToString() + Trade.requestedamount.ToString() + " " + Trade.requesteditem + " @" + client.PlayerData.Name.ToString() + ",.,";
                    client.SendToServer(PTptab);
                    no = 0;
                }
                no++;
            }
            else { no = 0; }
        }
It doesn't seem to make sense as to why it isn't working --- it really should be.

Oh and FYI this is part of a TradeBot I am working on and will soon release.
Everything, including this, was working fine and I was doing final tests before I release it
when all of a sudden the spam feature stops working >.<

I even restarted my computer and it didn't work!

- - - Updated - - -

I made a new project with only this function.
It worked just fine. Strange........

- - - Updated - - -

I am using another function in my project that uses the "NEWTICK" packet so I wove this function into that one.
Now I can set the text to be a string like "test" for example but it won't let me add on to that string. E.g "test"+ Trade.sellitem.ToString()

- - - Updated - - -

FIXED!
For some weird reason, when I replaced the ">>>" with ">>" it started working again. Wtf..?!
There has been fixes on this in the past, check the other parts of this forum or just use the search to find it.
Good luck!
Please hit 'Thanks!' if I helped you!
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us