Jump to content

Fanky

Legendary Member
  • Posts

    7,281
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Fanky

  1. download this -> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html then, open eclipse -> windows -> preferences -> expand 'java' -> press 'search' -> find the java folder(C:/program files or C:/program files (x86) ) and then choose this should do the trick
  2. δείξε μας το error που σου βγάζει.
  3. May I ask something? Why someone must be UNDER 18?
  4. can you provide some more informations/stuff about this feature?I want some fresh ideas and I currently lack of
  5. You should learn how to use arrays,it would help you a lot.
  6. you are right,I didnt noticed it
  7. nice! =) As I said for something like that - i mean such small and easy2do codes - there isn't any reason to make your life harder.Just use the existing methods and you are done. gl in your next ones
  8. near the 'console' there is another field called 'problems' press on this,and get a picture
  9. it won't work,lol.check the way he created the method he calls. baggos,there's no reason to make your life harder by doing all these(which doesn't work btw) stuff for something simple. check below,for such a code you need just a simple check in the place that pvps are increased,nothing else. ### Eclipse Workspace Patch 1.0 #P gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 42) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4811,6 +4811,18 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + if (getPvpKills() == 100) + { + if (!isMageClass()) + { + addItem("PvP Reward", Config.REWARD_FIGHTER_ID, Config.REWARD_FIGHTER_COUNT, this, true); + sendMessage("You've been rewarded with a fighter tattoo"); + } + else + { + addItem("PvP Reward", Config.REWARD_MAGE_ID, Config.REWARD_MAGE_COUNT, this, true); + sendMessage("You've been rewarded with a mage tatoo"); + } + } + PvpPkColorSystem.getInstance().checkPvpColors(this); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 41) +++ java/net/sf/l2j/Config.java (working copy) @@ -422,6 +422,11 @@ /** Buffs */ public static boolean STORE_SKILL_COOLTIME; public static byte BUFFS_MAX_AMOUNT; + + public static int REWARD_FIGHTER_ID; + public static int REWARD_FIGHTER_COUNT; + public static int REWARD_MAGE_ID; + public static int REWARD_MAGE_COUNT; //-------------------------------------------------- // Server @@ -1134,6 +1139,10 @@ BUFFS_MAX_AMOUNT = Byte.parseByte(players.getProperty("MaxBuffsAmount","20")); STORE_SKILL_COOLTIME = Boolean.parseBoolean(players.getProperty("StoreSkillCooltime", "true")); + REWARD_FIGHTER_ID = Integer.parseInt(players.getProperty("RewardFighterID","1")); + REWARD_FIGHTER_COUNT = Integer.parseInt(players.getProperty("RewardFightCount","2")); + REWARD_MAGE_ID = Integer.parseInt(players.getProperty("RewardMageId","3")); + REWARD_MAGE_COUNT = Integer.parseInt(players.getProperty("RewardMageCount","4")); } catch (Exception e) { Index: config/players.properties =================================================================== --- config/players.properties (revision 41) +++ config/players.properties (working copy) @@ -310,4 +310,10 @@ MaxBuffsAmount = 20 # Store buffs/debuffs on user logout? -StoreSkillCooltime = True \ No newline at end of file +StoreSkillCooltime = True + +#Class Based pvp reward at 100 pvps +RewardFighterID = 1 +RewardFighterCount = 2 +RewardMageID = 3 +RewardMageCount = 4 \ No newline at end of file
  10. Posted 25 November 2014 - 05:22 PM
  11. Πάνε οι καλες εποχές :D
  12. did you even checked the date? lol
  13. only maxtor can help you with this issue
  14. srsly? all these replies & 3 pages for one line of code? are you serious?
  15. Υπάρχουν αρκετά τέτοια npc shared,γιατι δεν ψάχνεις λιγο;
  16. τι εκανες εκει..;; requestrestartpoint.java - loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + loc = new Location(X, Y, Z);
  17. Δεν κατάλαβα το δεύτερο μέρος,θες να το εξηγήσεις καλύτερα;; ' Επειτα να επιστρεφει σε ενα HTML περνωντας τις τιμες απο την βαση δεδομενων.'
  18. L2GrandBossInstance
  19. by 'custom' you mean a totally new weapon? because,in that case,your request has nothing to do with java side
  20. client/project/rev
  21. http://www.maxcheaters.com/topic/66224-share-siege-end-reward-system/?hl=%2Bsiege+%2Breward you should try this
  22. dude changing some packets doesn't make your idea unique nor different.. no offense
  23. Ι can assure you,i wasn't. I'm telling you the truth,I admire your imagination.
  24. lol i was always admiring your imagination, I wish I had such imagination >>>
×
×
  • Create New...