yet another question.

Anything regarding UO or Age of Valor
Locked
d.
Posts: 1119
Joined: Sat Aug 04, 2007 6:13 pm

yet another question.

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

yet another question.

Post 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
Honk if you love Jesus, text if you want to meet Him!
d.
Posts: 1119
Joined: Sat Aug 04, 2007 6:13 pm

yet another question.

Post 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
d.
Posts: 1119
Joined: Sat Aug 04, 2007 6:13 pm

yet another question.

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

yet another question.

Post 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
Honk if you love Jesus, text if you want to meet Him!
Locked