Becon Posted June 3, 2009 Posted June 3, 2009 Ok. After seeing Matty's [mccode v1] Advanced(ish) Level Upgrade Mod. http://criminalexistence.com/ceforums/index.php?topic=6683.0 I thought I would poke around and try and mod his mod a bit and make it work for v2. Also it should still work like McCodes does for the way it tallies the exp. Such as if you need 25% exp to lvl and you gain 50% more, when you level you will be 25% into the next level already. Unfortunatly if you need 25% and gain 125% you have to click the upgrade button twice to go through the levels. And as Cruisey says on Mattys post that can suck as people can save up their levels and get there faster. What I want to do is make it so you cant gain any more exp untill you click the Upgrade button but Im still learning so once again, Im just starting out so please be nice! OK. Here we go!!! Start by making a file called upgrade.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open up global_func.php and find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Last but not least put this where you want the [upgrade] button to go: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Pretty much copied and moved some tidbits from global_func.php and put them into the upgrade.php file instead and added Matty's "switch" to activate it. And that was all I did! Tested and works on my sight, hope it works for all of you! GL and thanx! Hit me a + if you like it. Later Quote
Danny696 Posted June 4, 2009 Posted June 4, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. looking good Quote
MrGi Posted June 6, 2009 Posted June 6, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. You for one, Are using way to many variables in the code. Makes it more hackable to the user interface. You dont need to endpage deal, Cause your bracket per end of code has already closed. Quote
Haunted Dawg Posted June 6, 2009 Posted June 6, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. You for one, Are using way to many variables in the code. Makes it more hackable to the user interface. You dont need to endpage deal, Cause your bracket per end of code has already closed. OMGZ!!! My game's full of variable's, does that mean im not secure against hack's? :o Quote
noddy Posted June 7, 2009 Posted June 7, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. You for one, Are using way to many variables in the code. Makes it more hackable to the user interface. You dont need to endpage deal, Cause your bracket per end of code has already closed. OMGZ!!! My game's full of variable's, does that mean im not secure against hack's? :o same :o damnit im going to get haxxored again >.< Quote
MrGi Posted June 7, 2009 Posted June 7, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. You for one, Are using way to many variables in the code. Makes it more hackable to the user interface. You dont need to endpage deal, Cause your bracket per end of code has already closed. OMGZ!!! My game's full of variable's, does that mean im not secure against hack's? :o same :o damnit im going to get haxxored again >.< Depending on the way you use your variables. It can be safe to use them, Cause 90% of the "hackers" out there dont/cant use variables to hack. Although, Just take a run through your codes, if you are a good coder, You can tell whether or not your variables are in a secured form. Quote
Haunted Dawg Posted June 7, 2009 Posted June 7, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. LOL.. variables: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. OMGZ!!! some one's gonna hack that!!!! http://www.php.net/manual/en/language.v ... basics.php yup a hacker is going to attack my variables -_- Quote
Miniman Posted June 7, 2009 Posted June 7, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. You for one, Are using way to many variables in the code. Makes it more hackable to the user interface. You dont need to endpage deal, Cause your bracket per end of code has already closed. OMGZ!!! My game's full of variable's, does that mean im not secure against hack's? :o same :o damnit im going to get haxxored again >.< Depending on the way you use your variables. It can be safe to use them, Cause 90% of the "hackers" out there dont/cant use variables to hack. Although, Just take a run through your codes, if you are a good coder, You can tell whether or not your variables are in a secured form. Care to demonstrate how I can stop my variables being 'hacked' or manipulated to a users advantage? This should be interesting... Quote
Haunted Dawg Posted June 7, 2009 Posted June 7, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. If he mean's that the $_POST, $_GET & $_REQUEST variable's, then that's just simple cense to secure get + post data. Quote
MrGi Posted June 8, 2009 Posted June 8, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Securing the Variables itsself is something that Myself has made security for after many months of trying. It is something not many people acutally think about, But I did. Quote
Haunted Dawg Posted June 8, 2009 Posted June 8, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. And gain, enlighten me on how the hell is a $variable = 'some thing'; hackable 0.o Quote
Kasabian Posted June 8, 2009 Posted June 8, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Im not too sure he knows what a variable is or what its used for lol Quote
MrGi Posted June 9, 2009 Posted June 9, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Okay, Per say I have a hacker. The variable $money is used. By gaining the access to 94% of viewable scripts. (Hacking) If the hacker knows what variable is in the scripts. $money=3000 Could possibly be changed within the scripting to per say, $money=120000 Just a short low down, Will post up more later. If you dont belive me, Oh well...If you do and want to learn more about it. Good for you If your going to dis me about my work, Fuk-Off! Quote
Haunted Dawg Posted June 9, 2009 Posted June 9, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Should i laugh or will some one else laugh for me? 0.o Quote
Kasabian Posted June 9, 2009 Posted June 9, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Should i laugh or will some one else laugh for me? 0.o hahahahahaha? or do you think there should me more? Quote
jonomatt Posted June 9, 2009 Posted June 9, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. i for one agree with MrGi he has got a point in the hacker thing.... Quote
Haunted Dawg Posted June 9, 2009 Posted June 9, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Yet, no one can attack a variable unless they have some jedy power's :D, no seriously, a $variable is not attackable! Facts... Quote
Becon Posted June 14, 2009 Author Posted June 14, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. First of its spelled Jedi...lol yeah. Im a dork. Just messin....Second... By gaining the access to 94% of viewable scripts. (Hacking) If the hacker knows what variable is in the scripts. $money=3000 Could possibly be changed within the scripting to per say, $money=120000 Seems that they have to HACK first BEFORE they can use the variable...in which case its too late. Once you gain access to 94% of peoples stuff there is only 6% of the game safe anyways. What you posted the first time makes me thing that they can gain access to that 94% with the variable...the last post says they can use the variable only AFTER they hacked the sight. Everyone kinda knows that dont they? Or am I misunderstanding?! Quote
Pieces Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. Is it possible to only make the upgrade button appear when they have enough exp. to level up? If so please help xD Quote
SouIAssassin Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Advanced(isher) Level Upgrade Mod. i like how someone always goes back to the point and all the coders and hackers i have spoke to i have never heard any of them say to me when coding don't use veribles becasue they can get hack this is the first i have heard of it can u give me another demo on how this can be done ;) Quote
Menice Posted January 3, 2011 Posted January 3, 2011 cannot get this to show up only when they have enough EXP for it to could someone please help Quote
josh-j-c Posted August 29, 2011 Posted August 29, 2011 Me Neither im also having no luck with the upgrade button actually showing ive given my user more then enough EXP to upgrade but the button just doesnt want to show.. Help would be awesome, Jc. Quote
Smokey Posted September 6, 2011 Posted September 6, 2011 If you added it correctly it should work, I just added it just as its posted (minus a couple edits because my energy and brave are different) and it worked perfectly. And only shows when there is enough EXP to level. Quote
josh-j-c Posted September 7, 2011 Posted September 7, 2011 Where abouts in your code did you put the [click here to level up] text ? Jc. Quote
Smokey Posted September 8, 2011 Posted September 8, 2011 (edited) Well, my codes are edited quite a bit, so in my case they are in a box in the middle of the index.php with a lot of other info, next to the persons level. But assuming you're using the base codes, it should be changed from this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To something like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Which is pretty simple really, you're just adding in the if statement but you have to make sure you close the print right before it and open a print after it. And if you don't replace the function check_level as stated in the first post, it surely wont show up because the Y won't be defined, it'll have no clue what the Y means. The only other thing is the upgrade.php file and it should work perfectly with those 3 things. Edited September 8, 2011 by Smokey Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.