Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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 >.<

Posted

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.

Posted

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...

Posted

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.

Posted

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!

Posted

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?!

Posted

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

Posted

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 ;)

  • 1 year later...
  • 7 months later...
Posted

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.

Posted

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.

Posted (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 by Smokey

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...