Jump to content
  • 0

Multifunctionzone


splicho
 Share

Question

L2jFrozenInterlude - Revision 1105

 

i got 6 errors i can't fix someone can help me please ? 

 

Console error Eclipse =  http://prntscr.com/5ff0xo

 

Error 1 = http://prntscr.com/5ff1ba

 

Error 2 & 3 = http://prntscr.com/5ff2k4

 

Error 4 = http://prntscr.com/5ff2tf

 

Error 5 = http://prntscr.com/5ff33c

 

Error 6 = http://prntscr.com/5ff3dy

 

 

Thank You for you're Co-operation !

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

L2jFrozenInterlude - Revision 1105

 

i got 6 errors i can't fix someone can help me please ? 

 

Console error Eclipse =  http://prntscr.com/5ff0xo

 

Error 1 = http://prntscr.com/5ff1ba

 

Error 2 & 3 = http://prntscr.com/5ff2k4

 

Error 4 = http://prntscr.com/5ff2tf

 

Error 5 = http://prntscr.com/5ff33c

 

Error 6 = http://prntscr.com/5ff3dy

 

 

Thank You for you're Co-operation !

if you havent edit Die.java for other code use this: http://pastebin.com/pBvgLuxq

Link to comment
Share on other sites

  • 0

L2jFrozenInterlude - Revision 1105

 

i got 6 errors i can't fix someone can help me please ? 

 

Console error Eclipse =  http://prntscr.com/5ff0xo

 

Error 1 = http://prntscr.com/5ff1ba

 

Error 2 & 3 = http://prntscr.com/5ff2k4

 

Error 4 = http://prntscr.com/5ff2tf

 

Error 5 = http://prntscr.com/5ff33c

 

Error 6 = http://prntscr.com/5ff3dy

 

 

Thank You for you're Co-operation !

for error 1 try this:

 

case "MultiFunctionZone":

temp = new L2MultiFunctionZone(zoneId);

break;

 

im not sure but try it

 

for all other errors you have miss   ; ) } 

Edited by nikosdevil20
Link to comment
Share on other sites

  • 0

for error 1 try this:

 

case "MultiFunctionZone":

temp = new L2MultiFunctionZone(zoneId);

break;

 

im not sure but try it

 

for all other errors you have miss   ; ) } 

now this 

 

console = http://prntscr.com/5fndju

 

error 1 & 2 = http://prntscr.com/5fndtk

Link to comment
Share on other sites

  • 0

what the hek

remove the ;

i get this now :'( 

 

Eclipse console log = http://prntscr.com/5fo8xf

 

error 1 & 2= http://prntscr.com/5fo9bq

 

error 3 = http://prntscr.com/5fo9l3

 

error 4 = http://prntscr.com/5fo9st

 

error 5 = http://prntscr.com/5fo9z1

Link to comment
Share on other sites

  • 0

i get this now :'( 

 

Eclipse console log = http://prntscr.com/5fo8xf

 

error 1 & 2= http://prntscr.com/5fo9bq

 

error 3 = http://prntscr.com/5fo9l3

 

error 4 = http://prntscr.com/5fo9st

 

error 5 = http://prntscr.com/5fo9z1

post die.java here and say the lines of errors 

Link to comment
Share on other sites

  • 0

post die.java here and say the lines of errors 

 

the error's are marked Red 

eclipse console log = http://prntscr.com/5fo8xf

 

 

Die.java

 

package com.l2jfrozen.gameserver.network.serverpackets;
 
import com.l2jfrozen.gameserver.datatables.AccessLevel;
import com.l2jfrozen.gameserver.datatables.sql.AccessLevels;
import com.l2jfrozen.gameserver.managers.CastleManager;
import com.l2jfrozen.gameserver.managers.FortManager;
import com.l2jfrozen.gameserver.model.L2Attackable;
import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.L2SiegeClan;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.event.CTF;
import com.l2jfrozen.gameserver.model.entity.event.DM;
import com.l2jfrozen.gameserver.model.entity.event.TvT;
import com.l2jfrozen.gameserver.model.entity.siege.Castle;
import com.l2jfrozen.gameserver.model.entity.siege.Fort;
import com.l2jfrozen.gameserver.model.zone.type.L2MultiFunctionZone;
 
/**
 * sample 0b 952a1048 objectId 00000000 00000000 00000000 00000000 00000000 00000000 format dddddd rev 377 format ddddddd rev 417
 * @version $Revision: 1.3.3 $ $Date: 2009/04/29 00:46:18 $
 */
public class Die extends L2GameServerPacket
{
private static final String _S__0B_DIE = " 06 Die";
private final int _charObjId;
private final boolean _fake;
private boolean _sweepable;
private boolean _canTeleport;
private AccessLevel _access = AccessLevels.getInstance()._userAccessLevel;
private com.l2jfrozen.gameserver.model.L2Clan _clan;
L2Character _activeChar;
 
/**
* @param cha
*/
public Die(final L2Character cha)
{
_activeChar = cha;
if (cha instanceof L2PcInstance)
{
final L2PcInstance player = (L2PcInstance) cha;
_access = player.getAccessLevel();
_clan = player.getClan();
_canTeleport = !((TvT.is_started() && player._inEventTvT) || (DM.is_started() && player._inEventDM) || (CTF.is_started() && player._inEventCTF) || player.isInFunEvent() || player.isPendingRevive() || (player.isInsideZone(L2Character.ZONE_MULTIFUNCTION) &&
) }
_charObjId = cha.getObjectId();
_fake = !cha.isDead();
if (cha instanceof L2Attackable)
{
_sweepable = ((L2Attackable) cha).isSweepActive();
}
 
}
 
@Override
protected final void writeImpl()
{
if (_fake)
return;
 
writeC(0x06);
 
writeD(_charObjId);
// NOTE:
// 6d 00 00 00 00 - to nearest village
// 6d 01 00 00 00 - to hide away
// 6d 02 00 00 00 - to castle
// 6d 03 00 00 00 - to siege HQ
// sweepable
// 6d 04 00 00 00 - FIXED
 
writeD(_canTeleport ? 0x01 : 0); // 6d 00 00 00 00 - to nearest village
 
if (_canTeleport && _clan != null)
{
L2SiegeClan siegeClan = null;
Boolean isInDefense = false;
final Castle castle = CastleManager.getInstance().getCastle(_activeChar);
final Fort fort = FortManager.getInstance().getFort(_activeChar);
 
if (castle != null && castle.getSiege().getIsInProgress())
{
// siege in progress
siegeClan = castle.getSiege().getAttackerClan(_clan);
if (siegeClan == null && castle.getSiege().checkIsDefender(_clan))
{
isInDefense = true;
}
}
else if (fort != null && fort.getSiege().getIsInProgress())
{
// siege in progress
siegeClan = fort.getSiege().getAttackerClan(_clan);
if (siegeClan == null && fort.getSiege().checkIsDefender(_clan))
{
isInDefense = true;
}
}
 
writeD(_clan.getHasHideout() > 0 ? 0x01 : 0x00); // 6d 01 00 00 00 - to hide away
writeD(_clan.getHasCastle() > 0 || _clan.getHasFort() > 0 || isInDefense ? 0x01 : 0x00); // 6d 02 00 00 00 - to castle
writeD(siegeClan != null && !isInDefense && siegeClan.getFlag().size() > 0 ? 0x01 : 0x00); // 6d 03 00 00 00 - to siege HQ
}
else
{
writeD(0x00); // 6d 01 00 00 00 - to hide away
writeD(0x00); // 6d 02 00 00 00 - to castle
writeD(0x00); // 6d 03 00 00 00 - to siege HQ
}
 
writeD(_sweepable ? 0x01 : 0x00); // sweepable (blue glow)
writeD(_access.allowFixedRes() ? 0x01 : 0x00); // 6d 04 00 00 00 - to FIXED
}
 
/*
* (non-Javadoc)
* @see com.l2jfrozen.gameserver.serverpackets.ServerBasePacket#getType()
*/
@Override
public String getType()
{
return _S__0B_DIE;
}
}
Link to comment
Share on other sites

  • 0

 

 

the error's are marked Red 

eclipse console log = http://prntscr.com/5fo8xf

 

 

Die.java

 

package com.l2jfrozen.gameserver.network.serverpackets;
 
import com.l2jfrozen.gameserver.datatables.AccessLevel;
import com.l2jfrozen.gameserver.datatables.sql.AccessLevels;
import com.l2jfrozen.gameserver.managers.CastleManager;
import com.l2jfrozen.gameserver.managers.FortManager;
import com.l2jfrozen.gameserver.model.L2Attackable;
import com.l2jfrozen.gameserver.model.L2Character;
import com.l2jfrozen.gameserver.model.L2SiegeClan;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.event.CTF;
import com.l2jfrozen.gameserver.model.entity.event.DM;
import com.l2jfrozen.gameserver.model.entity.event.TvT;
import com.l2jfrozen.gameserver.model.entity.siege.Castle;
import com.l2jfrozen.gameserver.model.entity.siege.Fort;
import com.l2jfrozen.gameserver.model.zone.type.L2MultiFunctionZone;
 
/**
 * sample 0b 952a1048 objectId 00000000 00000000 00000000 00000000 00000000 00000000 format dddddd rev 377 format ddddddd rev 417
 * @version $Revision: 1.3.3 $ $Date: 2009/04/29 00:46:18 $
 */
public class Die extends L2GameServerPacket
{
private static final String _S__0B_DIE = " 06 Die";
private final int _charObjId;
private final boolean _fake;
private boolean _sweepable;
private boolean _canTeleport;
private AccessLevel _access = AccessLevels.getInstance()._userAccessLevel;
private com.l2jfrozen.gameserver.model.L2Clan _clan;
L2Character _activeChar;
 
/**
* @param cha
*/
public Die(final L2Character cha)
{
_activeChar = cha;
if (cha instanceof L2PcInstance)
{
final L2PcInstance player = (L2PcInstance) cha;
_access = player.getAccessLevel();
_clan = player.getClan();
_canTeleport = !((TvT.is_started() && player._inEventTvT) || (DM.is_started() && player._inEventDM) || (CTF.is_started() && player._inEventCTF) || player.isInFunEvent() || player.isPendingRevive() || (player.isInsideZone(L2Character.ZONE_MULTIFUNCTION) &&
) }
_charObjId = cha.getObjectId();
_fake = !cha.isDead();
if (cha instanceof L2Attackable)
{
_sweepable = ((L2Attackable) cha).isSweepActive();
}
 
}
 
@Override
protected final void writeImpl()
{
if (_fake)
return;
 
writeC(0x06);
 
writeD(_charObjId);
// NOTE:
// 6d 00 00 00 00 - to nearest village
// 6d 01 00 00 00 - to hide away
// 6d 02 00 00 00 - to castle
// 6d 03 00 00 00 - to siege HQ
// sweepable
// 6d 04 00 00 00 - FIXED
 
writeD(_canTeleport ? 0x01 : 0); // 6d 00 00 00 00 - to nearest village
 
if (_canTeleport && _clan != null)
{
L2SiegeClan siegeClan = null;
Boolean isInDefense = false;
final Castle castle = CastleManager.getInstance().getCastle(_activeChar);
final Fort fort = FortManager.getInstance().getFort(_activeChar);
 
if (castle != null && castle.getSiege().getIsInProgress())
{
// siege in progress
siegeClan = castle.getSiege().getAttackerClan(_clan);
if (siegeClan == null && castle.getSiege().checkIsDefender(_clan))
{
isInDefense = true;
}
}
else if (fort != null && fort.getSiege().getIsInProgress())
{
// siege in progress
siegeClan = fort.getSiege().getAttackerClan(_clan);
if (siegeClan == null && fort.getSiege().checkIsDefender(_clan))
{
isInDefense = true;
}
}
 
writeD(_clan.getHasHideout() > 0 ? 0x01 : 0x00); // 6d 01 00 00 00 - to hide away
writeD(_clan.getHasCastle() > 0 || _clan.getHasFort() > 0 || isInDefense ? 0x01 : 0x00); // 6d 02 00 00 00 - to castle
writeD(siegeClan != null && !isInDefense && siegeClan.getFlag().size() > 0 ? 0x01 : 0x00); // 6d 03 00 00 00 - to siege HQ
}
else
{
writeD(0x00); // 6d 01 00 00 00 - to hide away
writeD(0x00); // 6d 02 00 00 00 - to castle
writeD(0x00); // 6d 03 00 00 00 - to siege HQ
}
 
writeD(_sweepable ? 0x01 : 0x00); // sweepable (blue glow)
writeD(_access.allowFixedRes() ? 0x01 : 0x00); // 6d 04 00 00 00 - to FIXED
}
 
/*
* (non-Javadoc)
* @see com.l2jfrozen.gameserver.serverpackets.ServerBasePacket#getType()
*/
@Override
public String getType()
{
return _S__0B_DIE;
}
}

 

http://pastebin.com/8fq8efZ7

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock