Jump to content

cheekybuttsweet

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cheekybuttsweet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ;D :-* Your Totally Awesome I will enter it tomorrow and let you know how it goes 2am in Australia right now though so im off to bed Thankyou so very much :-*
  2. aHH Mark You just used words i can not even pronounce no matter try and know what they mean, However.. If i batter my eyelids at you could you possibly take a look at what i want to have as my attack EXP gained and tell me if there is a possible forumla for it that i can use in the above code.. http://spreadsheets.google.com/pub?key=ptIcZAVOmMoXste4BeTeELw Really do appreciate your help..thanks so much
  3. Well i added your equation because i thought i could live with that. But it didnt work for me :'( This is the code i have which gives a random EXP { print "Your Victorious over {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and earned yourself $expperc% EXP!<br /> I changed it to this { print "Your Victorious over {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=$experience = $loserLevel / $winnerLevel; $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and earned yourself $expperc% EXP!<br /> But got a whole heap of errors :'( I know i really need to study this more as I am only new to it but it kinda needs fixing before I have the time to learn
  4. ahhh I see it now Its like a formula Ok.. I will have to rethink my excel table now as there is no way i can make a formula for what i had. Thanks heaps guys I kinda understand it allot better now At least i can get rid of the random anyway..lol I would love to show you the excel sheet and see if you could understand it.. Not on my computer right now though and its on that. Will get back to you THANKS
  5. Well this only gives a random number of EXp to the winner of the attack. What i want to be able to do it set the amount of exp given for winning. That way i can set it so that if a level 10 beats a level 5 they get 0.05 exp but if the same level 10 player beats a level 30 player they will get 15exp.. Not those exact numbers but you know what i mean.. An exact amount given rather than a random?? I dont know how to code that in
  6. I need to change a code in a game i am trying to help with. When you attack someone it gives a random amount of EXp (used to level up) I want to insert set amount of EXP using a table i made which is so much exp per what level the attacker and attackee is.. Not a random number.. The code now is: $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe); $expperc=(int) ($expgain/$ir['exp_needed']*100); But i have a table i made up in excel which i think is more fair.. Is there a way to do what i want?????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.