Jump to content

tazerman2

Members
  • Posts

    678
  • Credits

  • Joined

  • Last visited

  • Days Won

    9
  • Feedback

    0%

Everything posted by tazerman2

  1. is not same but for me is good try >:D
  2. yeap but for make some like this need first make 3,4 background image
  3. first the background image is custom and i try to make this community is easy but is big code
  4. i think i can make this html
  5. oli afti einai kaki antropi alla den tous akoumpaei tipota
  6. can you send me teamviewer for help you or skype
  7. nomizo pos den eides kala an o kodikas einai megalos mporo na doso lefta
  8. gia sas psaxno pos mporo na balo se ena npc countdown timer dld exo ena event kai thelo otan arxizi na dixnei ena timer p.x. 1 min kai na katebeni an mporei kapios na me boithisi se afto (se periptosi pou einai megalos o kodikas mporo na doso lefta) efxaristo
  9. [GR]mipos den exeis aniksei ports i den exeis bali mesa sto ini tin IP sou ?
  10. anyone can help ? i don't know what has and is not working
  11. i can't understand what missing :-\
  12. hello i have a problem i use one event and after start show me this error can any help me to fix it tnx! code: public class RandomFight { public static RandomFight getInstance() { return SingletonHolder._instance; } public static enum State { INACTIVE, REGISTER, LOADING, FIGHT } public static State state = State.INACTIVE; public static Vector<L2PcInstance> players = new Vector<>(); private L2PcInstance player; protected void openRegistrations() { state = State.REGISTER; final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Random Fight Event will start in 1 minute."); final CreatureSay cs1 = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "To register press ?register"); Broadcast.toAllOnlinePlayers(cs); Broadcast.toAllOnlinePlayers(cs1); ThreadPoolManager.getInstance().scheduleGeneral(new checkRegist(), 60000); } protected void checkRegistrations() { state = State.LOADING; if (players.isEmpty() || players.size() < 2) { final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Random Fight Event will not start cause of no many partitipations, we are sorry."); Broadcast.toAllOnlinePlayers(cs); clean(); return; } final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Amount of players Registed: " + players.size()); final CreatureSay cs1 = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "2 Random players will be choosen in 30 seconds!"); Broadcast.toAllOnlinePlayers(cs); Broadcast.toAllOnlinePlayers(cs1); ThreadPoolManager.getInstance().scheduleGeneral(new pickPlayers(), 30000); } protected void pickPlayers() { if (players.isEmpty() || players.size() < 2) { final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Random Fight Event aborted because no many partitipations, we are sorry."); Broadcast.toAllOnlinePlayers(cs); clean(); return; } for (L2PcInstance p : players) if (p.isInOlympiadMode() || Olympiad.getInstance().isRegistered(p)) { players.remove(p); p.sendMessage("You automatically left from event because of your olympiad obligations."); } int rnd1 = Rnd.get(players.size()); int rnd2 = Rnd.get(players.size()); while (rnd2 == rnd1) rnd2 = Rnd.get(players.size()); for (L2PcInstance player : players) { if (player != players.get(rnd1) && player != players.get(rnd2)) players.remove(player); } final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Players selected: " + players.firstElement().getName() + " || " + players.lastElement().getName()); final CreatureSay cs1 = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Players will be teleported in 15 seconds"); Broadcast.toAllOnlinePlayers(cs); Broadcast.toAllOnlinePlayers(cs1); ThreadPoolManager.getInstance().scheduleGeneral(new teleportPlayers(), 15000); } protected void teleport() { if (players.isEmpty() || players.size() < 2) { final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Random Fight Event aborted because no many partitipations, we are sorry."); Broadcast.toAllOnlinePlayers(cs); clean(); return; } final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Players teleported!"); Broadcast.toAllOnlinePlayers(cs); players.firstElement().teleToLocation(113474, 15552, 3968); players.lastElement().teleToLocation(112990, 15489, 3968); players.firstElement().setTeam(1); players.lastElement().setTeam(2); // para,etc players.firstElement().sendMessage("Fight will begin in 15 seconds!"); players.lastElement().sendMessage("Fight will begin in 15 seconds!"); ThreadPoolManager.getInstance().scheduleGeneral(new fight(), 15000); } protected void startFight() { if (players.isEmpty() || players.size() < 2) { final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "One of the players isn't online, event aborted we are sorry!"); Broadcast.toAllOnlinePlayers(cs); clean(); return; } state = State.FIGHT; final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "FIGHT STARTED!"); Broadcast.toAllOnlinePlayers(cs); players.firstElement().sendMessage("Start Fight!!"); players.lastElement().sendMessage("Start Fight!"); ThreadPoolManager.getInstance().scheduleGeneral(new checkLast(), 120000); } protected void lastCheck() { if (state == State.FIGHT) { if (players.isEmpty() || players.size() < 2) { revert(); clean(); return; } int alive = 0; for (L2PcInstance player : players) { if (!player.isDead()) alive++; } if (alive == 2) { final CreatureSay cs = new CreatureSay(player.getObjectId(), Say2.TRADE, "", "Random Fight ended tie!"); Broadcast.toAllOnlinePlayers(cs); clean(); revert(); } } } public static void revert() { if (!players.isEmpty()) for (L2PcInstance p : players) { if (p == null) continue; if (p.isDead()) p.doRevive(); p.setCurrentHp(p.getMaxHp()); p.setCurrentCp(p.getMaxCp()); p.setCurrentMp(p.getMaxMp()); p.broadcastUserInfo(); p.teleToLocation(82698, 148638, -3473); } } public static void clean() { if (state == State.FIGHT) for (L2PcInstance p : players) p.setTeam(0); players.clear(); state = State.INACTIVE; } protected RandomFight() { ThreadPoolManager.getInstance().scheduleAiAtFixedRate(new Event(), 60000 * Config.EVERY_MINUTES, 60000 * Config.EVERY_MINUTES); } private static class SingletonHolder { protected static final RandomFight _instance = new RandomFight(); } protected class Event implements Runnable { @Override public void run() { if (state == State.INACTIVE) openRegistrations(); } } protected class checkRegist implements Runnable { @Override public void run() { checkRegistrations(); } } protected class pickPlayers implements Runnable { @Override public void run() { pickPlayers(); } } protected class teleportPlayers implements Runnable { @Override public void run() { teleport(); } } protected class fight implements Runnable { @Override public void run() { startFight(); } } protected class checkLast implements Runnable { @Override public void run() { lastCheck(); } } }
  13. with one custom code more is better :) like this <npc id="50006" idTemplate="31228" ShowTitle=false name="Roy the Cat" title="Class Manager">
  14. try use one space on title if not working i can make a extra code for you like "ShowTitle=false"
  15. cadmus file running in 1.7 JDE not in 1.8 By:Luna :)
  16. edo mpenoune atoma se doulies xoris na exoune oute apolitirio dimotikou epidi exoune ena "DINATO MESON" paradigma enas eitane ipalilos stin ΔΕΗ kai katelipse diefthintis se nosokomio ekei exei katandisi i ellada
  17. meson file mou... an to exeis mathenis ta panta kai kaneis ta panta
  18. re pedia ti lete edo tora gia mathimatika kai blakies edo doulepsa 2 xronia texnikos H/Y kai otan teliose i simbasi den ebriska doulia pouthena kai otan epsaxna pernane atoma pou den eixane idea apo ypologistes. paradigma: piga se magazi pou zitagane texnikous H/Y kai edosa sinedefksi kai meta matheno oti pirane alon pou den eixe idea apo ypologistes... gia mena afto einai eleos..
  19. epidi exo keftia sou ftiaxno FREE server jfrozen last rev full fix apo npc mexri kai farm zone. an endiaferese stile pm
  20. for me OVH dedicated game server
  21. i have one rev send me pm for give you link
×
×
  • 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