קראתי מדריך באינטרנט לבניית שרת v83 ונוצרה לי בעייה בהגדרת השרת..
רשום לי ככה:
עכשיו צריך להגדיר את ה סורס
ניכנסים לתיקייה של הריפאק,ומישם ל - Src>Constants>Server Constants.java
ותפתחו את זה אם Notepad / כתבן
וזה אמור להראות משהו כזה :
ופשוט תערכו את כל מה שברצונכם בשרת כמו Exp/Drop/Worldsקוד:/*This file is part of the OdinMS Maple Story ServerCopyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>Matthias Butz <matze@odinms.de>Jan Christian Meyer <vimes@odinms.de>This program is free software: you can redistribute it and/or modifyit under the terms of the GNU Affero General Public License aspublished by the Free Software Foundation version 3 as published bythe Free Software Foundation. You may not use, modify or distributethis program under any other version of the GNU Affero General PublicLicense.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public Licensealong with this program. If not, see <http://www.gnu.org/licenses/>. */package constants;public class ServerConstants {// Rate Configurationpublic static int EXP_RATE = 500; public static int MESO_RATE = 250; public static final byte DROP_RATE = 1; public static final byte BOSS_DROP_RATE = 1;// ExpModepublic static int EM_EXP_RATE = 1000; public static byte EM_MESO_RATE = 50; public static final byte EM_DROP_RATE = 2; public static final byte EM_BOSS_DROP_RATE = 3; // MesoModepublic static byte MM_EXP_RATE = 50; public static int MM_MESO_RATE = 1000; public static final byte MM_DROP_RATE = 3; public static final byte MM_BOSS_DROP_RATE = 3;// DropModepublic static byte DM_EXP_RATE = 50; public static byte DM_MESO_RATE = 50; public static final byte DM_DROP_RATE = 7; public static final byte DM_BOSS_DROP_RATE = 3;// Custom Configuration public static final byte NX_GAIN = 15; public static final byte NW_NX_GAIN = 75;// Login Configurationpublic static final byte NUM_WORLDS = 1; public static final byte FLAG = 2; public static final int CHANNEL_NUMBER = 2; public static final int CHANNEL_LOAD = 50; public static final String EVENT_MESSAGE = "ServerName v83"; public static final String SERVER_NAME = "ServerName v83"; public static final long RANKING_INTERVAL = 3600000; public static final boolean IS_TEST = false; public static final boolean enableCooldowns = true;// Channel Configurationpublic static String SERVER_MESSAGE = "Welcome to ServerName v83 "; public static final String EVENTS = "OmegaPQ TTPQ automsg BossQuest";// IP Configurationpublic static String HOST = "127.0.0.1";// Debug Configurationpublic static final boolean DEBUG = false;// Database Configurationpublic static String url = "jdbc:mysql://localhost:3306/shootsource?autoReconnect=true"; public static String user = "root"; public static String password = "";}
וכמובן שתשנו את הIP ושם מישתמש וסיסמא ל Sql במידה ושיניתם
עכשיו במדריך הוא עבד על הריפאק LocalMS נראה לי,ומהסיבה הזאתי יכול ליהיות שזה שונה כי הקובץ ServerConstans.java אצלי מחסירים בו הרבה דברים..
הוא ככה בכלל:
/*אשמח לקבל בזה עזרה,תודה!קוד:This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 as published by the Free Software Foundation. You may not use, modify or distribute this program under any other version of the GNU Affero General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ package constants; public class ServerConstants { public static short VERSION = 83; public static String[] WORLD_NAMES = {"Scania", "Bera", "Broa", "Windia", "Khaini", "Bellocan", "Mardia", "Kradia", "Yellonde", "Demethos", "Galicia", "El Nido", "Zenith", "Arcenia", "Kastia", "Judis", "Plana", "Kalluna", "Stius", "Croa", "Medere"};; // Rate Configuration public static final byte QUEST_EXP_RATE = 4; public static final byte QUEST_MESO_RATE = 3; // Login Configuration public static final int CHANNEL_LOAD = 150;//Players per channel public static final long RANKING_INTERVAL = 3600000; public static final boolean ENABLE_PIC = true; //Event Configuration public static final boolean PERFECT_PITCH = false; public static final String EVENTS = "automsg KerningPQ Boats Subway AirPlane elevator"; // IP Configuration public static final String HOST = "localhost"; //Database Configuration public static final String DB_URL = "jdbc:mysql://localhost:3306/MoopleDEV?autoReconnect=true"; public static final String DB_USER = "root"; public static final String DB_PASS = ""; }



ציטוט ההודעה


