![]() |
#1
|
||||
|
||||
![]()
Well before releasing RA version 1.10 to public, I'd like to post a thread about this Trade system used in RA v1.10. This thread is mainly for users who are already using a heavily modified version of RA v1.00 and therefore cannot upgrade to RA v1.10 properly. It is still possible to add a trade system to your site though, just follow the instructions below:
There are three new script files added, namely trade.php, redeem.php and mytrades.php. Trade.php is where a trade is initialized, while redeem.php allows users to see trade requests and accept them. mytrades.php is currently still under construction, and we will bring it to life someday. The three script files are attached in this thread, you can simply download them and place in your adoptables directory. However, there are three more steps to take in order for your trade system to work... First of all, you will need to execute the following SQL commands in PHPmyadmin to add a new table and a few entries in your database: Code:
CREATE TABLE adopts_trades (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, userrequestingtrade varchar(50), tradetype varchar(20), adoptableoffered INT, cashoffered INT, adoptabledesired INT, custommessage varchar(150), offerstatus varchar(30), tradeto varchar(40)); INSERT INTO adopts_settings (name, value) VALUES ('enabletrades', 'yes'); INSERT INTO adopts_settings (name, value) VALUES ('tradecost', '0'); INSERT INTO adopts_settings (name, value) VALUES ('tradeoffercost', '0'); PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
So yeah, thats all you need for a trade system. Dont forget to download the three new files and place them in your adoptables root directory. Have fun everyone, and merry christmas! |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trade System | Kyttias | Questions and Supports | 4 | 05-29-2016 12:29 AM |
Make pets' trade status Not For Trade by default | tahbikat | Questions and Supports | 3 | 12-13-2015 10:21 PM |
Trade System? | sensacion | Questions and Supports | 5 | 08-20-2010 11:36 AM |
Trade System? | SieghartZeke | Questions and Supports | 1 | 12-28-2009 07:06 AM |
Trade System? | Ashje | Questions and Supports | 5 | 12-24-2009 04:02 AM |
What's New? |
What's Hot? |
What's Popular? |