Jump to content

Sryx

Members
  • Posts

    520
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Sryx

  1. You can do it via scripting.

     

    1. Create NPC that converts Item to Points (stored in account)

    2. Wipe all items

    3. Create NPC that converts the Points to Item.

     

     

    Just an idea/suggestion.

  2. // Forbidden Skills Database
    // Defines unusable skills in map types and zones.
    //
    // Structure of Database:
    // SkillID,Flag
    //
    // Legend for 'Flag' field (bitmask):
    // 1    - cannot be used in normal maps
    // 2    - cannot be used in PvP maps (use this instead of 1 for PK-mode servers)
    // 4    - cannot be used in GvG maps
    // 8    - cannot be used in Battleground maps
    // 16   - cannot be cloned (clones will not copy this skill)
    // Restricted zones - configured by 'restricted <number>' mapflag
    // 32   - cannot be used in zone 1 maps
    // 64   - cannot be used in zone 2 maps
    // 128  - cannot be used in zone 3 maps
    // 256  - cannot be used in zone 4 maps
    // 512  - cannot be used in zone 5 maps
    // 1024 - cannot be used in zone 6 maps
    // 2048 - cannot be used in zone 7 maps
    //
    // Example:
    // 8,6  // Endure cannot be used in PvP and GvG maps (2+4)
    
    • db/re/skill_nocast_db.txt
    • db/pre-re/skill_nocast_db.txt

     

    for zone list

    • npc/mapflag/restricted.txt

     

    for item

    // Forbidden Items Database
    // Defines restrictions on equipment, items, and cards in map types and zones.
    //
    // Structure of Database:
    // ItemID,Flag
    //
    // Legend for 'Flag' field (bitmask):
    // 1    - restricted in normal maps
    // 2    - restricted in PVP
    // 4    - restricted in GVG
    // 8    - restricted in Battlegrounds
    // Restricted zones - configured by 'restricted <number>' mapflag
    // 32   - restricted in zone 1
    // 64   - restricted in zone 2
    // 128  - restricted in zone 3
    // 256  - restricted in zone 4
    // 512  - restricted in zone 5
    // 1024 - restricted in zone 6
    // 2048 - restricted in zone 7
    • db/re/item_noequip.txt
    • db/pre-re/item_noequip.txt
  3.  

    From a previous thread I was helped on how to solve a few of the issues in connecting to my own server, but I've run into another problem, which is being rejected from the server(3) after creating a character and trying to enter the world.

     

    My mmo.h has packet version 20130807 and I believe my client Ragexe is also the same.

     

    There seems to be no weird messages in charserv.exe

     

    [info]: sd->version = 45
    [info]: Loading Char Data (2000000)
    [info]: Loading Char Data (2000000)
    [info]: Char load request (150000)
    [info]: storage load complete from DB - id: 2000000 (total: 0)
    [info]: Loaded char (150000 - Wulfen):  status memo inventory cart storage 0 ski
    lls friends hotkeys mercenary
    [info]: Selected char: (Account 2000000: 0 - Wulfen)
    [info]: Subnet check [177.xx.xxx.14]: WAN
     
     
    My clientinfo.xml
     
      <?xml version="1.0" encoding="euc-kr" ?>
    - <clientinfo>
      <desc>Ragnarok Client Information</desc>
      <servicetype>korea</servicetype>
      <servertype>primary</servertype>
    - <connection>
      <display>Local</display>
      <address>177.xxx.xx.14</address>
      <port>6900</port>
      <version>45</version>
      <langtype>1</langtype>
      <registrationweb>www.ragnarok.com</registrationweb>
    - <loading>
      <image>loading00.jpg</image>
      <image>loading01.jpg</image>
      <image>loading02.jpg</image>
      <image>loading03.jpg</image>
      <image>loading04.jpg</image>
      </loading>
      </connection>
      </clientinfo>
     
     
     
     
    Any help would be greatly appreciated!

     

    EDIT: I actually found an error  in mapserv.bat it says

     

    [info]: clif_parse: Disconnecting session #3 with unknown packet version (p:0x50
    31,l:19).
     
     
    Hope this isolates the issue!

     

     

    Did you skip Packet Obfuscation DIFF?

  4.  

    When i connect locally with 127.0.0.1 in my clientinfo.xml it works just fine.
    The problem i am experiencing is with connections from the outside when i have my WAN IP in the clientinfo.xml.
    When a player logs in from the outside it will go up to the server select.
    Once the server has been selected i get a message `waiting` and after several seconds `failed to connect to server`.
    I have made firewall exceptions for mapserver_sql, charserver_sql and loginserver_sql.
    I have added port forwards for both UDP and TCP on all 3 ports.
    Here are my files:

    src: port forwarding router
     

    ports_forwarded.png

    src: map_athena.conf


    //--------------------------------------------------------------
    //rAthena Map-Server Configuration File
    //--------------------------------------------------------------

    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.

    //--------------------------------------------------------------
    // Configuration Info
    //--------------------------------------------------------------
    // Interserver communication passwords, set in account.txt (or equiv.)
    userid: dummy
    passwd: password

    // Character Server IP
    // The map server connects to the character server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    char_ip: 127.0.0.1

    // The map server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1

    // Character Server Port
    char_port: 6121

    // Map Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    map_ip: 86.80.120.130

    // Map Server Port
    map_port: 5121

    src: char_athena.conf

    // Athena Character configuration file.

    // Note: "Comments" are all text on the right side of a double slash "//"
    // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.

    // Server Communication username and password.
    userid: dummy
    passwd: password

    // Server name, use alternative character such as ASCII 160 for spaces.
    // NOTE: Do not use spaces or any of these characters which are not allowed in
    // Windows filenames \/:*?"<>|
    // ... or else guild emblems won't work client-side!
    server_name: rAthena

    // Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
    wisp_server_name: Server

    // Login Server IP
    // The character server connects to the login server using this IP address.
    // NOTE: This is useful when you are running behind a firewall or are on
    // a machine with multiple interfaces.
    login_ip: 127.0.0.1

    // The character server listens on the interface with this IP address.
    // NOTE: This allows you to run multiple servers on multiple interfaces
    // while using the same ports for each server.
    //bind_ip: 127.0.0.1

    // Login Server Port
    login_port: 6900

    // Character Server IP
    // The IP address which clients will use to connect.
    // Set this to what your server's public IP address is.
    char_ip: 86.80.120.130

    // Character Server Port
    char_port: 6121

    src: subnet_athena.conf

    // Subnet support file
    // Format is:
    // subnet: net-submask:char_ip:map_ip
    // you can add more than one subnet

    //Standard
    subnet: 255.0.0.0:127.0.0.1:127.0.0.1

    //LAN
    subnet: 255.255.255.0:192.168.2.254:192.168.2.254

    //WAN
    subnet: 255.255.255.0:86.80.120.130:86.80.120.130

    src: packet_db.txt

    packet_db_ver: 30

    //2012-04-10aRagexeRE
    packet_ver: 30
    0x01FD,15,repairitem,2
    0x089C,26,friendslistadd,2
    0x0885,5,hommenu,2:4
    0x0961,36,storagepassword,0
    0x0288,-1,cashshopbuy,4:8
    0x091C,26,partyinvite2,2
    0x094B,19,wanttoconnection,2:6:10:14:18
    0x0369,7,actionrequest,2:6
    0x083C,10,useskilltoid,2:4:6
    0x0439,8,useitem,2:4
    0x0945,-1,itemlistwindowselected,2:4:8
    0x0815,-1,reqopenbuyingstore,2:4:8:9:89
    0x0817,2,reqclosebuyingstore,0
    0x0360,6,reqclickbuyingstore,2
    0x0811,-1,reqtradebuyingstore,2:4:8:12
    0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
    0x0835,2,searchstoreinfonextpage,0
    0x0838,12,searchstoreinfolistitemclick,2:6:10
    0x0437,5,walktoxy,2
    0x0886,6,ticksend,2
    0x0871,5,changedir,2:4
    0x0938,6,takeitem,2
    0x0891,6,dropitem,2:4
    0x086C,8,movetokafra,2:4
    0x08A6,8,movefromkafra,2:4
    0x0438,10,useskilltopos,2:4:6:8
    0x0366,90,useskilltoposinfo,2:4:6:8:10
    0x0889,6,getcharnamerequest,2
    0x0884,6,solvecharname,2
    0x08E5,41,bookingregreq,2:4    //Added to prevent disconnections
    0x08E6,4
    0x08E7,10,bookingsearchreq,2
    0x08E8,-1
    0x08E9,2,bookingdelreq,2
    0x08EA,4
    0x08EB,39,bookingupdatereq,2
    0x08EC,73
    0x08ED,43
    0x08EE,6
    0x08EF,6,bookingignorereq,2
    0x08F0,6
    0x08F1,6,bookingjoinpartyreq,2
    0x08F2,36
    0x08F3,-1
    0x08F4,6
    0x08F5,-1,bookingsummonmember,2:4
    0x08F6,22
    0x08F7,3
    0x08F8,7
    0x08F9,6
    0x08FA,6
    0x08FB,6,bookingcanceljoinparty,2
    0x0907,5,moveitem,2:4
    0x0908,5
    0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections
    0x08CF,10 //Amulet spirits
    0x0977,14 //Monster HP Bar

    2012_05_10a_Ragexe_Re.png

     

    src: mmo.h

    #ifndef PACKETVER
        #define PACKETVER 20120410
        //#define PACKETVER 20111116
    #endif

    src: clientinfo.xml

    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
    <servicetype>korea</servicetype>
    <servertype>sakray</servertype>
    <connection>
    <display>Style RO</display>
    <desc>Style RO</desc>
    <address>86.80.120.130</address>
    <port>6900</port>
    <version>30</version>
    <langtype>10</langtype>
    <balloon>Style RO</balloon>
    <aid>
                <admin>2000000</admin>
            <loading>
                <image>loading00.jpg</image>
            </loading>
    </aid>
    </connection>
    </clientinfo>

    Will add in more details (need to upload screenshots etc).

    Note~ I am using a .grf file instead of a data folder, i also have `read data folder` disabled when i diffed it.

     
     

    Did you disable the Packet Encryption Diff in your client?

×
×
  • Create New...