Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Currency for leveling up / Adoptable shop (Fixed again)
[size=medium]Note with this update! Please, re-run the queries to add the shop adoptables, if you have already installed it. Thanks.[/size]
[size=large]Important!! A way to prevent people stealing shop adoptables![/size] Open adopt.php and find something like this in the code (it won't be exactly like mine): PHP Code:
PHP Code:
[size=large]Earning money on level up [/size] Step 1: Run this here MySQL query to add the money field in your users table: PHP Code:
Download levelup.php and edit it to suit your site. Replace the number 10 with your desired amount of currency per level up. Step 3: This is important if you still want people to be able to register. :P Edit register2.php and find this line: PHP Code:
PHP Code:
Add this.... PHP Code:
PHP Code:
PHP Code:
[size=large] Shop to buy adoptables[/size] Step 1: Download shop.php, buy.php, and buyconfirm.php and upload them to your main folder. Step 2: Add adoptables for sale by running a query like this. Do not change the shop part unless you know what you're doing. PHP Code:
PHP Code:
|
#2
|
|||
|
|||
RE: [In Development] Currency for leveling up
Well, using your system of altering the users table will break the user registration system. :P
You would want to also find in register2.php: PHP Code:
PHP Code:
Also, I would change: Code:
ALTER TABLE users ADD money VARCHAR(11) NULL DEFAULT '0' Code:
ALTER TABLE users ADD money INT Brandon |
#3
|
|||
|
|||
RE: [In Development] Currency for leveling up
So Brandon, would i be able to fuse this with my idea i was working on? If so, how?
|
#4
|
|||
|
|||
RE: [In Development] Currency for leveling up
Quote:
|
#5
|
|||
|
|||
RE: [In Development] Currency for leveling up
Okay. But there's still the dilemma that there's a chance of getting one out of five colors for each pearl or emerald. I'm guessing I'd need to create a field for each color pearl and emerald?
|
#6
|
|||
|
|||
RE: [In Development] Currency for leveling up
PHP Code:
|
#7
|
|||
|
|||
RE: [In Development] Currency for leveling up
Does it work right now?
|
#8
|
|||
|
|||
RE: [In Development] Currency for leveling up
Yes rosepose, getting currency for leveling up works. Just make sure to include Brandon's amendment or else people can't register anymore. :P
What's in progress still is the shop for buying adoptables with the money. |
#9
|
|||
|
|||
RE: [In Development] Currency for leveling up
Could you edit the first post and add Brandon's extra part because I fail at this stuff...Thanks.
|
#10
|
|||
|
|||
RE: [In Development] Currency for leveling up
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
leveling idea | Nemesis | Suggestions and Feature Requests | 2 | 01-08-2012 01:23 PM |
Shop to buy an adoptable? | SilverDragonTears | Questions and Supports | 8 | 08-16-2011 03:17 PM |
Adoptable shop new version! [UPDATED!] | mapleblade | Mys v1.1.x Mods | 57 | 08-15-2011 08:50 AM |
How to create a a battle system ,shop and currency?? | SieghartZeke | Questions and Supports | 9 | 11-02-2009 01:15 AM |
Pets Not leveling up | Seapyramid | Questions and Supports | 4 | 02-02-2009 06:03 PM |
What's New? |
What's Hot? |
What's Popular? |