Shop Mod sql Help need real bad

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Shop Mod sql Help need real bad
Furion
CZ Newbie
Furion has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 12, 2004
0.00 posts per day
Posts: 7
Points: 1,212
   
Hi guys, Iv spent ages trying to make the shop mod work but I cant. The reason is because I cant even install the SQL.
This is for the nuke 7.5 version

I downloaded it from ported mods and the problem is I dont know how to install the sql entries.

It says I have to make a table and some stuff but I dont know anything about that.

Can someone please kindly help me.
Also here is the script.

Please guys help!!!

My msn is [ Register or login to view links on this board. ]



Attached Files
install.txt (15.73 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
You have to go to phpmyadmin. Once there select your database. Across the top of the page you will see a tab(link) that says SQL click that and paste this in the text area:

alter table nuke_users add user_items TEXT;
create table nuke_shopitems (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` CHAR (32) NOT NULL, `shop` CHAR (32) NOT NULL, `sdesc` CHAR (80) NOT NULL, `ldesc` TEXT NOT NULL, `cost` INT (20) UNSIGNED DEFAULT '100', `startprice` INT (20) UNSIGNED DEFAULT '100', `raise` INT (20) UNSIGNED DEFAULT '100', `stock` TINYINT (3) UNSIGNED DEFAULT '10', `startstock` TINYINT (3) UNSIGNED DEFAULT '100', `maxstock` TINYINT (3) UNSIGNED DEFAULT '100', `sold` INT (5) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY(`id`), INDEX(`name`));
create table nuke_shops (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `shopname` CHAR (32) NOT NULL, `shoptype` CHAR (32) NOT NULL, PRIMARY KEY(`id`), `type` char (32) NOT NULL, `restocktime` INT (20) UNSIGNED DEFAULT '86400', `restockedtime` INT (20) UNSIGNED DEFAULT '0', `restockamount` INT (4) UNSIGNED DEFAULT '5', `amountearnt` INT (20) UNSIGNED DEFAULT '0', INDEX(`shopname`));
insert into nuke_bbconfig values ('multibuys', 'on');
insert into nuke_bbconfig values ('restocks', 'off');
insert into nuke_bbconfig values ('sellrate', '75');
insert into nuke_bbconfig values ('viewtopic', 'images');
insert into nuke_bbconfig values ('viewprofile', 'images');
insert into nuke_bbconfig values ('viewinventory', 'grouped');
insert into nuke_bbconfig values ('specialshop', 'ßstoreŞdisabledßnameŞEffects StoreßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1');
alter table nuke_users add `user_effects` CHAR (255);
alter table nuke_users add `user_privs` CHAR (255);
alter table nuke_users add `user_custitle` TEXT;
alter table nuke_users add `user_specmsg` TEXT;
update nuke_bbconfig set config_value='ßstoreŞdisabledßnameŞEffects StoreßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1ßoffŞ1' where config_name='specialshop';
insert into nuke_bbconfig values ('viewtopiclimit', '5');


Then press the GO button.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Shop Mod sql Help need real bad
Furion
CZ Newbie
Furion has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 12, 2004
0.00 posts per day
Posts: 7
Points: 1,212
   
Error

SQL-query :

ALTER TABLE nuke_users ADD user_items TEXT

MySQL said:


#1060 - Duplicate column name 'user_items'


I did that and this is the error I got. :'(



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
That means you already have the database part installed.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum