
i wanted to make when someone trying to gotolove, send a message to partner that his love coming to him with a system message..
i got edited some lines of wedding.java(almost at the EOF)
but i'm not sure(eclipse didnt showed me any warning/error) if its the right way to do this..or if i can make it much more short edit that the one i did!
and by the way dont flame me plz for a such an easy question for you..
cause i'm just a newbie that tryes to learn and be a better one in future and help our community

excuse me that i didnt used
Code: Select all
but i didnt know how and if it is possible to highlight with color!
red colored = added code :)
EscapeFinalizer ef = new EscapeFinalizer(activeChar,[color=#FF0000]partner,[/color] partner.getX(), partner.getY(), partner.getZ(), partner.isIn7sDungeon());
// continue execution later
activeChar.setSkillCast(ThreadPoolManager.getInstance().scheduleGeneral(ef, teleportTimer));
activeChar.forceIsCasting(GameTimeController.getGameTicks() + teleportTimer / GameTimeController.MILLIS_IN_TICK);
return true;
}
static class EscapeFinalizer implements Runnable
{
private L2PcInstance _activeChar;
[color=#FF0000]private L2PcInstance _partnerId;[/color]
private int _partnerx;
private int _partnery;
private int _partnerz;
private boolean _to7sDungeon;
EscapeFinalizer(L2PcInstance activeChar,L2PcInstance partnerId, int x, int y, int z, boolean to7sDungeon)
{
_activeChar = activeChar;
[color=#FF0000] _partnerId = partnerId;[/color]
_partnerx = x;
_partnery = y;
_partnerz = z;
_to7sDungeon = to7sDungeon;
}
public void run()
{
if (_activeChar.isDead())
return;
if(SiegeManager.getInstance().getSiege(_partnerx, _partnery, _partnerz) != null && SiegeManager.getInstance().getSiege(_partnerx, _partnery, _partnerz).getIsInProgress())
{
_activeChar.sendMessage("Your partner is in siege, you can't go to your partner.");
return;
}
_activeChar.setIsIn7sDungeon(_to7sDungeon);
_activeChar.enableAllSkills();
_activeChar.setIsCastingNow(false);
try
{
_activeChar.teleToLocation(_partnerx, _partnery, _partnerz);
[color=#FF0000] _partnerId.sendMessage("Your partner is teleporting to you!");[/color]
}
and..thanks for your time! :wink: