Advertisement
Nik

X50 Settings

Nik
Mar 10th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.67 KB | None | 0 0
  1. Index: custom/X50Settings/X50Settings.java
  2. ===================================================================
  3. --- custom/X50Settings/X50Settings.java (revision 0)
  4. +++ custom/X50Settings/X50Settings.java (revision 0)
  5. @@ -0,0 +1,52 @@
  6. +/*
  7. + * This program is free software: you can redistribute it and/or modify it under
  8. + * the terms of the GNU General Public License as published by the Free Software
  9. + * Foundation, either version 3 of the License, or (at your option) any later
  10. + * version.
  11. + *
  12. + * This program is distributed in the hope that it will be useful, but WITHOUT
  13. + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  14. + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  15. + * details.
  16. + *
  17. + * You should have received a copy of the GNU General Public License along with
  18. + * this program. If not, see <http://www.gnu.org/licenses/>.
  19. + */
  20. +package custom.X50Settings;
  21. +
  22. +import com.l2jserver.gameserver.model.actor.L2Npc;
  23. +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
  24. +import com.l2jserver.gameserver.model.quest.Quest;
  25. +
  26. +/**
  27. + *
  28. + * @author Nik
  29. + */
  30. +
  31. +public class X50Settings extends Quest
  32. +{
  33. +   public X50Settings(int questId, String name, String descr)
  34. +   {
  35. +       super(questId, name, descr);
  36. +      
  37. +       setOnEnterWorld(true);
  38. +   }
  39. +  
  40. +   @Override
  41. +   public String onEnterWorld(L2PcInstance player)
  42. +   {
  43. +       player.setLang("enx50");
  44. +       return null;
  45. +   }
  46. +  
  47. +   @Override
  48. +   public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  49. +   {
  50. +       return null;
  51. +   }
  52. +  
  53. +   public static void main(String[] args)
  54. +   {
  55. +       new X50Settings(-1, "EnterWorldQuest", "custom");
  56. +   }
  57. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement