warc222

crédits: allanalcantara Custom Start Vip Per Day's

Sep 29th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. Index: Config/functions/l2jdemonniac.properties
  2. ===================================================================
  3. --- config/main/altgame.properties (revision 1710)
  4. +++ config/main/altgame.properties (working copy)
  5. @@ -298,6 +298,11 @@
  6. # if True Player Vip gain Xp*VipMulXp and Sp*VipMulSp
  7. # Note only works if player not in party
  8. AllowVipMulXpSp = True
  9. VipMulXp = 2
  10. VipMulSp = 2
  11. VipMulSp = 2
  12. +
  13. +# ---------------------------------------------- #
  14. +# Custom Day for Vip #
  15. +# ---------------------------------------------- #
  16. +# Allow custom Day's Vip
  17. +# Default: False
  18. +AllowCustomStartVip = False
  19. +# Custom Start Days for Vip
  20. +# Default: 1
  21. +CustomStartDays = 1
  22. +
  23. # ----------------
  24. # Section: Summons
  25. # ----------------
  26. Index: head-src/com/l2jdemonniac/Config.java
  27. ===================================================================
  28. --- head-src/com/l2jdemonniac/Config.java (revision 1710)
  29. +++ head-src/com/l2jdemonniac/Config.java (working copy)
  30. @@ -1878,6 +1878,10 @@
  31. // ---------- Summons ---------------------------------------
  32. public static float ALT_GAME_SUMMON_PENALTY_RATE; // Alternative game summon penalty
  33. +
  34. + /** System Day Create char Vip */
  35. + public static boolean ALLOW_CUSTOM_CHAR_VIP;
  36. + public static int CUSTOM_DAY_VIP;
  37. +
  38. //********************************************************************************************
  39. public static void loadAltConfig()
  40. {
  41. @@ -1926,6 +1930,10 @@
  42.  
  43. // ----------- Summmons --------------
  44. ALT_GAME_SUMMON_PENALTY_RATE = Float.parseFloat(altSettings.getProperty("AltSummonPenaltyRate", "1."));
  45. +
  46. + /** System Custom Vip Day Mod By allanalcantara */
  47. + ALLOW_CUSTOM_CHAR_VIP = Boolean.parseBoolean(l2jdemonniacSettings.getProperty("AllowCustomStartVip", "false"));
  48. + CUSTOM_DAY_VIP = Integer.parseInt(l2jdemonniacSettings.getProperty("CustomStartDays", "1"));
  49. +
  50. }
  51. catch (Exception e)
  52. {
  53. Index: head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java
  54. ===================================================================
  55. --- head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java (revision 1710)
  56. +++ head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java (working copy)
  57. @@ -210,6 +225,11 @@
  58.  
  59. newChar.addAdena("Init", Config.STARTING_ADENA, null, false);
  60. }
  61. -
  62. +
  63. + /**
  64. + * @author allanalcantara <L2jDemonniac Dev>
  65. + * @version Kinho! <help assistence>
  66. + * Contato: a.alcantaraa@hotmail.com
  67. + * Mod Exclusivo Acesse: www.allanalcantara.com.br
  68. + */
  69. +
  70. + if (Config.ALLOW_CUSTOM_CHAR_VIP)
  71. + {
  72. + // activeChar.getStat().add(setvip.getName.Config.CUSTOM_DAY_VIP);
  73. + // activeChar.getStat().add(setVipEndTime.getName.Config.CUSTOM_DAY_VIP);
  74. +
  75. + newChar.setVip(true);
  76. + newChar.setVipEndTime(Config.CUSTOM_DAY_VIP);
  77. +
  78. + }
  79. +
  80. Index: head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java
  81. ===================================================================
  82. --- head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java (revision 1710)
  83. +++ head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java (working copy)
  84. @@ -684,6 +688,11 @@
  85.  
  86. activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_COLOR);
  87. }
  88. }
  89. -
  90. -
  91. - if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio())
  92. +
  93. + if(activeChar.isVip())
  94. + {
  95. + activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);
  96. + activeChar.getAppearance().setTitleColor(Config.VIP_TCOLOR);
  97. + {
  98. + activeChar.sendMessage("Vip period end of is " + _daysleft + " days.");
  99. + }
  100. + }
  101. +
  102. + if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio())
  103. /**
Add Comment
Please, Sign In to add comment