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..?!