Jump to content
  • 0

[Help] Problem with CTF Event (Eclipse Code Error)


Question

Posted

Hello guys, i found a CTF Event for Gracia (http://www.maxcheaters.com/forum/index.php?topic=49821.0) But i put it in interlude. I fixed some errors, but i have one last error which i can not fix and i need your help.

 

I have error in this line:

RadarOnPlayer radar = rdr.new RadarOnPlayer(hasFlag, player);

 

and on L2Radar.java file i have this code for RadarOnPlayer

public class RadarOnPlayer implements Runnable
           {
                private final L2PcInstance _myTarget, _me;
           
                    public RadarOnPlayer(L2PcInstance target, L2PcInstance me)
                    {
                        _me = me;
                        _myTarget = target;
                    }
            
                    public void run()
                    {
                        try
                        {
                            if (_me == null || _me.isOnline()==0)
                                return;
            
                            _me.sendPacket(new RadarControl(1, 1, _me.getX(), _me.getY(), _me.getZ()));
                            if (_myTarget == null || _myTarget.isOnline()==0 || !_myTarget._haveFlagCTF)
                                return;
            
                            _me.sendPacket(new RadarControl(0, 1, _myTarget.getX(), _myTarget.getY(), _myTarget.getZ()));
                            ThreadPoolManager.getInstance().scheduleGeneral(new RadarOnPlayer(_myTarget,_me), 15000);
                         }
                        catch(Throwable t)
                        {}
                    }
                }

 

Could someone help me? any ideas how to fix it? Thanks in advanced.

 

5 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...