[Release] .NET Core 3.1 TeraAPI for v92.03 files including source code

Results 1 to 3 of 3
  1. #1
    Registered wowsodoge is online now
    MemberRank
    Dec 2016 Join Date
    20Posts

    [Release] .NET Core 3.1 TeraAPI for v92.03 files including source code

    Prerequisites:


    How to set up:

    • After installing the prerequisites, type inetmgr at the search in the start menu, to open IIS Manager.
    • Create a new site, make it listen to port 8080, and the machines IP (not 127.0.0.1, the site must be accessible from other machines), create a folder for it
    • Extract the bin.zip and copy the files to the folder created in the previous step
    • make sure to edit your MYSQL ip, port, user and password
    • Change your application pool to "No Managed Code"


    If you successfully set up, you can test at http://your_lan_ip:8080/api/ServiceTest
    If you get any error, it gets logged to windows event log - application tab

    If you want to use the SHA512 encryption from this post: http://forum.ragezone.com/f798/add-s...-tera-1194396/ set the salt in appsettings.json, and make sure it is enabled. If you want to use plaintext, just set it to false.

    It is possible to use account benefits from this post: http://forum.ragezone.com/f798/92-03...efits-1194487/, just make sure you have the table and have data in it.

    bin: bin
    src: http://www.mediafire.com/file/5dcoah...b/src.zip/file

    Example data
    Code:
    5935 433 1699293064
    Credits: @EvolutionX for the encryption, @Luciole for the accountbenefits, @argeus99 for testing.

    If you know any missing features from the files which are API related let me know.


  2. #2
    Member templar is offline
    MemberRank
    Mar 2012 Join Date
    46Posts

    Re: [Release] .NET Core 3.1 TeraAPI for v92.03 files including source code

    did what you said here in this post but not exactly sure what todo next to enable the account benifits?

  3. #3
    Registered wowsodoge is online now
    MemberRank
    Dec 2016 Join Date
    20Posts

    Re: [Release] .NET Core 3.1 TeraAPI for v92.03 files including source code

    @templar all you need to do is make sure the table exists (run this script)

    Code:
    DROP TABLE IF EXISTS `account_benefits`;CREATE TABLE `account_benefits` (  `accountDBID` int(11) NOT NULL,  `benefitId` int(11) NOT NULL,  `availableUntil` int(11) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    and make sure it contains rows such as: 5935 433 1699293064 (where 5935 is your accounts dbid from accountinfo table, 433 is the benefit - tera club membership in this case - and the last huge number is the expiration date). It is the amount of seconds passed since 1970.01.01.

    use this site to convert: https://www.epochconverter.com/

    the api finds the table automatically



Advertisement