GithubHelp home page GithubHelp logo

noobdevai / metin2cms-market Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ionutpopescuro/metin2cms-market

0.0 0.0 0.0 6.69 MB

Online market with Item Shop for private servers of metin2.

Home Page: https://market.metin2cms.cf/

License: MIT License

PHP 98.80% CSS 1.18% ApacheConf 0.02%

metin2cms-market's Introduction

Metin2 CMS - Market

N|Solid

This is an online market. Players can sell their items online game, and can be purchased by other players. The design is conceived bootstrap, is available on other devices than PC.

Communication with the database is done using the PDO extension. The platform is available in 8 languages:

  • English
  • Română
  • Français
  • Italiano
  • Português
  • Türk
  • Deutsch
  • Español

Data related platform are stored in a SQLite database, no longer need for a new database. It included a store of objects (Item-Shop). It can add items with bonuses and can make payments with paypal for dragon coin.

Installation

Attention! Order to that the website to work properly, last_play table must be updated. This script is provided along with the market.

 /*********
* file:		    	input_login.cpp
* description: 		Time update in real-time table last_play
* date: 		    Tuesday, Aug 01 st 2016, 02:44am
* author:           VegaS
*/

//1.) Search:
void CInputLogin::Entergame(LPDESC d, const char * data)
{
	LPCHARACTER ch;
	[........................................]
} 

//2.) Add bellow:
#ifdef ENABLE_UPDATE_LASTPLAY_REAL_TIME
/*********
* I put this verification level as not to over apply database updates elsewhere for characters that start at
* first on the game that is at level 1, I believe that it is not necessary for a player of that level to have time adapted real-time.
*/
	int pLevel = 0; // To begin initialize of level 5 ++

	if (ch->GetLevel() > pLevel) 
	{	
		char pUpdateTime[1024];
		snprintf(pUpdateTime, sizeof(pUpdateTime), "UPDATE player.player SET last_play = NOW() WHERE id = %u", ch->GetPlayerID());
		std::auto_ptr<SQLMsg> sUpdate(DBManager::instance().DirectQuery(pUpdateTime));
	}
#endif

All you have to do now is to edit the file config.php.

metin2cms-market's People

Contributors

ionutpopescuro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.