8a figo ligo ektos 8ematos, alla 8a h8ela na kserw an 8a 8elate na ksana deite online ton l2Archon, to team anasigrotite pali + merikous new developers!!!!
ena tip mhn vazeis to workspace ston c:/
ennow valto mesa sta egrafa sou gt merikes fores ta windows malakizonte me to access dokimase na to valeis sta egrafa sou to workspace dokimase kai enhmerwse an eftiakse!!!
dokimase to etsi,
/**
* Method to show castle lord name on enter world
* @param activeChar
*/
private void notifyCastleOwner(L2PcInstance activeChar)
{
L2Clan clan = activeChar.getClan();
if (clan != null)
{
if (clan.getCastleId() > 0)
{
Castle castle = CastleManager.getInstance().getCastleById(clan.getCastleId());
if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId()))
Announcements.getInstance().announceToAll(activeChar.getName() + " lord of " + castle.getName() + " logged in!");
}
}
}
kai allakse ta imports
an den to psakseis na deis pws douleyeis pws 8a ma8eis? tespa logika sou vgazei provlhma sto gethascastle
opou leei gethascastle kado getcastleId an 8umamai kala
you dont have to open new connection with the database, you can simply use this code and do the same work
player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).setAugmentation(new L2Augmentation(effects, skill, skillLevel));