Jump to content
MakeWebGames

setting xp for crimes


dlion98
 Share

Recommended Posts

setting xp for crimes

((WILL*0.8)/4)+(LEVEL/4)

(80% of the users current will divide 4) + (users level divided by 4)

eg

full will and level 1

(20) + (0.25)

=20.25 <<<<result

This is the number the user must get below when a random number is generated.

eg

10 = pass

20 = pass

21 and above = fail

or so thats what I heard, hope its right :hmmm:

Link to comment
Share on other sites

setting xp for crimes

you shouldnt be leveling. i think somewhere u have a thing that dabomstew use to use in mc1 in ur docrime.php he must of left it in there before distributing lite. it added 80 percent to his success rate.

look for this

if($ir['userid']==1) {$sucrate=$sucrate+80;}

 

or

 

if($userid==1) {$sucrate=$sucrate+80;}

 

sucrate might be spelled succrate im not sure. just use ctrl+f in your html editor...

Link to comment
Share on other sites

setting xp for crimes

 

that sounds familiar' date=' i have seen this on the forum elsewhere but couldn't find it. i'll be working this out all day, math never was my strong point :)[/quote']

Ya in one of the other topics, i posted a way you could "unlock" the exp from the success money. Cant remember where thought

Link to comment
Share on other sites

  • 3 months later...

Re: setting xp for crimes

i also need someone to help with crimes

i need someone to make 155 crime experience math things with the crime exp

won ohh its just the math and won exp not the whole crime i can do the writing

i need it to range from level 1 to 999....

also i need a little help wilth taking the caps away very minor i did it but get some errors like in bank

money is real tight now so i have to pay in donator packages

please help if real money is a must maybe we can work out a deal

i d even be willing to pay as soon as i make the money off the game!!!

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 11 months later...

Re: setting xp for crimes

 

Is there a way to seperate Experience from Success Money?

How would i go about doing that?

Yes there is, edit into staff_crimes then code it into the database then code it out of the docrime.php then insert xp gain into the crime from your crime table. Feel free to try this I haven't as such be warned.

Link to comment
Share on other sites

Re: setting xp for crimes

 

Yes there is, edit into staff_crimes then code it into the database then code it out of the docrime.php then insert xp gain into the crime from your crime table. Feel free to try this I haven't as such be warned.

Sorry i'm a little slow with coding and still in the process of learning as this is my first attempt at modifying scripts for games, as it is, i'm using this to learn as a for fun experience to improve on scripting.

Could you possibly explain this to me a bit? lol the coding/editting you just explained sounds more complicated than it probably is.

Link to comment
Share on other sites

Re: setting xp for crimes

Well first run this sql in your db

ALTER TABLE `crimes` ADD `xp` BIGINT( 24 ) NOT NULL DEFAULT '0';

then you need to update your staff_crimes.php and make something to edit xp there. Next you need to edit docrime.php and where the code bases off the money make it check the sql according to the sql you just entered. You should run a back up before you attempt this.

Link to comment
Share on other sites

Re: setting xp for crimes

It might run into 1 or 2 error messages but I don't *think* that should be an issue. Its sorta just is figuring out your formula in the game. But be sure to make a back up as I don't want to be held responsible if you screw your site up.

Link to comment
Share on other sites

Re: setting xp for crimes

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1)' at line 1

Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'test', '1', '((WILL*0.8)/1.1)+(LEVEL/4)', '50', 0, 0, '3', 'testing', 'yay', 'no', 'shit', 1, 'dang it', 1),1)

 

i tested your code this is what i received.

Link to comment
Share on other sites

Re: setting xp for crimes

 

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1)' at line 1

Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'test', '1', '((WILL*0.8)/1.1)+(LEVEL/4)', '50', 0, 0, '3', 'testing', 'yay', 'no', 'shit', 1, 'dang it', 1),1)

 

i tested your code this is what i received.

hm... I think I figured it out. I need a picture of your staff_crimes.php and your docrime.php to double check. I believe its just theres not enough fields for it to fit. And it got screwed up maybe.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...