Advertisement
Axelut

Welcome PM message

Sep 15th, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. Index: /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/Config.java
  2. ===================================================================
  3. --- /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/Config.java (revision 5)
  4. +++ /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/Config.java (revision 23)
  5. @@ -1646,4 +1646,8 @@
  6.  
  7. public static boolean SHOW_HTML_WELCOME;
  8. + public static boolean SHOW_WELCOME_PM;
  9. + public static String PM_FROM;
  10. + public static String PM_TEXT1;
  11. + public static String PM_TEXT2;
  12.  
  13. /** Chat filter */
  14. @@ -3416,4 +3420,8 @@
  15. .getProperty("AllowLowLevelTrade", "True"));
  16. SHOW_HTML_WELCOME = Boolean.parseBoolean(L2dotSettings.getProperty("ShowWelcomeHTML", "False"));
  17. + SHOW_WELCOME_PM = Boolean.parseBoolean(L2dotSettings.getProperty("ShowWelcomePM", "False"));
  18. + PM_FROM = L2dotSettings.getProperty("PMFrom", "Server");
  19. + PM_TEXT1 = L2dotSettings.getProperty("PMText1", "Welcome to our server");
  20. + PM_TEXT2 = L2dotSettings.getProperty("PMText2", "Visit our web http://Your.Web.Adress");
  21. ALLOW_POTS_IN_PVP = Boolean.parseBoolean(L2dotSettings
  22. .getProperty("AllowPotsInPvP", "True"));
  23. Index: /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/network/clientpackets/EnterWorld.java
  24. ===================================================================
  25. --- /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/network/clientpackets/EnterWorld.java (revision 5)
  26. +++ /trunk/L2J-Mack_IL/L2J-Mack_GameServer/java/com/l2dot/gameserver/network/clientpackets/EnterWorld.java (revision 23)
  27. @@ -58,4 +58,5 @@
  28. import com.l2dot.gameserver.model.quest.Quest;
  29. import com.l2dot.gameserver.network.SystemMessageId;
  30. +import com.l2dot.gameserver.network.serverpackets.CreatureSay;
  31. import com.l2dot.gameserver.network.serverpackets.Die;
  32. import com.l2dot.gameserver.network.serverpackets.EtcStatusUpdate;
  33. @@ -323,4 +324,13 @@
  34. sendPacket(html);
  35. }
  36. +
  37. + if (Config.SHOW_WELCOME_PM)
  38. + {
  39. + CreatureSay np = new CreatureSay(0, Say2.TELL,Config.PM_FROM,Config.PM_TEXT1);
  40. + CreatureSay na = new CreatureSay(0, Say2.TELL,Config.PM_FROM,Config.PM_TEXT2);
  41. + activeChar.sendPacket(np);
  42. + activeChar.sendPacket(na);
  43. + }
  44. +
  45. }
  46.  
  47. Index: /trunk/L2J-Mack_IL/L2J-Mack_GameServer/config/l2dot.properties
  48. ===================================================================
  49. --- /trunk/L2J-Mack_IL/L2J-Mack_GameServer/config/l2dot.properties (revision 11)
  50. +++ /trunk/L2J-Mack_IL/L2J-Mack_GameServer/config/l2dot.properties (revision 23)
  51. @@ -39,4 +39,10 @@
  52. # Show Welcome.htm When a Player Enters Lineage 2 World?
  53. ShowWelcomeHTML = True
  54. +
  55. +# Show Welcome PM on start
  56. +ShowWelcomePM = True
  57. +PMFrom = L2JMack
  58. +PMText1 = Welcome to server
  59. +PMText2 = Bem Vindo ao Server
  60.  
  61. # -------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement