Jump to content

jim00x

Members
  • Posts

    10
  • Joined

Posts posted by jim00x

  1. prontera,160,192,5 script Jellopy Trader 757,{
     mes "Hello, I want to trade some Jellopys for various Items.";
     next;
     mes " I give you 1 Yggdrasilberry for 100 Jellopys, 20 Old Blue Boxes for 200 Jellopys and 20 Old Violet Boxes for 300 Jellopys.";
     next;
     menu "Yggdrasilberry",L_Yggdrasilberry,"Old Blue Box",L_OldBlueBox,"Old Violet Box",L_OldVioletBox,"Nevermind",L_Cancel;
    
    L_Yggdrasilberry:
     if( countitem(909) < 100 ){
         mes "You didnt have 100 "+getitemname( 909 );
      }
         set .@Amount,( countitem(909) / 100 );
         delitem 909,( .@Amount * 100 );
         getitem 607,.@Amount;
         mes "Done...you gained "+.@Amount+" "+getitemname(607);
     close;
    
     L_OldBlueBox:
     if( countitem(909) < 200 ){
         mes "You didnt have 100 "+getitemname( 909 );
      }
          set .@Amount,( countitem(909) / 200 );
         delitem 909,( .@Amount * 200 );
         getitem 603,( .@Amount * 20 );
         mes "Done...you gained "+.@Amount+" "+getitemname(603);
       close;
    
    
     L_OldVioletBox:
     if( countitem(909) < 300 ){
         mes "You didnt have 100 "+getitemname( 909 );
      }
          set .@Amount,( countitem(909) / 300 );
         delitem 909,( .@Amount * 300 );
         getitem 617,( .@Amount * 20 );
         mes "Done...you gained "+.@Amount+" "+getitemname(617);
     close;
    
    
    L_Cancel:
    
    mes "Come back anytime!";
    
    close;
    
    end;
    
    }

     

  2.  second server  conf/char_athena.conf

     // Whatever text is commented will not be parsed by the servers, and serves
    // only as information/reference.

    // Server Communication username and password.
    userid: SS1
    passwd: PP1

    // 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_v18.03

    // 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: 192.168.1.20

    // 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: 127.0.0.1

    // Character Server Port
    char_port: 6122

     second server  conf/map_athena.conf

    // Interserver communication passwords, set in account.txt (or equiv.)
    userid: SS1
    passwd: PP1

    // 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: 6122

    // 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: 192.168.1.20

    // Map Server Port
    map_port: 5122

     

    login table

    1 S1 P1 S [email protected] 0 0 0 0 244 2018-4-20 19:18:33 192.168.1.20  0  0 0 0
    0 SS1 PP1 S [email protected] 0 0 0 0 8 2018-4-20 19:37:24 192.168.1.20  0  0 0 0       <---  second server           

×
×
  • Create New...