Skip to content

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

Featured Replies

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.

 

And the error is?

Did you put import com.l2jserver.gameserver..............

instead of .............. should be file were RadarOnPlayer is defined?

I fixed it, thanks anyway.

 

Problem solved, topic locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.