Welcome to the RaGEZONE - MMORPG development forums.

[Help] SXMaple for all

This is a discussion on [Help] SXMaple for all within the Help forums, part of the Java Based (Odin) category; SP Problem : PHP Code: Yes  ,  they mentioned that I have to replace the 1 in SXMaple with TetraSEA  ,  but the problem is that I didn 't know where to get it from ? O.O I search TetraSEA with the word "SP" , but all the SP is the same as the 1 in SXMaple , so Im confused on where is the correct SP to use for SXMaple .  Seal Animation : PHP Code: When zakum all that seal me  ,  there will not have any animation above our head  ,  ...

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 40
  1. #16
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    SXMaple SP problem and Seal Animation

    Click
    SP Problem :
    PHP Code:
    Yes they mentioned that I have to replace the 1 in SXMaple with TetraSEA but the problem is that I didn't know where to get it from ? O.O I search TetraSEA with the word "SP" , but all the SP is the same as the 1 in SXMaple , so Im confused on where is the correct SP to use for SXMaple . 
    Seal Animation :
    PHP Code:
    When zakum all that seal me there will not have any animation above our head we won't know that we have been sealed until we are not able to attack . Anywhere to solve the animation thing ? O.O
    The same goes to poison and etc . 

  2. #17
    Member
    Rank
    Member
    Join Date
    May 2012
    Posts
    29
    Liked
    0

    Re: [Help] SXMaple for all

    Hmmmm okay , since you from Singapore do u know a VPS/Dedicated Server cost?

  3. #18
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    Quote Originally Posted by iPastel View Post
    Hmmmm okay , since you from Singapore do u know a VPS/Dedicated Server cost?
    1gb VPS cost 18 SGD .

  4. #19
    Member
    Rank
    Member
    Join Date
    May 2012
    Posts
    29
    Liked
    0

    Re: [Help] SXMaple for all

    How much GB is the maximum
    and i from Msia
    do it can buy from IT shop?

  5. #20
    Member
    Rank
    Member
    Join Date
    Sep 2010
    Location
    Singapore, Sing
    Posts
    71
    Liked
    7

    Re: [Help] SXMaple for all

    Fine u guys dont understand, I shall tell u how to do :/

    My sessionopened in MapleServerHandler

    PHP Code:
    @Override
        
    public void sessionOpened(final IoSession sessionthrows Exception {
            
    // Start of IP checking
            
    final String address session.getRemoteAddress().toString().split(":")[0];

            if (
    BlockedIP.contains(address)) {
                
    session.close(true);
                return;
            }
            final 
    Pair<LongBytetrack tracker.get(address);

            
    byte count;
            if (
    track == null) {
                
    count 1;
            } else {
                
    count track.right;

                final 
    long difference System.currentTimeMillis() - track.left;
                if (
    difference 2000) { // Less than 2 sec
                    
    count++;
                } else if (
    difference 20000) { // Over 20 sec
                    
    count 1;
                }
                if (
    count >= 10) {
                    
    BlockedIP.add(address);
                    
    tracker.remove(address); // Cleanup
                    
    session.close(true);
                    return;
                }
            }
            
    tracker.put(address, new Pair<LongByte>(System.currentTimeMillis(), count));
            
    // End of IP checking.
            
    String IP address.substring(address.indexOf('/') + 1address.length());
            
    System.out.println("Session with " IP " opened.");
            if (
    channel > -1) {
                if (
    ChannelServer.getInstance(channel).isShutdown()) {
                    
    session.close(true);
                    return;
                }

            } else if (
    cs) {
                if (
    CashShopServer.isShutdown()) {
                    
    session.close(true);
                    return;
                }
            } else {
                if (
    LoginServer.isShutdown()) {
                    
    session.close(true);
                    return;
                }
            }
            final 
    byte serverRecv[] = new byte[]{(byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255)};
            final 
    byte serverSend[] = new byte[]{(byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255)};
            final 
    byte ivRecv[] = serverRecv;
            final 
    byte ivSend[] = serverSend;
            final 
    boolean fixed = (ServerConstants.isHost(address));

            final 
    MapleClient client = new MapleClient(
                    new 
    MapleAESOFB(ivSend, (short) (0xFFFF ServerConstants.MAPLE_VERSION)), // Sent Cypher
                    
    new MapleAESOFB(ivRecvServerConstants.MAPLE_VERSION), // Recv Cypher
                    
    session);
            
    client.setChannel(channel);

            
    MaplePacketDecoder.DecoderState decoderState = new MaplePacketDecoder.DecoderState();
            
    session.setAttribute(MaplePacketDecoder.DECODER_STATE_KEYdecoderState);


            
    session.write(LoginPacket.getHello(ServerConstants.MAPLE_VERSIONserverSendserverRecvfixedclient));
            
    //System.out.println("GETHELLO SENT TO " + address + "; fixed = " + fixed);
            
    session.setAttribute(MapleClient.CLIENT_KEYclient);

           
                
    RecvPacketOpcode.reloadValues();
                
    SendPacketOpcode.reloadValues();
            

        } 
    My getHello

    PHP Code:
    public static byte[] getHello(final short mapleVersion, final byte[] sendIv, final byte[] recvIvboolean fixed, final MapleClient c) {
            final 
    MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(15 ServerConstants.MAPLE_PATCH.length());

            
    mplew.writeShort(13 ServerConstants.MAPLE_PATCH.length()); // length of the packet
            
    mplew.writeShort(mapleVersion);
            
    mplew.writeMapleAsciiString(ServerConstants.MAPLE_PATCH);
            
    mplew.write(recvIv);
            
    mplew.write(sendIv);
            
    mplew.write(fixed 5); // 7 = MSEA, 8 = GlobalMS, 5 = Test Server
            
    return mplew.getPacket();
        } 
    In serverconstants add

    PHP Code:
    public static String Host_IP "203.188.239.82"
    and

    PHP Code:
    public static boolean isHost(final String sessionIP){
            return (
    sessionIP.contains(Host_IP));
        } 
    Look at attachment

    YOU CAN CONNECT USING HOST
    Attached Thumbnails Attached Thumbnails untitled.png  

  6. #21
    Member
    Rank
    Member
    Join Date
    May 2012
    Posts
    29
    Liked
    0

    Re: [Help] SXMaple for all

    when reach the ServerConstants I dont know how do d ><

    where to add this >>>
    PHP Code:
    public static String Host_IP "203.188.239.82"
    Code:
    static {
            localhostIP.add("203.116.196.8");
            localhostIP.add("my wan IP");
    //        localhostIP.add("8.31.98.52");
    //        localhostIP.add("8.31.98.53");
    //        localhostIP.add("8.31.98.54");
    And this also , where to add it ><
    PHP Code:
    public static boolean isHost(final String sessionIP){ 
            return (
    sessionIP.contains(Host_IP)); 
        } 
    Last edited by iPastel; 18-05-12 at 03:08 PM.

  7. #22
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    Quote Originally Posted by zh3002 View Post
    Fine u guys dont understand, I shall tell u how to do :/

    My sessionopened in MapleServerHandler

    PHP Code:
    @Override
        
    public void sessionOpened(final IoSession sessionthrows Exception {
            
    // Start of IP checking
            
    final String address session.getRemoteAddress().toString().split(":")[0];

            if (
    BlockedIP.contains(address)) {
                
    session.close(true);
                return;
            }
            final 
    Pair<LongBytetrack tracker.get(address);

            
    byte count;
            if (
    track == null) {
                
    count 1;
            } else {
                
    count track.right;

                final 
    long difference System.currentTimeMillis() - track.left;
                if (
    difference 2000) { // Less than 2 sec
                    
    count++;
                } else if (
    difference 20000) { // Over 20 sec
                    
    count 1;
                }
                if (
    count >= 10) {
                    
    BlockedIP.add(address);
                    
    tracker.remove(address); // Cleanup
                    
    session.close(true);
                    return;
                }
            }
            
    tracker.put(address, new Pair<LongByte>(System.currentTimeMillis(), count));
            
    // End of IP checking.
            
    String IP address.substring(address.indexOf('/') + 1address.length());
            
    System.out.println("Session with " IP " opened.");
            if (
    channel > -1) {
                if (
    ChannelServer.getInstance(channel).isShutdown()) {
                    
    session.close(true);
                    return;
                }

            } else if (
    cs) {
                if (
    CashShopServer.isShutdown()) {
                    
    session.close(true);
                    return;
                }
            } else {
                if (
    LoginServer.isShutdown()) {
                    
    session.close(true);
                    return;
                }
            }
            final 
    byte serverRecv[] = new byte[]{(byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255)};
            final 
    byte serverSend[] = new byte[]{(byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255), (byteRandomizer.nextInt(255)};
            final 
    byte ivRecv[] = serverRecv;
            final 
    byte ivSend[] = serverSend;
            final 
    boolean fixed = (ServerConstants.isHost(address));

            final 
    MapleClient client = new MapleClient(
                    new 
    MapleAESOFB(ivSend, (short) (0xFFFF ServerConstants.MAPLE_VERSION)), // Sent Cypher
                    
    new MapleAESOFB(ivRecvServerConstants.MAPLE_VERSION), // Recv Cypher
                    
    session);
            
    client.setChannel(channel);

            
    MaplePacketDecoder.DecoderState decoderState = new MaplePacketDecoder.DecoderState();
            
    session.setAttribute(MaplePacketDecoder.DECODER_STATE_KEYdecoderState);


            
    session.write(LoginPacket.getHello(ServerConstants.MAPLE_VERSIONserverSendserverRecvfixedclient));
            
    //System.out.println("GETHELLO SENT TO " + address + "; fixed = " + fixed);
            
    session.setAttribute(MapleClient.CLIENT_KEYclient);

           
                
    RecvPacketOpcode.reloadValues();
                
    SendPacketOpcode.reloadValues();
            

        } 
    My getHello

    PHP Code:
    public static byte[] getHello(final short mapleVersion, final byte[] sendIv, final byte[] recvIvboolean fixed, final MapleClient c) {
            final 
    MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(15 ServerConstants.MAPLE_PATCH.length());

            
    mplew.writeShort(13 ServerConstants.MAPLE_PATCH.length()); // length of the packet
            
    mplew.writeShort(mapleVersion);
            
    mplew.writeMapleAsciiString(ServerConstants.MAPLE_PATCH);
            
    mplew.write(recvIv);
            
    mplew.write(sendIv);
            
    mplew.write(fixed 5); // 7 = MSEA, 8 = GlobalMS, 5 = Test Server
            
    return mplew.getPacket();
        } 
    In serverconstants add

    PHP Code:
    public static String Host_IP "203.188.239.82"
    and

    PHP Code:
    public static boolean isHost(final String sessionIP){
            return (
    sessionIP.contains(Host_IP));
        } 
    Look at attachment

    YOU CAN CONNECT USING HOST
    Meaning I can host it on my computer , playing together with my friend ?

  8. #23
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Apr 2009
    Location
    Malaysia
    Posts
    848
    Liked
    83

    Re: [Help] SXMaple for all

    Quote Originally Posted by sia0b0yz View Post
    Desktop :
    getHello 5; If you host on your desktop , you won't be able to play , but other players are able to play it .
    getHello 7; You can play , but not other players

    VPS/Dedicated Server:
    getHello 5; Everybody can play
    getHello 7; Nonsense , no one test server using VPS/Dedicated server . ( Nobody can enter the server , except VPS/Dedicated server )
    7 = localhost, 5 = letting others to connect. Easy.
    PM me if you are interested in MSEA v1.27 Source

    "Yew Lee: I mean, i need to open into the source and see if it reach my need or not.
    To see it is complete or not before I can buy your source" <-- this fella is such a dumbass source scammer.

  9. #24
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    Quote Originally Posted by edwinkbs View Post
    7 = localhost, 5 = letting others to connect. Easy.
    The 1 zh3002 posted ^ , is the enable both hoster and players to play together ? O.O

  10. #25
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Apr 2009
    Location
    Malaysia
    Posts
    848
    Liked
    83

    Re: [Help] SXMaple for all

    Quote Originally Posted by sia0b0yz View Post
    The 1 zh3002 posted ^ , is the enable both hoster and players to play together ? O.O
    Never tried. But what he posted is almost the same as i posted. What he did is add a checks in mapleserverhandle
    if host ip then gethello = 7, if not gethello = 5.

    Something like this.
    mplew.write(c.isLocalhost() ? 7 : 5); // 7 = MSEA, 8 = GlobalMS, 5 = Test Server

    public boolean isLocalhost() {
    return ServerConstants.isIPLocalhost(getSessionIPAddress());
    }

    Just copy from TetraSEA, they already did all the checks for it.
    PM me if you are interested in MSEA v1.27 Source

    "Yew Lee: I mean, i need to open into the source and see if it reach my need or not.
    To see it is complete or not before I can buy your source" <-- this fella is such a dumbass source scammer.

  11. #26
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    Quote Originally Posted by edwinkbs View Post
    Never tried. But what he posted is almost the same as i posted. What he did is add a checks in mapleserverhandle
    if host ip then gethello = 7, if not gethello = 5.

    Something like this.
    mplew.write(c.isLocalhost() ? 7 : 5); // 7 = MSEA, 8 = GlobalMS, 5 = Test Server

    public boolean isLocalhost() {
    return ServerConstants.isIPLocalhost(getSessionIPAddress());
    }

    Just copy from TetraSEA, they already did all the checks for it.
    Ohh, okk . So basically , if I am the hoster , I want to play with my friends , I just leech is from TetraSEA ?

  12. #27
    Member
    Rank
    Member
    Join Date
    Sep 2010
    Location
    Singapore, Sing
    Posts
    71
    Liked
    7

    Re: [Help] SXMaple for all

    Quote Originally Posted by sia0b0yz View Post
    Ohh, okk . So basically , if I am the hoster , I want to play with my friends , I just leech is from TetraSEA ?
    Yeah kinda uses the same logic as tetra, i played mercs with my friend so im quite sure u can do that

  13. #28
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    Quote Originally Posted by zh3002 View Post
    Yeah kinda uses the same logic as tetra, i played mercs with my friend so im quite sure u can do that
    You mean you are able to host and play with others at the same time using the code you had provided above ? Oh btw , what is the code for dualbow ? I can't find it .. It's nameless .

  14. #29
    Member
    Rank
    Member
    Join Date
    May 2012
    Posts
    29
    Liked
    0

    Re: [Help] SXMaple for all

    Code of items can be found here easily :)

    BannedStory 4 | MapleSimulator

  15. #30
    ♥Fatal|Error♥
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Singapore
    Posts
    791
    Liked
    15

    Re: [Help] SXMaple for all

    May I know if Host_IP need to change it to my IP ?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •