Hi,
I have been trying to find a suitable PVP arena for my test server and I came across the Maeher Online PVP Arena.
Due to the fact that this arena offers support for specialties, in lack of any better version, I decided to try it out on my nb core engine...
I have an issue when trying to install it:
ALTER TABLE arenastats
ADD userid int unsigned NOT NULL ,
ADD victories int unsigned NOT NULL ,
ADD defeats int unsigned NOT NULL ,
DROP PRIMARY KEY,
ADD PRIMARY KEY (userid)
Incorrect table definition; there can be only one auto column and it must be defined as a key
Call Stack:
1: db_query("ALTER TABLE arenastats A...") called from /mounted-storage/home113a/sub007/sc41001-XJFO/nb-core.net/lib/tabledescriptor.php on line 107
2: synctable("arenastats", Array(
"userid"=>Array(
"name"=>"userid", "type"=>"int unsigned"
), "victories"=>Array(
"name"=>"victories", "type"=>"int unsigned"
), "defeats"=>Array(
"name"=>"defeats", "type"=>"int unsigned"
), "key-PRIMARY"=>Array(
"name"=>"PRIMARY", "type"=>"primary key", "unique"=>"1", "columns"=>"userid"
)
), true) called from /mounted-storage/home113a/sub007/sc41001-XJFO/nb-core.net/modules/pvparena/install.php on line 43
3: require_once("/mounted-storage/home113a...") called from /mounted-storage/home113a/sub007/sc41001-XJFO/nb-core.net/modules/pvparena.php on line 9
4: pvparena_install() called from /mounted-storage/home113a/sub007/sc41001-XJFO/nb-core.net/lib/modules.php on line 1361
5: install_module("pvparena") called from /mounted-storage/home113a/sub007/sc41001-XJFO/nb-core.net/modules.php on line 41
I can't figure out what is wrong and where... at least I cannot see a solution for making the module adaptable to the nb engine, so, please any help would come would be praised ...
The Maeher's PVP Arena code is attached to this thread.
Thank you.
p.s. got any revised version of this arena or a better similar idea module, please share
