Jump to content

bravetobe

Members
  • Posts

    897
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by bravetobe

  1. http://downloadmoreram.com/ sad storka :(
  2. i have scripts and i hack serber easy.pm me
  3. if(standUp && !isInTvT()){ standUp(); ... } Can someone explain me this? He is standUp() already ,so whats the point of it? Also if(isFakeDeath()){ breakFakeDeath(); } Since u standUp(),why do u check if he has fakeDeath? Being is fakeDeath means that he isnt standUp,and the first if confirmed that he is standUp +u used standUp above,which means its always false.. Any explaination?
  4. u have 5 teams and 2 of them have the highest same score... Both have to get rewards-claim the winner title. so,based in what he wants to do(get the ID),he might need 2 ids (e.g stored in array and return it instead of int and thats a simple solution or "check for more than 1" -> more code).I m pretty sure that there is something better in l2j but IDC :dat: Easy stuff without "l2j" knowledge. Sry no l2j here ,i m jealous ... no i m not YDB Kappa
  5. public int compareTo(EventTeam second) { if (getScore() > second.getScore()) return 1; else if (getScore() < second.getScore()) return -1; return 0; } protected int getScore() { return score; } protected int getId() { return id; } There is code already which u can use instead of code something that u saw in ur sleep or something Since i dont code things in l2j,i will try to make it as simple as i can tho (what i would do): If its supposed to be more than X teams (x >>2): Track down the team with the highest score.Since i dont know what kind of collection is this,dunno whats more efficient(dunno the methods but it looks like hashmap or what...arraylist fanboy). Copy the team with the highest score into an object,and later on get the id.That might be the most easy way. OR set highestScore=0 id =0,compare score that each team's score and if it has higher score than that,save the id and after the loop return it. If its supposed to be with 2 teams: Just get their scores and return the id. Thats my prespective.No coding in l2j tho Kappa - Editted several times to clarify how u can actually code it- gl P.S thats w/o 2 team same score.if 2 teams have same score,it becomes more tricky.
  6. Old code?I cant really believe that someone coded that thing and he actually decided to get that code and actually use it... Besides,i dont want to see 1 more "BALANCED" server around + 1 more nazi admin in his own stupid forum who bans people Kappa.Also,me + one other dude told him 2 different ways to code that decently. No haterino,make spaghettirino,plz make me cappucino
  7. hey grill,ur dick is in plain sight :dat:
  8. seriously,i reported him. He has getScore() and compareTo(EventTeam second) but he wants to create a new sh1tcode, use unnecessary ArrayList and after that,he wants to ... He doesnt use anything properly ... Just report them or get 2 condoms for ur eyes
  9. Dont solve his problem and let him code something not sh1tty like he did. He got reported anyway "What to add instead of getFirst() "... tfw he doesnt know how to get(0) and he cant think that he can actually use the code which already exists
  10. wtf is this trash code... Just tell me that u dont do these things to check the scores of 2 teams.. Edit: There is a whole COMPARETO why make that sh1tty code to get the winner anyway.
  11. Leave him a message into mxc,he might get email
  12. without defending anyone: OP comes with an old leeched code asking for help.People discussed about it and suggested several things. After his latest post about debugging and adding prints after every other line,this is a NO NO anymore. That dude might open a server and become an owner of a BALANCED server.The community has to stop encourage that kind of stupids from keep going. Just imagine if most of the servers had experienced admins/devs with a decent background.Both admins/community would have fun and they wouldnt complain around for a "dead game"/"stupid community"/"1 week servers only for donations". Even if someone has "decent knowledge"* in Java,that doesnt mean he is able to jump into l2j developing and he is ready to make his own BALANCED server. *Decent i mean knowing the basics/basics in designing and analysis of algorithms/his code has decent flow not spaghetti-readable code
  13. My reaction: https://www.youtube.com/watch?v=X6Hc3au_t8E#t=1m08s
  14. Java "1".Maybe 3rd lesson Thank god,it doesnt have gdb. ban him
  15. debug what? } } } } u cannot imagine how much this bullsh1t above hurts my eyes
×
×
  • Create New...