Results 1 to 3 of 3
  1. #1
    pixelzerg's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    UK
    Posts
    188
    Reputation
    10
    Thanks
    1,113

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

  2. #2
    AmejiOrape's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    184
    Reputation
    27
    Thanks
    99
    My Mood
    Relaxed
    Kek
    /10char

  3. #3
    rotmgpixiesubhps's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Location
    PixieLand
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Blah
    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!

Similar Threads

  1. [Help Request] Please help. Why does this pop up??
    By lkdjnfoskjednfblksjdfn in forum Realm of the Mad God Private Servers Help
    Replies: 2
    Last Post: 02-03-2015, 02:56 PM
  2. [Help Request] Realm Relay scripting help (newbie)
    By codelion in forum Realm of the Mad God Help & Requests
    Replies: 9
    Last Post: 04-30-2014, 12:21 PM
  3. [HELP] Why is this not working :\
    By skulhead in forum C++/C Programming
    Replies: 11
    Last Post: 03-10-2011, 01:57 AM
  4. [Help] Why is this not working...
    By skulhead in forum WarRock Hack Source Code
    Replies: 30
    Last Post: 03-05-2011, 06:42 PM
  5. Why does this not work?
    By extremehack in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 08-15-2010, 09:47 AM