DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 17, 2019, 03:32:30 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: original goldmine.php *** CRITICAL MATH ERROR? ***  (Read 3834 times)
0 Members and 1 Guest are viewing this topic.
« on: June 03, 2004, 09:28:55 AM »

ok. i've looked into this and PLEASE tell me this is not the way this should be. cuz it's WAY OFF.

listen to me first and then think about what i have to say then give me your input...

first the code...

output("At least you learned something about mining from this experience and have gained $exp experience.`n`n");
output("`3You may continue to play tommorrow`n");
debuglog("lost {$session['user']['gold']} gold and {$session['user']['gems']} gems by dying in the goldmine");
debuglog("prevexp was {$prevexp} - gained {$exp} experience and now has {$session['user']['experience']} experience by dying in the goldmine");

the original code starts at line #136. i added the $prevexp and 2nd debug to find out wtf is really going on here. but it doesnt take those lines of code or a genius to figure it out...

the prob is: $exp=$session[user][experience]*0.6;

as for example, if you have a player that is level 13 with 24,000 exp, and he dies in a cave in at the goldmine, the player dies, loses all his gold and gems, but gains 14,400 EXP!!!

do the math... 24,000 x 0.6 = 14,400

shouldn't this be 0.06??? giving the player only 1,440 exp? seems logical to me.

this is the debug log from my admin character showing this:
Thu, Jun 03
12:02:33 - GAME ADMIN lost 604 gold and 16 gems by dying in the goldmine
12:02:33 - GAME ADMIN prevexp was 99 - gained 59.4 experience and now has 158.4 experience by dying in the goldmine

and what the player saw when he died:
Perhaps the next adventurer will recover your body and bury it properly.
Fortunately you left your Stallion tethered outside. You know that it is trained to return to the village.
At least you learned something about mining from this experience and have gained 59.4 experience.

You may continue to play tommorrow


now seriously think about this. and i'm speaking to the programmers and developers of this game... the goldmine.php is not correct with the 0.6 EXP multiplier. thats an INSANE jump in experience just from a special event and dying. yer gaining +60% EXP??? come on!

thank you for your attention on this matter.
Mod God
Offline Offline

Posts: 573

I'm a newbie, plz forgive me!

View Profile WWW
« Reply #1 on: June 03, 2004, 09:35:43 AM »

I think the original idea is to reward the unlucky player that has lost gold, gems and maybe his mount with a huge amount of exp. I don't find it so crazy. And I know what means to lose a mount in the mine  Cry

So I don't think it's an error, just a gift to the unlucky digger.

Rgds Excalibur

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
« Reply #2 on: June 03, 2004, 10:07:12 AM »

i understand that it sucks to lose gold, gems, and possible mount.

but consider this.

a level 14/15 player with a stallion, 10-20k of gold, 5-10 gems and with 45,000 EXP

so lets say this player digs and experiences a cave in, that said player only loses 10-20k of gold, 5-10 gems, and his mount (worth 16 gems?)... big deal.

his gain however is 45,000 x 0.6 = +27,000 EXP.

27k EXP is almost impossible to gain at ANY point in this game. getting gems, gold, mounts can be easily re-acquired within time. but to gain 27,000 exp just for dying??? gimme a break.

« Reply #3 on: June 03, 2004, 10:13:43 AM »

That .6 is a .1 in the code that is part of 0.9.8.

Yes, it was a .6 in the 0.9.7 released code.  That was not intended and was fixed as soon as we noticed.

You can of course change it to whatever value *you* want.  You're the game admin after all.

FW Viper
« Reply #4 on: June 06, 2004, 06:00:22 AM »

note that by the time you have 25k exp... exp in of it's self becomes... pointless...
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
106 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search