Jump to content
  • 0

ERROR IN FAKEPLAYERUTILS - PM


Question

Posted

Good afternoon / day / night everyone! I'm having a bug on my game server when I try to send fakeplayer pm! The function is that he answers me, but he does not even receive the message and I still receive this message in gs .. could someone help me please? I don't know what to do anymore = /

Ps: Sorry for bad english! is Google tradutor :)

 

https://uploaddeimagens.com.br/imagens/error-png-180d644b-8ed5-4522-bf67-3e4fdadadf9a

 

L8rqCD.png

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

part of the code that does the pm responder function:
 

    public static void answerPlayers(L2PcInstance sender, FakePlayer receiver, String text)
    {
        ThreadPoolManager.getInstance().scheduleAi(new Runnable()
        {
            @Override
            public void run()
            {
                for (String s : CUMPLIMENTS)
                {
                    if (text.equals(s))
                    {
                        _answer = CUMPLIMENTS[Rnd.get(CUMPLIMENTS.length - 1)];
                        _isCumpliment = true;
                    }
                }
                if (!_isCumpliment)
                {
                    _answer = PHRASES[Rnd.get(PHRASES.length - 1)];
                }
                
                sender.sendPacket(new CreatureSay(receiver.getObjectId(), Say2.TELL, receiver.getName(), _answer));
            }
            
        }, Rnd.get(10, 50) * 1000);
    }
    

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...