Jump to content

Fanky

Legendary Member
  • Posts

    7,281
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Fanky

  1. May I ask something? Why someone must be UNDER 18?
  2. can you provide some more informations/stuff about this feature?I want some fresh ideas and I currently lack of
  3. You should learn how to use arrays,it would help you a lot.
  4. you are right,I didnt noticed it
  5. 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
  6. near the 'console' there is another field called 'problems' press on this,and get a picture
  7. 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
  8. Posted 25 November 2014 - 05:22 PM
  9. Πάνε οι καλες εποχές :D
  10. did you even checked the date? lol
  11. only maxtor can help you with this issue
  12. srsly? all these replies & 3 pages for one line of code? are you serious?
  13. Υπάρχουν αρκετά τέτοια npc shared,γιατι δεν ψάχνεις λιγο;
  14. τι εκανες εκει..;; requestrestartpoint.java - loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + loc = new Location(X, Y, Z);
  15. Δεν κατάλαβα το δεύτερο μέρος,θες να το εξηγήσεις καλύτερα;; ' Επειτα να επιστρεφει σε ενα HTML περνωντας τις τιμες απο την βαση δεδομενων.'
  16. L2GrandBossInstance
  17. by 'custom' you mean a totally new weapon? because,in that case,your request has nothing to do with java side
  18. client/project/rev
  19. http://www.maxcheaters.com/topic/66224-share-siege-end-reward-system/?hl=%2Bsiege+%2Breward you should try this
  20. dude changing some packets doesn't make your idea unique nor different.. no offense
  21. Ι can assure you,i wasn't. I'm telling you the truth,I admire your imagination.
  22. lol i was always admiring your imagination, I wish I had such imagination >>>
  23. tbh,didn't saw the adena part lol,i'm sorry just finished something and I'm too exhausted.
×
×
  • 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