Jump to content

Lioy

Members
  • Posts

    408
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Lioy

  1. posa psixologika exeis re filos? euxome na pethaneis mesa apo ti kardia mou
  2. Pm me with your skype.
  3. yes normally <?php //ccode ?> everywhere you want in the body (or even head) save file as .php
  4. KAPPA
  5. se kovw apo ta atoma pou paraponiountai oti den mporoun na kanoun dyes enw exoun 1 sto inventory kirie nane
  6. Thanks :) Give it a try
  7. You will need checks for warehouse,clan wh too in that way because it could be bugged. Better destroy the item when the clan loses the siege
  8. "message" is a static String , you want to put your message String variable without the quotes
  9. activeChar.getName() + " message" -> activeChar.getName() , message 1st parameter is obejctid 2st parameter is textype 3rd parameter is character 4nd parameter is the message
  10. p instead of activeChar. Anyway atm i have some work to finish and I will reply assap
  11. Why to 'spamm' your community like that?
  12. Glad to hear that , what exactly you mean?
  13. Well I don't know how your project is organised because I use most times Interlude client projects. But I quess it's easy to addapt it .
  14. Adapt it in your project man , code is working perfectly. (tested)
  15. KAMENOS OS TO KOKALO L2 NERD xD
  16. package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.base.ClassRace; import net.sf.l2j.gameserver.network.clientpackets.Say2; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; public class RaceCommand implements IVoicedCommandHandler { private static final Map<String,ClassRace> raceCom= new HashMap<>(); @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) { ClassRace charRace = activeChar.getRace(); String commandTo = null; for(String comm : raceCom.keySet()) if(charRace == raceCom.get(comm)) commandTo = comm; if(params==null) return false; if(pureEquals(command,commandTo)) { for(L2PcInstance p : L2World.getInstance().getPlayers()) { if(p.getRace() == charRace) p.sendPacket(new CreatureSay(activeChar.getObjectId(),Say2.ALLIANCE,activeChar.getName(),params)); } } return true; } private static boolean pureEquals(String command,String wat) { return new StringTokenizer(command).nextToken().equals(wat)? true :false; } @Override public final String[] getVoicedCommandList() { raceCom.put("d", ClassRace.DWARF); raceCom.put("de", ClassRace.DARK_ELF); raceCom.put("e", ClassRace.ELF); raceCom.put("h", ClassRace.HUMAN); raceCom.put("o", ClassRace.ORC); return raceCom.keySet().toArray(new String[raceCom.size()]); } } Dont forget to register the command
  17. told you a better method but you didn't accept it :D anyway let me do this and post it in some hour i am busy atm. true
  18. 6 days left!!
  19. you can add it on classes templates. you can add it also on charactercreate (if it's just one skill or two it's a faster option)
  20. lathos insert stin Db logika , mipos lipoun columns apo characters.sql?
  21. I am in my smartphone :D
  22. Using .e or .d or whatever is stupid , not only for you but for players also. Make something like .race Message (so all the races type the same command) . public static void toRacePlayers(L2PcInstance p, String msg) { for (L2PcInstance player : L2World.getInstance().getPlayers()) { if (player==p) continue; if(player.getRace().equals(p.getRace())) player.sendMessage(msg);//or sendpacket creaturesay whatever } } Same method in all cases , non repeatable code , better performance , better for players.
  23. a static method on broadcast.java would be better.
  24. OVH. What's your players online number goal? Don't even think about your 3rd option.
  25. Waiting you there :) Automated daily clan vs clan event is coming soon. It's hour will be static at 18:00 GMT+2 every day and it will last 1 hour. The clan with the most kills will win. Reward is under thinking :) (propably 1 hero coin + all the fun that players love clan vs clan wars) . All clans will have an opportunity to win! That's the last feature of L2Smart that is under maintenance.
×
×
  • Create New...