hi i have added on my server fake players on a test server that im creating and i just want to put them all together in a clan which will read it from msql ( clan id ) . i have this code++ but i dont know if its correct ... can someone help how can i make it work ( i mean to join an msql and recognise the id of the clan .. which clan will be created by me ... )
import net.sf.l2j.gameserver.data.sql.ClanTable;
player.setClan(ClanTable.getInstance().getClan(clanId));.......
player.setAccessLevel(Config.DEFAULT_ACCESS_LEVEL);
PlayerInfoTable.getInstance().addPlayer(objectId, accountName, playerName, player.getAccessLevel().getLevel());
player.setBaseClass(player.getClassId());
setLevel(player, 81);