Author Topic: Mental Stamina & Mining  (Read 1422 times)

X-maN

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Mental Stamina & Mining
« on: May 14, 2006, 11:22:07 pm »
does mental stamina have something to do with the sucess of mining?

and is mining just pure luck? or are other factors put in play?

Zan

  • Veteran
  • *
  • Posts: 1944
  • Just a regular guy, with an irregular soul
    • View Profile
    • Photography
Re: Mental Stamina & Mining
« Reply #1 on: May 14, 2006, 11:25:11 pm »
Mining is a combination of skill and luck. Mental stamina should stop you from mining when it's empty but according to my experience it only works occasionally for combat, not mining.

In the past there used to be different mining tools which would also make it easier to mine.

*wishes the master rock pick came back*
Zan Drithor, Member of the Vaalnor Council
Tyrnal Relhorn, Captain of the Vaalguard
Thromdir Shoake, Merchant
Giorn Kleaver, Miner.

Grayne Dholm, Follower of Dakkru

X-maN

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: Mental Stamina & Mining
« Reply #2 on: May 14, 2006, 11:43:00 pm »
so basically if i am able to mine with 0 mental stamina, i have the same odds of getting ores as if i had 100% ?

how about the place where i stand? does it have to do with anything? like if i stand close to another miner, or if i move to a different spot in the same mining area, are different spots in that same mining area better than others?


Zan

  • Veteran
  • *
  • Posts: 1944
  • Just a regular guy, with an irregular soul
    • View Profile
    • Photography
Re: Mental Stamina & Mining
« Reply #3 on: May 15, 2006, 08:23:30 am »
As far as I know I've been still able to mine just as well with no mental stamina than with a full bar, yes.

As for the spot ... some say it matters, that some specific locations have a higher level of succes than others. Others think it doesn't matter one bit. Personally I've always believed it might matter a bit and when I really don't get anything from a specific spot I'll move somewhere else and try my luck there.
Zan Drithor, Member of the Vaalnor Council
Tyrnal Relhorn, Captain of the Vaalguard
Thromdir Shoake, Merchant
Giorn Kleaver, Miner.

Grayne Dholm, Follower of Dakkru

Ecolem

  • Hydlaa Citizen
  • *
  • Posts: 379
    • View Profile
Re: Mental Stamina & Mining
« Reply #4 on: May 24, 2006, 01:51:34 pm »
i highly doubt the area where you mine dictates the odds of your success, its just a roll of the dice.

Kewoxxen

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Re: Mental Stamina & Mining
« Reply #5 on: May 26, 2006, 01:22:14 pm »
i highly doubt the area where you mine dictates the odds of your success, its just a roll of the dice.
so here is the part of the source code that determines your luck of finding ore. However i am not sure, that it is the very latest code used in the recent release, but as it appear luck depends on
skill, item quality (which tool you use), and the distance from the center of recource (so the place actually matters)
Good luck

 float roll = psserver->rng->Get();

    // Calculate factor for skill
    float f1 = event->dependency->GetCharacterData()->GetBaseSkill((PSSKILL)event->nr->skill->id);
    f1 /= event->nr->skill_level;

    // Calculate factor for item quality
    float f2 = event->dependency->GetCharacterData()->GetItemInSlot(PSCHARACTER_SLOT_RIGHTHAND)->GetItemQuality();
    f2 /= event->nr->item_quality;

    // Calculate factor for distance from center of resource
    csVector3 diff = event->nr->loc - event->position;
    float dist = diff.Norm();
    float f3 = 1 - (dist / event->nr->radius);

    printf("Probability:     %1.3f\n",event->nr->probability);
    printf("Skill Factor:    %1.3f\n",f1);
    printf("Quality Factor:  %1.3f\n",f2);
    printf("Distance Factor: %1.3f\n",f3);
    printf("Total Factor:    %1.3f\n",event->nr->probability * f1 * f2 * f3);
    printf("Roll:            %1.3f\n",roll);

    if (roll < event->nr->probability * f1 * f2 * f3)  // successful!