Initiate Mage
- Joined
- Sep 24, 2011
- Messages
- 1
- Reaction score
- 0
An actual release? In 2015?
A god among men.
A god among men.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
If this is based on Astral 144 ( XeniaDEV )
You might need this
PHP:Swap your getSocketState with this public short getSocketState() { int flag = 0; if (socket1 != -1 || socket2 != -1 || socket3 != -1) { // Got empty sockets show msg flag |= SocketFlag.DEFAULT.getValue(); } if (socket1 != -1) { flag |= SocketFlag.SOCKET_BOX_1.getValue(); } if (socket1 > 0) { flag |= SocketFlag.USED_SOCKET_1.getValue(); } if (socket2 != -1) { flag |= SocketFlag.SOCKET_BOX_2.getValue(); } if (socket2 > 0) { flag |= SocketFlag.USED_SOCKET_2.getValue(); } if (socket3 != -1) { flag |= SocketFlag.SOCKET_BOX_3.getValue(); } if (socket3 > 0) { flag |= SocketFlag.USED_SOCKET_3.getValue(); } return (short) flag; } in Equip.java
So this is what you've been up to. Guess v118 didn't end up working out?
Nice job though, hopefully you can end up getting pretty far on this as I'm curious to see the final result~ Good luck with the project
Had waaay tomany problems getting any redirection method to work for v118. So I decided to do v140+ in order to get that out of the question . Also decided to take an allready updated base, since I still had problems with packets. This source however still has enough packet bugs for me to learn from Allready cleaned up a few.
And that's also why im going to update it to v149.3, since i still want to update a source
Had waaay tomany problems getting any redirection method to work for v118. So I decided to do v140+ in order to get that out of the question . Also decided to take an allready updated base, since I still had problems with packets. This source however still has enough packet bugs for me to learn from Allready cleaned up a few.
And that's also why im going to update it to v149.3, since i still want to update a source
It seems I have the same issue as one friend.. But another one of my friends can connect.. Rip me
Whenever it injects the dll the menu to press play just gives "Maplestory has stopped responding"
I spent over like 3 days of googling and trying things attempting to fix this for a friend.. soo this will be fun
how to Changed exp rates
/*Rates*/
public static boolean fixedRates = true; //use same rates for all worlds
public static final int EXP = 8; //exp rate (only works when fixedRates = true)
public static final int MESO = 5; //meso rate (only works when fixedRates = true)
public static final int DROP = 2; //drop rate (only works when fixedRates = true)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package constants;
import constants.ServerConfig;
/**
*
* @author Itzik
*/
public class WorldConstants {
public static final int gmserver = -1; // -1 = no gm server
/**
*
* [USER=29396]WARNING[/USER]: World will be duplicated if it's the same as the gm server
*/
public static enum WorldOption {
Red(43, 10, 2, 2, (byte) 0, false, false, 19),
Aether(42, 10, 2, 2, (byte) 0, false, false, 19),
Ultimate(41, 1, 1, 1, (byte) 0, false, false, 19),
Phanteon(40, 1, 1, 1, (byte) 0, false, false, 19),
Tempest(39, 1, 1, 1, (byte) 0, false, false, 19),
Raven(38, 1, 1, 1, (byte) 0, false, false, 19), //Translation: Raven
Justice(37, 1, 1, 1, (byte) 0, false, false, 19), //Translation: Justice
Elf(36, 1, 1, 1, (byte) 0, false, false, 19),
Legends(35, 1, 1, 1, (byte) 0, false, false, 19),
Titan(34, 1, 1, 1, (byte) 0, false, false, 19), //Translation: Titan
Chaos2(33, 1, 1, 1, (byte) 0, false, false, 19), //Translation: Chaos
Androa(23, 1, 1, 1, (byte) 0, false, false, 19),
Cosmo(22, 1, 1, 1, (byte) 0, false, false, 19),
Aster(21, 1, 1, 1, (byte) 0, false, false, 19),
Kastia(20, 1, 1, 1, (byte) 0, false, false, 19),
Judis(19, 1, 1, 1, (byte) 0, false, false, 19),
Croa(18, 1, 1, 1, (byte) 0, false, false, 19),
Azwan(17, 1, 1, 1, (byte) 0, false, false, 19),
Regenades(16, 1, 1, 1, (byte) 2, false, false, 20, "New World!"),
Nova(15, 1, 1, 1, (byte) 3, false, false, 20, "World Alliance:\rBellocan, Nova"),
Chaos(14, 1, 1, 1, (byte) 0, false, false, 20, "World Alliance:\rMardia, Kradia,\rYellonde,Chaos"),
Arcania(13, 1, 1, 1, (byte) 1, false, false, 20, "World Alliance:\rDemethos, Galicia, El Nido,\rZenith,Arcania"),
Zenith(12, 1, 1, 1, (byte) 1, false, false, 20, "World Alliance:\rDemethos, Galicia, El Nido,\rZenith,Arcania"),
ElNido(11, 1, 1, 1, (byte) 1, false, false, 20, "World Alliance:\rDemethos, Galicia, El Nido,\rZenith,Arcania"),
Galicia(10, 1, 1, 1, (byte) 1, false, false, 20, "World Alliance:\rDemethos, Galicia, El Nido,\rZenith,Arcania"),
Demethos(9, 1, 1, 1, (byte) 1, false, false, 20, "World Alliance:\rDemethos, Galicia, El Nido,\rZenith,Arcania"),
Yellonde(8, 1, 1, 1, (byte) 0, false, false, 20, "World Alliance:\rMardia, Kradia,\rYellonde,Chaos"),
Kradia(7, 1, 1, 1, (byte) 0, false, false, 20, "World Alliance:\rMardia, Kradia,\rYellonde,Chaos"),
Mardia(6, 1, 1, 1, (byte) 0, false, false, 20, "World Alliance:\rMardia, Kradia,\rYellonde,Chaos"),
Bellocan(5, 1, 1, 1, (byte) 3, false, false, 20, "World Alliance:\rBellocan, Nova"),
Khaini(4, 1, 1, 1, (byte) 0, false, false, 20),
Windia(3, 1, 1, 1, (byte) 0, false, false, 20),
Broa(2, 100, 1000, 3, (byte) 1, false, false, 20, "Fun 100x rates! RBS!"),
Bera(1, 1, 1, 1, (byte) 1, false, false, 20, "Low, GMS like rates!"),
Scania(0, 8, 5, 2, (byte) 3, true, true, 20, "Default world!");
private final int world, exp, meso, drop, channels;
private final byte flag;
private final boolean show, available;
private final String worldtip;
public static final byte recommended = (byte) Red.getWorld(); //-1 = no recommended
public static final String recommendedmsg = " Join " + getById(recommended).name() + ", the newest world! (If you have friends who play, consider joining their world instead. Characters can`t move between worlds.)";
WorldOption(int world, byte flag, boolean show, int channels) {
this.world = world;
this.exp = (ServerConfig.fixedRates ? ServerConfig.EXP : 8);
this.meso = (ServerConfig.fixedRates ? ServerConfig.MESO : 5);
this.drop = (ServerConfig.fixedRates ? ServerConfig.DROP : 2);
this.flag = flag;
this.show = show;
this.available = show;
this.channels = channels;
this.worldtip = "";
}
WorldOption(int world, int exp, int meso, int drop, byte flag, boolean show, boolean available, int channels) {
this.world = world;
this.exp = (ServerConfig.fixedRates ? ServerConfig.EXP : exp);
this.meso = (ServerConfig.fixedRates ? ServerConfig.MESO : meso);
this.drop = (ServerConfig.fixedRates ? ServerConfig.DROP : drop);
this.flag = flag;
this.show = show;
this.available = available;
this.channels = channels;
this.worldtip = "";
}
WorldOption(int world, int exp, int meso, int drop, byte flag, boolean show, boolean available, int channels, String worldtip) {
this.world = world;
this.exp = (ServerConfig.fixedRates ? ServerConfig.EXP : exp);
this.meso = (ServerConfig.fixedRates ? ServerConfig.MESO : meso);
this.drop = (ServerConfig.fixedRates ? ServerConfig.DROP : drop);
this.flag = flag;
this.show = show;
this.available = available;
this.channels = channels;
this.worldtip = worldtip;
}
public int getWorld() {
return world;
}
public int getExp() {
return exp;
}
public int getMeso() {
return meso;
}
public int getDrop() {
return drop;
}
public byte getFlag() {
return flag;
}
public boolean show() {
return show;
}
public boolean isAvailable() {
return available;
}
public int getChannelCount() {
return channels;
}
public String getWorldTip() {
return worldtip;
}
public static WorldOption getById(int g) {
for (WorldOption e : WorldOption.values()) {
if (e.world == g) {
return e;
}
}
return null;
}
public static WorldOption getByName(String g) {
for (WorldOption e : WorldOption.values()) {
if (e.toString().equals(g)) {
return e;
}
}
return null;
}
public static boolean isExists(int id) {
return getById(id) != null;
}
}
public static String getNameById(int serverid) {
if (!WorldOption.isExists(serverid)) {
System.out.println("World doesn't exists exception. ID: " + serverid);
return "";
}
return WorldOption.getById(serverid).name();
}
public static enum TespiaWorldOption {
Red("t43", 1, 1, 1, (byte) 0, true, true, 19),
Aether("t42", 1, 1, 1, (byte) 0, true, true, 19),
Ultimate("t41", 1, 1, 1, (byte) 0, true, false, 19),
Phanteon("t40", 1, 1, 1, (byte) 0, true, false, 19),
Tempest("t39", 1, 1, 1, (byte) 0, true, false, 19),
Raven("t38", 1, 1, 1, (byte) 0, false, false, 19), //Translaition: Raven
Justice("t37", 1, 1, 1, (byte) 0, false, false, 19), //Translaition: Justice
Elf("t36", 1, 1, 1, (byte) 0, false, false, 19), //Translaition: Elf
Legend("t35", 1, 1, 1, (byte) 0, false, false, 19), //Translaition: Legend
T34("t34", 1, 1, 1, (byte) 0, false, false, 19),
T33("t33", 1, 1, 1, (byte) 0, false, false, 19),
Androa("t32", 1, 1, 1, (byte) 0, false, false, 19),
Cosmo("t31", 1, 1, 1, (byte) 0, false, false, 19),
Nova("t30", 1, 1, 1, (byte) 0, false, false, 19),
Broa("t3", 1, 1, 1, (byte) 0, false, false, 19), //Translation: Broa
Bera("t2", 1, 1, 1, (byte) 0, false, false, 19), //Translation: Bera
Scania("t1", 1, 1, 1, (byte) 0, false, false, 19), //Translation: Scania
Tespia("t0", 1, 1, 1, (byte) 0, true, false, 19);
private final int exp, meso, drop, channels;
private final byte flag;
private final String world;
private final boolean show, available;
public static final String recommended = "t0";
public static final String recommendedmsg = " Join " + getById(recommended).name() + ", the newest world! (If youhave friends who play, consider joining their worldinstead. Characters can`t move between worlds.)";
TespiaWorldOption(String world, int exp, int meso, int drop, byte flag, boolean show, boolean available, int channels) {
this.world = world;
this.exp = exp;
this.meso = meso;
this.drop = drop;
this.flag = flag;
this.show = show;
this.available = available;
this.channels = channels;
}
public String getWorld() {
return world;
}
public int getExp() {
return exp;
}
public int getMeso() {
return meso;
}
public int getDrop() {
return drop;
}
public byte getFlag() {
return flag;
}
public boolean show() {
return show;
}
public boolean isAvailable() {
return available;
}
public int getChannelCount() {
return channels;
}
public static TespiaWorldOption getById(String g) {
for (TespiaWorldOption e : TespiaWorldOption.values()) {
if (e.world.equals(g)) {
return e;
}
}
return null;
}
public static TespiaWorldOption getByName(String g) {
for (TespiaWorldOption e : TespiaWorldOption.values()) {
if (e.name().equals(g)) {
return e;
}
}
return null;
}
public static boolean isExists(String id) {
return getById(id) != null;
}
}
public static String getTespiaNameById(String serverid) {
if (!TespiaWorldOption.isExists(serverid)) {
System.out.println("Tespia World doesn't exists exception. ID: " + serverid);
return "";
}
return TespiaWorldOption.getById(serverid).name();
}
}
I compiled in netbeans and everything worked and I copied it to my dist folder but when I run the server I get the "Could not find or load main class server.Start". What did I do wrong?
Nevermind, fixed it. I changed the user "administrator" in launch.bat to my own and it works now.
Ok, everything works except for iRedirectorX. I get the error that it fails to initialize even when I run it as admin. What's the issue?
If there's anything else i can help with I'd be glad to help