se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#16828 - 03/09/08 08:04 AM Converting Kingdoms MOD from DK to Scourge ****
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
If you want the Kingdoms MOD in your Scourge game version, this is what you must do:

1) Download the mod. http://dragon.se7enet.com/mods/index.php?do=file&id=82
2) Open the TXT file "Kingdoms-MOD".
3) Scroll down to the SQL Commands you've got to copy&paste in your PHPMyAdmin program. Change the prefixes into your own, so DK -> SX for example.
4) After you're done, open index.php and enter the following "cases":
 Code:
//  MANAGE LAND STUFF
    case "land": include("kingdoms.php"); land(); break;
    case "collect": include("kingdoms.php"); collect(); break;
    case "attack": include("kingdoms.php"); attack(); break;
    case "editland": include("kingdoms.php"); editland(); break;
    case "treasury": include("kingdoms.php"); treasury(); break;

5) Still in index.php, find:
 Code:
$do = explode(":",$_GET["do"]);

After add:
 Code:
//  START OF SET SOCIAL STATUS
    if($userrow["level"] <= 9) { $status = 'Peasant'; } 
    if($userrow["level"] >= 10) { $status = 'Citizen'; } 
    if($userrow["level"] >= 30) { $status = 'Baron'; } 
    if($userrow["level"] >= 50) { $status = 'Marquis'; } 
    if($userrow["level"] >= 70) { $status = 'Duke'; } 
    if($userrow["level"] >= 85) { $status = 'King'; } 
    if($userrow["level"] >= 95) { $status = 'Emporer'; } 
    doquery("UPDATE myprefix_users SET status='$status' WHERE id='".$userrow["id"]."' ", "users"); 

Before "switch ($do[0]) {"

6) Go to Kingdoms.php and edit all the SQL commands, for example:
UPDATE {{table}} -> UPDATE myprefix_users
(if it is the user table, sometimes you need myprefix_towns). It'll be 5 minutes work, so that's not much.
7) Upload Kingdoms.php and index.php and go to http://www.yourgame.com/index.php?do=land to check it out!

Top
#16970 - 03/24/08 08:29 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: gamefreak888]
AAT
Malt-o-Meal


Registered: 01/30/08
Posts: 18

Offline
Is it tested?
_________________________

Top
#16972 - 03/24/08 09:10 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: AAT]
AAT
Malt-o-Meal


Registered: 01/30/08
Posts: 18

Offline
Nop, I tried it. Error.
_________________________

Top
#16993 - 03/25/08 07:23 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: AAT]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
I've tested it and it works fine.
The only problem is that the script uses 'display' codes and they're shown beneath the rest of the page. So you'll see something like this:

War Room
Content
--------- (this is a line :P)
War Room

The bug with the title (which is something like <table width~~~) can be solved by adding <html> tags above the script and using the following code:
<head>
<title>MyGame :: Kingdoms</title>
</head>

@AAT, was it a MySQL Error? You've got to add all the MySQL tables first and change all the prefixes to your own.

Top
#16996 - 03/25/08 01:19 PM Re: Converting Kingdoms MOD from DK to Scourge [Re: gamefreak888]
AAT
Malt-o-Meal


Registered: 01/30/08
Posts: 18

Offline
I stuck on the one with the treasury.
_________________________

Top
#17016 - 03/26/08 09:10 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: AAT]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
You can solve the display bug by simply leave all the displays empty.

@Aat, make sure you've changed all the prefixes into your own and that you've add all the required tables.

Top
#17033 - 03/28/08 12:41 PM Re: Converting Kingdoms MOD from DK to Scourge [Re: gamefreak888]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
I'll try it out and post the errors. This mod can be very useful.
Top
#17038 - 03/28/08 03:10 PM Re: Converting Kingdoms MOD from DK to Scourge [Re: Sephiroth]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Yeah this will take a little while. The kingdoms.php file is so poorly written that I have to rewrite a good majority of it. Plus, basleijser's instructions were hard to follow so I did it on my own.

I'll get on it when I get home.

Top
#17080 - 04/04/08 08:12 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: Sephiroth]
Ignacio
Grape Nuts


Registered: 08/26/07
Posts: 25

Offline
I cant use it... i am a litle lost by changing the SQL commands... i know i have to put my prefix, but i dont know what i have to put in table if its users o tows.... can you post me an working example..
Thanks

Top
#17081 - 04/04/08 09:58 AM Re: Converting Kingdoms MOD from DK to Scourge [Re: Ignacio]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
Try the Kingdoms mod made by Sephiroth.
Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo