Iktomi
Posts : 513 Join date : 2010-05-18 Age : 35 Location : Missouri
| Subject: Focus Wed Jul 21, 2010 6:19 am | |
| I'm just saying cuz I heard lots of others mentioning losing focus alot more than we use to. Did someone change something? | |
|
Lordlava
Posts : 3955 Join date : 2009-08-23 Location : The Land Down Under
| Subject: Re: Focus Wed Jul 21, 2010 7:21 am | |
| No changes to the code in last 2 odd years that I know of.
You need to concentrate, look hard at the object of your spell, use the force ....
There are a number of factors that influence lost focus, one of which is just random. | |
|
Iktomi
Posts : 513 Join date : 2010-05-18 Age : 35 Location : Missouri
| Subject: Re: Focus Wed Jul 21, 2010 6:30 pm | |
| I was just curious if maybe it was connected with the small lag spikes that we've been having, people started to talk about at roughly the same time. | |
|
Melborne2
Posts : 10 Join date : 2010-07-18
| Subject: Re: Focus Wed Jul 21, 2010 7:26 pm | |
| It isn't just random, Luck is the biggest thing in V2, little does everybody know.. but Luck takes part in alot of everyday things each player does. Every 500 luck your chances of not losing focus increase by 1.. here is the default equation of Losing Focus; - Code:
-
int chance_base(int cn,int skill,int d20,int power) { int chance;
chance=d20*skill/max(1,power);
if (ch[cn].flags&(CF_PLAYER)) if (ch[cn].luck<0) chance+=ch[cn].luck/500-1;
if (chance<0) chance=0; if (chance>18) chance=18;
if (RANDOM(20)>chance || power>skill+(skill/2)) { do_char_log(cn,0,"You lost your focus!\n"); return -1; } return 0; }
int chance(int cn,int d20) { if (ch[cn].flags&(CF_PLAYER)) if (ch[cn].luck<0) d20+=ch[cn].luck/500-1;
if (d20<0) d20=0; if (d20>18) d20=18;
if (RANDOM(20)>d20) { do_char_log(cn,0,"You lost your focus!\n"); return -1; } return 0; } Easier to just paste how it works then to explain it. V2 code isn't a secret, you can download it open source and even when you had to pay for the license.. Aranock's license was free. | |
|
Lordlava
Posts : 3955 Join date : 2009-08-23 Location : The Land Down Under
| Subject: Re: Focus Thu Jul 22, 2010 6:07 am | |
| Read the code Mel. - Quote :
- if (ch[cn].luck<0)
If you have negative luck, from killing merchants, janitors etc then luck plays a big part. Otherwise .... | |
|
Melborne2
Posts : 10 Join date : 2010-07-18
| Subject: Re: Focus Thu Jul 22, 2010 12:22 pm | |
| Oh good eye, Lordlava, you do know what you're doing sometimes.
Though that is a copy/paste from the download that Ishtar provides and is the default values for losing focus. Elsewhere in the world things like this have been changed.. and have been for quite some time. Suppose I should have taken that into consideration before I had posted, Correct? | |
|
Lordlava
Posts : 3955 Join date : 2009-08-23 Location : The Land Down Under
| Subject: Re: Focus Fri Jul 23, 2010 12:52 pm | |
| The code appears to be unchanged. | |
|
Iktomi
Posts : 513 Join date : 2010-05-18 Age : 35 Location : Missouri
| Subject: Re: Focus Fri Jul 23, 2010 3:43 pm | |
| Sweet thanks a ton for at least checking it out | |
|