/travian-kingdom

Travian Kingdom server script free. Now, not finish yet.

Primary LanguagePHP

Travian Kingdom Clone Script

This project is clone Travian Kingdom game. Now, not finish yet. If you want to support, you can donate us by Paypal. https://paypal.me/PhuminShop (Every donation will be list in credit file) Files will upload fast as fast I can.

Menu

Feature

  • Index
    • Start without account
  • Lobby
    • Achievements
      • Achievements list
      • Prestige
      • Cliam prestige
    • Avatar
      • Set sitters
      • Set duals
    • Game worlds
      • Join game worlds
      • List playing game worlds
      • List playing game worlds that sitters
      • Remove avatar
    • News
      • Show news
    • Account
      • Login
      • Register
      • Change picture avatar
      • Change email
      • Change password
      • Change account name
      • Subscribe to newsletter
      • Logout
  • Game
    • Building list
      • Construct building
      • Upgrade building
      • Master building
      • Resort building list
      • Cancel building
      • Buy more slot
      • Reserve resource
      • Finish now
    • Troops & Merchants
      • Train troop
      • Send attack (no attack)
      • Send raid (no attack)
      • Send siege (no attack)
      • Settle new village
      • Conqure village
      • Send resources
    • Hero
      • Adventure (generate item with no effect)
      • Attack
      • Inventory
      • Attributes
      • Change hero face
      • Hero equipment
    • Silver & Gold
      • Exchange sliver & gold
      • Travian Plus
      • Resource bonus
      • Crop bonus
      • Starter pack
      • Invite friends
      • Purchase gold
      • Auto extend
      • Lifetime bonus
    • Report
      • Attack report (not correct infomation)
      • Raid report
      • Siege report
      • Spy report
      • Defense report
      • Reinforces report
      • Advanture report
      • Trade report
      • Reinforces arrived report
      • Animal caught repor
      • Visit report
      • Weeky prestige
      • Share report
      • Favorites report
    • Message
      • Private message
      • Kingdom message
      • Secret society message
      • Kingdom chat
      • Beginner chat
      • Global chat
    • Statistics
      • Player
        • Overview
        • Attacker
        • Defender
        • Villages
        • Heroes
        • Top 10
        • Search
      • Kingdom
        • Victory points
        • Population
        • Area
        • Attacker
        • Defender
        • Top 10
        • Search
      • World
    • Quest
      • Tutorial gameplay
      • Tutorial governer
      • Tutorial king
      • Daliy quest
      • Quest
    • Setting
      • Change setting
      • Delete avatar
    • Prestige
      • Prestige
    • Player profile
      • Modal
      • Change description
    • Auction
      • Buy
      • Sell
      • Bids
      • Silver accounting (History)
    • Kingdom
      • Create kingdom
      • Change description
      • Change tag
      • Show member
      • Invite player
      • Invite dukes
      • Treasure active
      • Internation statistics
      • Kingdom events
      • Ranking
      • Treasuries
      • Tributes
      • Diplomacy
      • Create offer
    • Notification
      • Show notification
      • Remove notification
      • Remove all notification
    • Map
      • Show map cell
      • Show map cell detail
      • Show village infomation
      • Show oasis
      • Show oasis troops
      • Show report
      • Robber
      • NPC Village
      • Natar village
      • WW village
      • Vocano
      • Kingdom borders
      • Game messages
      • Player messages
      • Kingdom markers
      • Player markers
      • Fields markers
    • Oasis
      • Assign oasis
      • Oasis bonus
      • Give up oasis
      • Bonus from troops in oasis
    • Village & Building
      • Upgrade to town
      • Celebration
      • Claim resource from hidden treasures
      • Extra building fields
      • Research troops
      • Finish now research
      • Improve troops
      • Finish now improve
      • Demolish building
      • Clear rubbles
    • Notepads
      • Show/hide notepad
      • Create a new note
      • Edit note
      • Delete note

Screenshot

Travian Kingdom Clone Script Travian Kingdom Clone Script Travian Kingdom Clone Script Travian Kingdom Clone Script Travian Kingdom Clone Script Travian Kingdom Clone Script

Requires

  • PHP 5.6+ (with PDO mysql)
  • Node.JS

*** IMPORTANT *** This script can't use in web hosting because automatice function run as service

Installation

  1. Perpair web server program (very simple use xampp) - Prepair subdomain and point to your server - Config apache vhost for game

Example vhost config for apache (OSX with xampp)

<VirtualHost *:80>
    # Index
    ServerAdmin t5.k
    ServerName t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5"
    ErrorLog "logs/t5.k-error_log"
    CustomLog "logs/t5.k-access_log" common
</VirtualHost>
<VirtualHost *:80>
    # Index
    ServerAdmin kingdoms.t5.k
    ServerName kingdoms.t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5/index"
    ErrorLog "logs/kingdoms.t5.k-error_log"
    CustomLog "logs/kingdoms.t5.k-access_log" common
</VirtualHost>
<VirtualHost *:80>
    # Mellon service (Account service)
    ServerAdmin mellon.t5.k
    ServerName mellon.t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5/mellon"
    ErrorLog "logs/mellon.t5.k-error_log"
    CustomLog "logs/mellon.t5.k-access_log" common
    Header set Access-Control-Allow-Origin "*"

    AllowEncodedSlashes on
</VirtualHost>
<VirtualHost *:80>
    # CDN
    ServerAdmin cdn.t5.k
    ServerName cdn.t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5/cdn"
    ErrorLog "logs/cdn.t5th.ph-error_log"
    CustomLog "logs/cdn.t5th.ph-access_log" common
    Header set Access-Control-Allow-Origin "*"
</VirtualHost>
<VirtualHost *:80>
    # Lobby
    ServerAdmin lobby.t5.k
    ServerName lobby.t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5/lobby"
    ErrorLog "logs/lobby.t5.k-error_log"
    CustomLog "logs/lobby.t5.k-access_log" common
</VirtualHost>
<VirtualHost *:80>
    # Game
    ServerAdmin ks1.t5.k
    ServerName ks1.t5.k
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/travian5/game/s1"
    ErrorLog "logs/ks1.t5.k-error_log"
    CustomLog "logs/ks1.t5.k-access_log" common
</VirtualHost>

Example hosts file

# Travian Kingdom
127.0.0.1       t5.k
127.0.0.1       kingdoms.t5.k
127.0.0.1       mellon.t5.k
127.0.0.1       lobby.t5.k
127.0.0.1       cdn.t5.k
127.0.0.1       ks1.t5.k
  1. Import database from travian5.sql
    If you want empty data, you should empty every table except global_server_data
    If you want to change speed world, you can edit in global_server_data table too
  2. Config mysql password in index/engine/config.php
  3. Start automatice process with command php server2/server.php and node server/app2 and node server_lobby/app (don't forget to install nodejs module with npm install before run)
  4. Let's enjoy your server

To generate world
go to sub domain that game avaliable. go to api folder and go to debug.php?a=createWorld
for example ks1.t5.k/api/debug.php?a=createWorld

Please note that this script doesn't finish yet. If you found bug please use Issues to report and use Pulls Requests to request feature that offical have or fix bug or add new feature to main project.

Subscribe

NOW IS FREE Use watch button if you want to know about activities. If you like this project, please give star. THANKS