Jump to content
MakeWebGames

Recommended Posts

Posted

ok here is the SQL for the mod

[mysql]

-- Table structure for table `implants`

--

CREATE TABLE IF NOT EXISTS `implants` (

`statid` int(11) NOT NULL AUTO_INCREMENT,

`userid` int(11) NOT NULL,

`stat` tinytext NOT NULL,

`amount` decimal(11,4) NOT NULL,

`stat_type` int(11) NOT NULL DEFAULT '0',

PRIMARY KEY (`statid`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--

[/mysql]

[mysql]

-- Table structure for table `implant_market`

--

CREATE TABLE IF NOT EXISTS `implant_market` (

`marketid` int(11) NOT NULL AUTO_INCREMENT,

`statid` int(11) NOT NULL,

`userid` int(11) NOT NULL,

`stat_type` int(11) NOT NULL,

`amount` decimal(11,4) NOT NULL,

`price` int(11) NOT NULL,

PRIMARY KEY (`marketid`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--

[/mysql]

[mysql]

-- Table structure for table `smarketlogs`

--

CREATE TABLE IF NOT EXISTS `smarketlogs` (

`smlid` int(11) NOT NULL AUTO_INCREMENT,

`statid` int(11) NOT NULL,

`userid` int(11) NOT NULL,

`stat_type` int(11) NOT NULL,

`amount` decimal(11,4) NOT NULL,

`price` int(11) NOT NULL,

`time` int(11) NOT NULL,

PRIMARY KEY (`smlid`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--

[/mysql]

ok still more to come

Posted

ok here is the statwithdraw.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

here is the statinsert.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

impinsert.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

still more to come

Posted

it allows you to withdraw a % of a stat and creates a injection type item...and when this item is used it adds the % to your stat.

So you could give a friend some stats or even sell stats on the market...

hope u understand that..lol

cheers

Posted

This looks very interesting. What this will do for some games is, if the top players have huge stats and no money they can sell some of their stats become weak how ever become rich at the same time. For those who concentrate only on their stats, this could prove to be quite profiting for them.

Posted

ok peeps here it is the final page of the mod the stat market page

i have setup my tester site so you can see the mod in action

the site is http://tester.corruptcity.net

i have created 4 account demo through demo 4 and the passwords for all are abc123

all 3 links that you need are on the main menu stat withdraw, stat insert and stat market

before i post the code i would like to say thanks to Entropia for giving me the idea for the mod, Immortal Thug thanks m8 you help me alot even if i was a pain in the ass lol,

fbiss and others.

if you like the stat market im im thinking about making an item market like it which i will sell.

here is the code

statmarket.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Gave this mod a test run last night.

2 things.

 

One, You didnt put what to Label Each .php page so it took me a few to figure it out =P

Two, I'll go through it, but I'm getting errors when trying to add stats to market. Page keeps refreshing like I didnt add, so :P

Other than that...I cant beleive you didnt make this a paid mod =)

Posted

Ok.

 

With the changes you have to make with statadd.php it doesnt work properly.

If i use the original, it posts everything but the Stat into market, so i'm a bit closer to fixing.

 

on the Market itself, When removing my stat

QUERY ERROR: Duplicate entry '7' for key 1

Query was INSERT INTO implants (statid, userid, stat, amount, stat_type) VALUES ('7', '1','','14.0510','1')

Is the error i get :P

Posted

Meh Uncle, I can't get it to work >,<

Everything is 100% but the stat Add and statmarket for me

 

I had it posting to the market earlier but i copied your updated code and now it's not working :P

Cant remember wth i did to get it to work either or what has changed >,<

When it was posting to the market the STAT column was blank as well

Posted

Im getting this error on the statadd page...

 

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/tallica/public_html/class/class_db_mysql.php on line 71

Posted

There is a mod called 'statsmarket' I got it from here a while ago when this site was called CE. the statsmarket mod does the same as this. I have used it on my site at first the players where great with it. but after 1 week it seemed to die and no one used it after that.

I still give you a +1 though for the hard work you put in :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...