Page 1 of 1

yet another question.

Posted: Mon Dec 17, 2007 11:16 am
by d.
I know the code for alchemy bonus has been re-written. What is the exact formula now. Also, does 120 alchemy give a larger bonus, or is it the same as 100 alchemy?

Archived topic from AOV, old topic ID:1908, old post ID:12379

yet another question.

Posted: Mon Dec 17, 2007 7:36 pm
by Red Squirrel
This is the function that checks enhance pots:

Code: Select all

		public static int GetEnhancePot(Mobile m)
		{
		if(m==null)return 0;
		int val=AosAttributes.GetValue( m, AosAttribute.EnhancePotions );
		
		int cap = 50 + (10*((int)(m.Skills[SkillName.Alchemy].Value/33)));
		
		if(val>cap)val=cap;
		
		
		val+=(int)(m.Skills[SkillName.Alchemy].Value/5);
		
		return val;
		}
So the EP cap gets hired depending on alchemy, and on top of that you get EP over the cap from the skill alone.

In testing, this made greater heal pots heal 50 points with max configuration. Though this sort of seems high so I may need to cap that at some point but I'm leaving it in unless it becomes a real issue. There is a delay between use of pots afterall, and mortal/nox can stop it. Healing skill heals about that much and is faster.

Archived topic from AOV, old topic ID:1908, old post ID:12409

yet another question.

Posted: Mon Dec 17, 2007 9:57 pm
by d.
yea, it seems like a lot, but considering how eassy it is to get 150dex + 120 healing on here, or having 4/6 chiv, its really not that amazing.

Archived topic from AOV, old topic ID:1908, old post ID:12412

yet another question.

Posted: Mon Dec 17, 2007 9:59 pm
by d.
so okay, 120 alchemy does do more than 100 alchemy according to that script. However, with 120 alchemy, what is the cap on item EP? and what about GM? I'm not the most literate when it comes to reading scripts =p.

Archived topic from AOV, old topic ID:1908, old post ID:12413

yet another question.

Posted: Mon Dec 17, 2007 10:17 pm
by Red Squirrel
Theres actually no cap at that point, so if you were to get 0xffff alchemy (max you can get, technically speaking) then EP cap would be super huge.

At 120 the EP cap would be about 86 (50+10*(120/33))

At 0xffff (which is impossible) the cap would be 19909 (50+10*(65535/33))

Archived topic from AOV, old topic ID:1908, old post ID:12414