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);
    }
    

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..