Click Me For New Forum
This forum is now a read only archive. You can view the contents but you will not be able to make new posts and registration is closed to new members. Please visit our new forum at www.aranockonline.com/forum where our community is now based. Thank you for your patience!
Click Me For New Forum
This forum is now a read only archive. You can view the contents but you will not be able to make new posts and registration is closed to new members. Please visit our new forum at www.aranockonline.com/forum where our community is now based. Thank you for your patience!
Click Me For New Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


....Our community has moved to a new home. Please follow the link above. This forum is read only for posperity....
 
HomePortalLatest imagesRegisterLog in

 

 Focus

Go down 
3 posters
AuthorMessage
Iktomi

Iktomi


Posts : 513
Join date : 2010-05-18
Age : 35
Location : Missouri

Focus Empty
PostSubject: Focus   Focus Icon_minitimeWed 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?
Back to top Go down
Lordlava

Lordlava


Posts : 3955
Join date : 2009-08-23
Location : The Land Down Under

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeWed 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.
Back to top Go down
Iktomi

Iktomi


Posts : 513
Join date : 2010-05-18
Age : 35
Location : Missouri

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeWed 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.
Back to top Go down
Melborne2




Posts : 10
Join date : 2010-07-18

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeWed 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.
Back to top Go down
Lordlava

Lordlava


Posts : 3955
Join date : 2009-08-23
Location : The Land Down Under

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeThu 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 ....
Back to top Go down
Melborne2




Posts : 10
Join date : 2010-07-18

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeThu 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?
Back to top Go down
Lordlava

Lordlava


Posts : 3955
Join date : 2009-08-23
Location : The Land Down Under

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeFri Jul 23, 2010 12:52 pm

The code appears to be unchanged.
Back to top Go down
Iktomi

Iktomi


Posts : 513
Join date : 2010-05-18
Age : 35
Location : Missouri

Focus Empty
PostSubject: Re: Focus   Focus Icon_minitimeFri Jul 23, 2010 3:43 pm

Sweet thanks a ton for at least checking it out Smile
Back to top Go down
Sponsored content





Focus Empty
PostSubject: Re: Focus   Focus Icon_minitime

Back to top Go down
 
Focus
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Click Me For New Forum  :: Game Chat :: Bugs-
Jump to: