dendrinos Posted April 21, 2014 Posted April 21, 2014 [GR]Fysika kai autos ine o skopos tou post , http://thenewboston.org/list.php?cat=31 des edw kapia tutorials arxika. I will update the version in some hours gyes, for fixes, dont forget i made this for practice , so i won't be much fast. ευχαριστώ
Lioy Posted April 21, 2014 Author Posted April 21, 2014 (edited) UPDATED V2 replaced announce with Broadcast.announceToOnlinePlayers fixed @SuppressWarnings shits improved pickplayers() method now announce number of players that registed before pick the 2 random players when i register more than two players, for example three players: http://i.imgur.com/Z54Nm1S.jpg In version 2, i tested with 3 players registed, no problem until now. FOR ANY BUGS , FIXES , YOU KNOW!! Edited April 21, 2014 by Lioy
Lioy Posted April 21, 2014 Author Posted April 21, 2014 problems when there was a tie... FIXED (added new link , although same version) had forgot to add clean() method.
snoz1993 Posted April 21, 2014 Posted April 21, 2014 Asked by discorder25 , made for practice Description: CODE[V2]: http://codecrap.com/content/1229/ Default delay: 3 minutes(it was for test) Configuarable(including reward id,count,allow or no the event and delay) ?register to register ?unregister to unregister Tested(no errors) For bugs: pm me in the forum or let a comment in this topic,thank you. For more code requests pm me , I do this only for pract it works to l2jfrozen ?
WolfGiaS3na Posted April 21, 2014 Posted April 21, 2014 can anyone adapt it to L2j Hi5? i already post adopt changees in 1st page.
nikosdevil20 Posted August 7, 2014 Posted August 7, 2014 (edited) sure i have register 3 ppl and when say in announcement "amount of players registed 3. 2 random players will be choosen in 30 seconds show that error in gs and event dont start, dont say somethnig in announcements not start again Edited August 7, 2014 by nikosdevil20
Lioy Posted August 7, 2014 Author Posted August 7, 2014 i have register 3 ppl and when say in announcement "amount of players registed 3. 2 random players will be choosen in 30 seconds show that error in gs and event dont start, dont say somethnig in announcements not start again Change public static Vector<L2PcInstance> players = new Vector<>(); to : public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>();
Extreamer Posted August 7, 2014 Posted August 7, 2014 Change public static Vector<L2PcInstance> players = new Vector<>(); to : public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>(); This, also you should add a little restriction pony where the char can only fight if he has level 80 or nobless if (!activeChar.isNoble) return true; else if (!activeChar.isNoble() return false; something like that for fun
Napster321 Posted August 7, 2014 Posted August 7, 2014 if (!activeChar.isNoble) return true; else if (!activeChar.isNoble() return false; this is so broken
Extreamer Posted August 7, 2014 Posted August 7, 2014 well "something like that for fun" if (!activeChar.isNoble || activeChar.getClassId().level() == 3) { activeChar.sendMessage("You have successfully registered to the event!"); return true; } else if (!activeChar.isNoble() || activeChar.getClassId().level() < 3) { activeChar.sendMessage("You need to be a nobless and have 3rd prof."); return false; } Sorry napster is that better for you?
Lioy Posted August 7, 2014 Author Posted August 7, 2014 code is old enough to work on it :P if you have any ideas for new unique events , tell me
nikosdevil20 Posted August 7, 2014 Posted August 7, 2014 Change public static Vector<L2PcInstance> players = new Vector<>(); to : public static CopyOnWriteArrayList<L2PcInstance> players = new CopyOnWriteArrayList<>(); i change to this and now i have this error:
Recommended Posts