Jump to content
  • 0

Question

Posted

hello.

 

sorry if im in the wrong section but im in a really old old old pc with really slow internet and im a little confused with the sections. if im in the wrong section please move the topic to the right section. thank you.

 

now... i know ive asked your help too many times guys and im really sorry for that and im also sorry that i havent shared anything either as long as i remember. but dont worry if i ever find something not shared i will share it just to help you guys because you've helped me too many times ( though sometimes you answer to everyone else except me :P )

 


 

anyway... i want to add this share in my server: http://www.maxcheaters.com/forum/index.php?topic=28059.0 but i have a problem. you see i use interlude l2jserver and the source is not the same. for example the share in some cases it wants me to add some lines in EnterWorld.java but in my core these lines under which i should add the code are in L2PcInstance.java instead of Enterworld.java. but when i try to add them to l2pcinstance.java instead... every line is an error in eclipse.

 

so all im asking is a share for l2jserver interlude for pvp and pk color system. i tried to search but im not that good in search and my internet is too slow and my pc too laggy so i need your help guys!

 

aaahhh and in l2jmods.properties i dont have this warehouse thing nor this about potions. i have only champion mobs and tvt event....

 

thats all. please help guys.... dont forget me! :)

9 answers to this question

Recommended Posts

  • 0
Posted

followed the instructions carefully... every line is an error in eclipse:

 

compile:
    [javac] Compiling 1226 source files to C:\workspace\L2_GameServer_It\build\classes
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3599: illegal start of expression
    [javac] 	 	public void updatePvPColor(int pvpKillAmount)
    [javac] 	 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3666: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3683: class, interface, or enum expected
    [javac] 	public final void broadcastUserInfo()
    [javac] 	             ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3689: class, interface, or enum expected
    [javac] 		if (Config.DEBUG)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3692: class, interface, or enum expected
    [javac] 		Broadcast.toKnownPlayers(this, new CharInfo(this));
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3693: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3695: class, interface, or enum expected
    [javac] 	public final void broadcastTitleInfo()
    [javac] 	             ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3701: class, interface, or enum expected
    [javac] 		if (Config.DEBUG)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3704: class, interface, or enum expected
    [javac] 		Broadcast.toKnownPlayers(this, new TitleUpdate(this));
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3705: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3710: class, interface, or enum expected
    [javac] 	public int getAllyId()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3714: class, interface, or enum expected
    [javac] 		else
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3716: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3718: class, interface, or enum expected
    [javac] 	public int getAllyCrestId()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3723: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3727: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3749: class, interface, or enum expected
    [javac] 	protected void onHitTimer(L2Character target, int damage, boolean crit, boolean miss, boolean soulshot, boolean shld)
    [javac] 	          ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3752: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3758: class, interface, or enum expected
    [javac] 	public void sendPacket(L2GameServerPacket packet)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3763: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3790: class, interface, or enum expected
    [javac] 	public void doInteract(L2Character target)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3795: class, interface, or enum expected
    [javac] 			sendPacket(new ActionFailed());
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3797: class, interface, or enum expected
    [javac] 			if (temp.getPrivateStoreType() == STORE_PRIVATE_SELL || temp.getPrivateStoreType() == STORE_PRIVATE_PACKAGE_SELL)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3799: class, interface, or enum expected
    [javac] 			else if (temp.getPrivateStoreType() == STORE_PRIVATE_BUY)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3801: class, interface, or enum expected
    [javac] 			else if (temp.getPrivateStoreType() == STORE_PRIVATE_MANUFACTURE)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3804: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3810: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3827: class, interface, or enum expected
    [javac] 	public void doAutoLoot(L2Attackable target, L2Attackable.RewardItem item)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3830: class, interface, or enum expected
    [javac] 		else if (item.getItemId() == 57) addAdena("Loot", item.getCount(), target, true);
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3831: class, interface, or enum expected
    [javac] 		else addItem("Loot", item.getItemId(), item.getCount(), target, true);
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3832: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3856: class, interface, or enum expected
    [javac] 		getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3859: class, interface, or enum expected
    [javac] 		if (! (object instanceof L2ItemInstance))
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3863: class, interface, or enum expected
    [javac] 			return;
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3864: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3869: class, interface, or enum expected
    [javac] 		sendPacket(new ActionFailed());
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3872: class, interface, or enum expected
    [javac] 		StopMove sm = new StopMove(getObjectId(), getX(), getY(), getZ(), getHeading());
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3873: class, interface, or enum expected
    [javac] 		if (Config.DEBUG) _log.fine("pickup pos: "+ target.getX() + " "+target.getY()+ " "+target.getZ() );
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3874: class, interface, or enum expected
    [javac] 		sendPacket(sm);
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3876: class, interface, or enum expected
    [javac] 		synchronized (target)
    [javac] 		             ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3883: class, interface, or enum expected
    [javac] 				return;
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3884: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3889: class, interface, or enum expected
    [javac] 				sendPacket(new SystemMessage(SystemMessageId.SLOTS_FULL));
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3890: class, interface, or enum expected
    [javac] 				return;
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3891: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3897: class, interface, or enum expected
    [javac]                 if (target.getItemId() == 57)
    [javac]                 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3900: class, interface, or enum expected
    [javac]                     smsg.addNumber(target.getCount());
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3901: class, interface, or enum expected
    [javac]                     sendPacket(smsg);
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3902: class, interface, or enum expected
    [javac]                 }
    [javac]                 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3906: class, interface, or enum expected
    [javac]                     smsg.addItemName(target.getItemId());
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3907: class, interface, or enum expected
    [javac]                     smsg.addNumber(target.getCount());
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3908: class, interface, or enum expected
    [javac]                     sendPacket(smsg);
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3909: class, interface, or enum expected
    [javac]                 }
    [javac]                 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3913: class, interface, or enum expected
    [javac]                     smsg.addItemName(target.getItemId());
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3914: class, interface, or enum expected
    [javac]                     sendPacket(smsg);
    [javac]                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3915: class, interface, or enum expected
    [javac]                 }
    [javac]                 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3918: class, interface, or enum expected
    [javac]             }
    [javac]             ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3924: class, interface, or enum expected
    [javac] 			target.pickupMe(this);
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3925: class, interface, or enum expected
    [javac] 			 if(Config.SAVE_DROPPED_ITEM) // item must be removed from ItemsOnGroundManager if is active
    [javac] 			 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3928: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3934: class, interface, or enum expected
    [javac] 			if (handler == null)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3936: class, interface, or enum expected
    [javac] 			else
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3938: class, interface, or enum expected
    [javac]             	ItemTable.getInstance().destroyItem("Consume", target, this, null);
    [javac]             	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3939: class, interface, or enum expected
    [javac]         }
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3944: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3953: class, interface, or enum expected
    [javac] 					msg.addString(getName());
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3954: class, interface, or enum expected
    [javac] 					msg.addNumber(target.getEnchantLevel());
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3955: class, interface, or enum expected
    [javac] 					msg.addItemName(target.getItemId());
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3956: class, interface, or enum expected
    [javac] 					broadcastPacket(msg, 1400);
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3957: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3961: class, interface, or enum expected
    [javac] 					msg.addString(getName());
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3962: class, interface, or enum expected
    [javac] 					msg.addItemName(target.getItemId());
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3963: class, interface, or enum expected
    [javac] 					broadcastPacket(msg, 1400);
    [javac] 					^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3964: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3970: class, interface, or enum expected
    [javac] 			else if (target.getItemId() == 57 && getInventory().getAdenaInstance() != null)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3973: class, interface, or enum expected
    [javac] 				ItemTable.getInstance().destroyItem("Pickup", target, this, null);
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3974: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3977: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3992: class, interface, or enum expected
    [javac] 	public void setTarget(L2Object newTarget)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3999: class, interface, or enum expected
    [javac] 		if (newTarget != null && Math.abs(newTarget.getZ() - getZ()) > 1000)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4002: class, interface, or enum expected
    [javac] 		if(!isGM())
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4009: class, interface, or enum expected
    [javac] 			else if(isInParty() && getParty().isInDimensionalRift())
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4012: class, interface, or enum expected
    [javac] 				byte riftRoom = getParty().getDimensionalRift().getCurrentRoom();
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4014: class, interface, or enum expected
    [javac] 				if (newTarget != null && !DimensionalRiftManager.getInstance().getRoom(riftType, riftRoom).checkIfInZone(newTarget.getX(), newTarget.getY(), newTarget.getZ()))
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4016: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4022: class, interface, or enum expected
    [javac] 		if (oldTarget != null)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4028: class, interface, or enum expected
    [javac] 			if (oldTarget instanceof L2Character)
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4030: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4036: class, interface, or enum expected
    [javac] 			TargetSelected my = new TargetSelected(getObjectId(), newTarget.getObjectId(), getX(), getY(), getZ());
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4037: class, interface, or enum expected
    [javac] 			broadcastPacket(my);
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4038: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4042: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4048: class, interface, or enum expected
    [javac] 	public L2ItemInstance getActiveWeaponInstance()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4051: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4057: class, interface, or enum expected
    [javac] 	public L2Weapon getActiveWeaponItem()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4061: class, interface, or enum expected
    [javac] 		if (weapon == null)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4064: class, interface, or enum expected
    [javac] 		return (L2Weapon) weapon.getItem();
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4065: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4067: class, interface, or enum expected
    [javac] 	public L2ItemInstance getChestArmorInstance()
    [javac] 	       ^
    [javac] 100 errors

BUILD FAILED
C:\workspace\L2_GameServer_It\build.xml:67: Compile failed; see the compiler error output for details.

Total time: 8 seconds

  • 0
Posted

    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3599: illegal start of expression
    [javac] 	 	public void updatePvPColor(int pvpKillAmount)

you are starting to add things in a wrong place

that should go

public final class L2PcInstance extends L2Playable
{
    ...
    	public byte getPvpFlag() //for example
{
	return _pvpFlag;
}
    ...
        public smth doSmth() //any function
        {
             ...
        }

        //your code here

     ...
}

  • 0
Posted

this is how i did it... still the same errors:

 

	public byte getPvpFlag()
{
	return _pvpFlag;
}

    public void revalidateZone(boolean force)
    {

// Custom PVP Color System - Start
 	public void updatePvPColor(int pvpKillAmount)
 	{
 		if (Config.PVP_COLOR_SYSTEM_ENABLED)
 		{
 			//Check if the character has GM access and if so, let them be.
 			if (isGM())
 				return;
 			{
 				if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
 				{
 					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT1);
 				}
 				else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
 				{
 					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2);
 				}
 				else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
 				{
					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3);
 				}
 				else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
 				{
 					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4);
 				}
 				else if (pvpKillAmount >= (Config.PVP_AMOUNT5))
 				{
 					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5);
 				}
 			}
 		}
 	}
 	//Custom PVP Color System - End

 	// Custom Pk Color System - Start
 	public void updatePkColor(int pkKillAmount)
 	{
 		if (Config.PK_COLOR_SYSTEM_ENABLED)
 		{
 			//Check if the character has GM access and if so, let them be, like above.
 			if (isGM())
 				return;
 			{
 				if ((pkKillAmount >= (Config.PK_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2)))
				{
 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1);
 				}
 				else if ((pkKillAmount >= (Config.PK_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3)))
 				{
 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2);
 				}
 				else if ((pkKillAmount >= (Config.PK_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4)))
 				{
 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3);
 				}
 				else if ((pkKillAmount >= (Config.PK_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5)))
 				{
 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4);
 				}
 				else if (pkKillAmount >= (Config.PK_AMOUNT5))
 				{
 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5);
 				}
 			}
 		}
 	}
 	//Custom Pk Color System - End	


    	// Cannot validate if not in  a world region (happens during teleport)
    	if (getWorldRegion() == null) return;

  • 0
Posted

    public void revalidateZone(boolean force)
    {

// Custom PVP Color System - Start
 	public void updatePvPColor(int pvpKillAmount)
 	{

that is what i was talking about

 

Find a clean copy of l2pc instance, coz im sure that you deleted some code of revalidateZone, that is another function that you should not touch.

anyway, try to delete

 

    public void revalidateZone(boolean force)

    {

 

of your code, and compile it.

 

  • 0
Posted

are you sure i should delete it? lol.... look the error now:

 

compile:
    [javac] Compiling 1226 source files to C:\workspace\L2_GameServer_It\build\classes
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1524: illegal start of type
    [javac]     	if (getWorldRegion() == null) return;
    [javac]     	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1524: invalid method declaration; return type required
    [javac]     	if (getWorldRegion() == null) return;
    [javac]     	    ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1524: ';' expected
    [javac]     	if (getWorldRegion() == null) return;
    [javac]     	                    ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1527: illegal start of type
    [javac]     	if (force) _zoneValidateCounter = 4;
    [javac]     	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1527: <identifier> expected
    [javac]     	if (force) _zoneValidateCounter = 4;
    [javac]     	         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1527: <identifier> expected
    [javac]     	if (force) _zoneValidateCounter = 4;
    [javac]     	                               ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1528: illegal start of type
    [javac]     	else
    [javac]     	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1536: invalid method declaration; return type required
    [javac]     	getWorldRegion().revalidateZones(this);
    [javac]     	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1536: ';' expected
    [javac]     	getWorldRegion().revalidateZones(this);
    [javac]     	                ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1538: illegal start of type
    [javac]         if (isInsideZone(ZONE_SIEGE))
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1538: invalid method declaration; return type required
    [javac]         if (isInsideZone(ZONE_SIEGE))
    [javac]             ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1538: <identifier> expected
    [javac]         if (isInsideZone(ZONE_SIEGE))
    [javac]                                    ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1538: ';' expected
    [javac]         if (isInsideZone(ZONE_SIEGE))
    [javac]                                     ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1545: illegal start of type
    [javac]         else if (isInsideZone(ZONE_PVP))
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1545: invalid method declaration; return type required
    [javac]         else if (isInsideZone(ZONE_PVP))
    [javac]                  ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1545: <identifier> expected
    [javac]         else if (isInsideZone(ZONE_PVP))
    [javac]                                       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1545: ';' expected
    [javac]         else if (isInsideZone(ZONE_PVP))
    [javac]                                        ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1552: illegal start of type
    [javac]         else if (isIn7sDungeon())
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1552: invalid method declaration; return type required
    [javac]         else if (isIn7sDungeon())
    [javac]                  ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1552: ';' expected
    [javac]         else if (isIn7sDungeon())
    [javac]                                 ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1559: illegal start of type
    [javac]         else if (isInsideZone(ZONE_PEACE))
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1559: invalid method declaration; return type required
    [javac]         else if (isInsideZone(ZONE_PEACE))
    [javac]                  ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1559: <identifier> expected
    [javac]         else if (isInsideZone(ZONE_PEACE))
    [javac]                                         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1559: ';' expected
    [javac]         else if (isInsideZone(ZONE_PEACE))
    [javac]                                          ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1566: illegal start of type
    [javac]         else
    [javac]         ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1579: class, interface, or enum expected
    [javac] 	public boolean hasDwarvenCraft()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1582: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1584: class, interface, or enum expected
    [javac] 	public int getDwarvenCraft()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1587: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1592: class, interface, or enum expected
    [javac] 	public boolean hasCommonCraft()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1595: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1597: class, interface, or enum expected
    [javac] 	public int getCommonCraft()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1600: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1605: class, interface, or enum expected
    [javac] 	public int getPkKills()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1608: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1613: class, interface, or enum expected
    [javac] 	public void setPkKills(int pkKills)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1616: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1621: class, interface, or enum expected
    [javac] 	public long getDeleteTimer()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1624: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1629: class, interface, or enum expected
    [javac] 	public void setDeleteTimer(long deleteTimer)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1632: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1637: class, interface, or enum expected
    [javac] 	public int getCurrentLoad()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1640: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1644: class, interface, or enum expected
    [javac] 	public long getLastRecomUpdate()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1647: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1648: class, interface, or enum expected
    [javac] 	public void setLastRecomUpdate(long date)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1651: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1655: class, interface, or enum expected
    [javac] 	public int getRecomHave()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1658: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1667: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1672: class, interface, or enum expected
    [javac] 	public void setRecomHave(int value)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1676: class, interface, or enum expected
    [javac] 		else if (value < 0)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1678: class, interface, or enum expected
    [javac] 		else
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1680: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1687: class, interface, or enum expected
    [javac] 	public int getRecomLeft()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1690: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1699: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1701: class, interface, or enum expected
    [javac] 	public void giveRecom(L2PcInstance target)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1706: class, interface, or enum expected
    [javac] 			try
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1709: class, interface, or enum expected
    [javac] 				PreparedStatement statement = con.prepareStatement(ADD_CHAR_RECOM);
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1710: class, interface, or enum expected
    [javac] 				statement.setInt(1, getObjectId());
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1711: class, interface, or enum expected
    [javac] 				statement.setInt(2, target.getObjectId());
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1712: class, interface, or enum expected
    [javac] 				statement.execute();
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1713: class, interface, or enum expected
    [javac] 				statement.close();
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1714: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1718: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1721: class, interface, or enum expected
    [javac] 				try { con.close(); } catch (Exception e) {}
    [javac] 				                   ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1725: class, interface, or enum expected
    [javac] 		decRecomLeft();
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1726: class, interface, or enum expected
    [javac] 		_recomChars.add(target.getObjectId());
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1727: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1729: class, interface, or enum expected
    [javac] 	public boolean canRecom(L2PcInstance target)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1732: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1738: class, interface, or enum expected
    [javac] 	public void setExpBeforeDeath(long exp)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1741: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1743: class, interface, or enum expected
    [javac] 	public long getExpBeforeDeath()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1746: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1751: class, interface, or enum expected
    [javac] 	public int getKarma()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1754: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1759: class, interface, or enum expected
    [javac] 	public void setKarma(int karma)
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1762: class, interface, or enum expected
    [javac] 		if (_karma == 0 && karma > 0)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1768: class, interface, or enum expected
    [javac] 				if (((L2GuardInstance)object).getAI().getIntention() == CtrlIntention.AI_INTENTION_IDLE)
    [javac] 				^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1770: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1776: class, interface, or enum expected
    [javac] 		}
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1779: class, interface, or enum expected
    [javac] 		broadcastKarma();
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1780: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1785: class, interface, or enum expected
    [javac] 	public int getMaxLoad()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1791: class, interface, or enum expected
    [javac] 		if (con < 1) return 31000;
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1792: class, interface, or enum expected
    [javac] 		if (con > 59) return 176000;
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1793: class, interface, or enum expected
    [javac] 		double baseLoad = Math.pow(1.029993928, con)*30495.627366;
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1794: class, interface, or enum expected
    [javac] 		return (int)calcStat(Stats.MAX_LOAD, baseLoad*Config.ALT_WEIGHT_LIMIT, this, null);
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1795: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1797: class, interface, or enum expected
    [javac] 	public int getExpertisePenalty()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1800: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1802: class, interface, or enum expected
    [javac] 	public int getWeightPenalty()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1806: class, interface, or enum expected
    [javac] 		return _curWeightPenalty;
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1807: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1812: class, interface, or enum expected
    [javac] 	public void refreshOverloaded()
    [javac] 	       ^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1815: class, interface, or enum expected
    [javac] 		if (maxLoad > 0)
    [javac] 		^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1818: class, interface, or enum expected
    [javac] 			int weightproc = getCurrentLoad() * 1000 / maxLoad;
    [javac] 			^
    [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:1819: class, interface, or enum expected
    [javac] 			int newWeightPenalty;
    [javac] 			^
    [javac] 100 errors

BUILD FAILED
C:\workspace\L2_GameServer_It\build.xml:67: Compile failed; see the compiler error output for details.

Total time: 2 seconds

 

and here is how the untouched L2PcInstance is... maybe this could help you a little:

 

	public void setPvpFlag(int pvpFlag)
{
	_pvpFlag = (byte)pvpFlag;
}

public byte getPvpFlag()
{
	return _pvpFlag;
}

    public void revalidateZone(boolean force)
    {
    	// Cannot validate if not in  a world region (happens during teleport)
    	if (getWorldRegion() == null) return;

    	// This function is called very often from movement code
    	if (force) _zoneValidateCounter = 4;
    	else
    	{
    		_zoneValidateCounter--;
    		if (_zoneValidateCounter < 0)
    			_zoneValidateCounter = 4;
    		else return;
    	}

 

 

 

aaaaaaaaaaahhhhh and i forgot.... thank you for helping me :)

  • 0
Posted

public void setPvpFlag(int pvpFlag)
{
	_pvpFlag = (byte)pvpFlag;
}

public byte getPvpFlag()
{
	return _pvpFlag;
}

   //
   //  Your code here
   //

   public void revalidateZone(boolean force)
   {
   	// Cannot validate if not in  a world region (happens during teleport)
   	if (getWorldRegion() == null) return;

   	// This function is called very often from movement code
   	if (force) _zoneValidateCounter = 4;
   	else
   	{
   		_zoneValidateCounter--;
   		if (_zoneValidateCounter < 0)
   			_zoneValidateCounter = 4;
   		else return;
   	}

 

try to fix the changed l2pcinstance writing

   public void revalidateZone(boolean force)
   {

before

if (getWorldRegion() == null) return;

so it will be

   public void revalidateZone(boolean force)
   {
   	// Cannot validate if not in  a world region (happens during teleport)
   	if (getWorldRegion() == null) return;

 

and np for helping you :)

  • 0
Posted

lol didnt expect to work :P

 

no error in compile.... thank you so much. if i remember well you have helped me again in my older requests. thank for everything. when i become an empress i will return the favor :P

Guest
This topic is now closed to further replies.


×
×
  • Create New...