![]() |
Mod: Currency
Well, you know everyone is wanting a currency mod ( Including me )? Well, I've figured out how to make one, so I decided to show everyone how to have one. Do note, all this will do, is give you a currency and allow you to increase it by clicking/leveling adoptables. You will have to make all the extensions for it yourself. :P But I guess I will be willing to help you make one if you ask ( nicely xD ). :D
Step 1: Make the currency table. Open up your MySql then find "Query" ( I have no idea how you access your MySql DB or what it looks like, so you'll need to find stuff yourself ) It should allow you to run a MySql Query, the query I want you to run is this: ALTER TABLE users ADD money INT(11) NULL DEFAULT '0' Change 'users' to whatever you "prefix" is plus 'users'. Mine is adopt_users. Just an example. :P Then change 'money' to whatever currency you want, then run it. :) Step 2: Make it so you get money for clicking on adopts. There is a file called 'levelup.php'. Open that up then go to line 98, it should be a "}". Then after that, copy and paste then edit to your desires ( You can add some enters to keep everything clean :P ): PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Step 3: Fixing other files... There may be some files that need fixing, like the 'register.php' file. We will need to fix it so other people can register. :D Go to line 182, it should say: PHP Code:
PHP Code:
A simple 3 Step tutorial thingy on how to make a currency mod. :D Please note, it is not my fault if you mess up your website. I messed mine up and had to remake it. So make sure you have some sort of Backup or something. :D Or, just try it on another website. ;) |
RE: Currency Mod
wow that's really fantastic!!
thank you for posting all that, I am sure it's going to be a tremendous help to people --- thanks!! Gonna try it out in a bit here and give it a test run, and yes, I always make sure to back up everything, haha! |
RE: Currency Mod
Thanks! Yeah, I noticed people wondering it too and I did also, so I tried to find out myself. :P Yeah, I tend not to back things up... so... I loose stuff sometimes, but not too often cause I remember, or find out what's wrong. :)
|
RE: Currency Mod
I am not good at explaining mods but I tried to make this one fool-prrof. :) So far noone has had a problem. :)
Sea |
RE: Currency Mod
There is the possibility of add Some words when you click the adopt....like:
"You have received 25 Gp to level up this character...now you have 5000 Gp?" |
RE: Currency Mod
Sea: What do you mean Fool-Proof?
Zeke: Go to line 243 in 'levelup.php'. It should say ( Or look for it around line 243 ): $article_content = "<img src='".$image."'><br>".$lang_gave."".$name." one ".$lang_unit.".<br>".$lang_levelup_encourage; And after that add this line: $article_content = $article_content."<br>You have received [Amount of currency Earned] [Currency Name] and now have ".$newmoney." [Currency Name]." Change '[Amount of currency Earned]' and '[Currency Name]' to what it says. ;) On Step 2 it tells you to put '$newmoney = $money + 10' set '$newmoney' and '$money' in the above code to whatever you put for Step 2. Hope that Helps! :D |
RE: Mod: Currency
Err...Dont work the currency in my site!!
I Get an error when i go to lvl up a pet! What i have errated?? |
RE: Mod: Currency
First thing you do when you have a problem. You post the error(s). ;)
|
RE: Mod: Currency
Oh-Oh...
Is not possible that you add for the cash code in my level up code??? Code:
<?php |
RE: Mod: Currency
I guess I could do it for you... I'll get it done asap. :)
|
All times are GMT -5. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.