Skip to content
Daniel Tischner edited this page Feb 23, 2016 · 3 revisions

Getting started

For logging market prices from Freewar, setup cronjobs that call mploggerCron1.php (for login and logging) and mploggerCron2.php (for logout).

User Interface

For processing the database and creating the corresponding articles in FreewarWiki, launch MpFetcher.java. For solving issues with non existent MP-Site articles, use CreateMpSitesTool.java alongside a file noMpSiteItems.csv containing all problematic item names.

User Interface

Requirements

The MPFetcher requires the library Java Wiki Bot Framework (https://github.com/eldur/jwbf) in the build path.

How to use an own database

Account data needs to be set in connectdb.php. The structure of the database is described in the following picture.

Database structure

For the FreewarWiki - Part edit MpFetcher.java#FETCH_DB_URL to point on your location for exportContent.php.

Note on accounts

For fetching market prices from Freewar an account in every world is needed. Set the corresponding data in login.php. Also a database is needed, set the corresponding data in connectdb.php. If the Freewar bot has a problem it sends a mail, set the mail adress in sendMessage.php.

For connecting to FreewarWiki an account is needed. Set the corresponding data in WikiHub.java#USER and WikiHub.java#PASSWD.

Clone this wiki locally