UO Gamers:  Demise


Reply
 
Thread Tools Display Modes
  (#1) Old
KraZ Offline
Newbie
 
Posts: 59
Join Date: Sep 2009
Location: Brazil
Default Alchemy Bonus - Potions - 07-16-2010

Reading UOGuide we have the following description:
As your skill improves you gain a Enhance Potions bonus of 10% for every 33 skill points achieved (30% at GM). This is on top of any bonus given by your equipment and hence not subject to your equipment cap (granting you a maximum benefit of 80%).

RunUO enhance potions bonus method, BasePotion.cs:
Code:
public static int EnhancePotions( Mobile m )
{
	int EP = AosAttributes.GetValue( m, AosAttribute.EnhancePotions );

	int cap = 50 + m.Skills.Alchemy.Fixed / 330 * 10;

	if ( Core.ML && EP > cap && m.AccessLevel <= AccessLevel.Player )
		EP = cap;

	return EP;
}
According to this method, RunUO fix the cap, only, but do not apply the bonus given by alchemy skill (you need to have in items 80% to reach this cap, instead of 50% items and 30% skill bonus.

This should be a solution to this thread:
http://uodemise.com/forum/showthread.php?t=143526

Please let me know if I got it all wrong (maybe UOGuide...). Attached code.
Attached Files
File Type: patch BasePotion.patch (717 Bytes, 11 views)

Last edited by KraZ; 07-16-2010 at 04:40 AM.
   
Reply With Quote
  (#2) Old
Bama Online
Bug Hunter
 
Posts: 866
Join Date: Nov 2009
Default Re: Alchemy Bonus - Potions - 07-16-2010

Quote:
Originally Posted by KraZ View Post
50% items and 30% skill bonus.
This is how it works on osi

The only way to reach the 80% cap is with the 30% skill bonus from being GM in alchemy

GM alchemy + 50% EP from items = 80% cap


I would rather want everything and get something than to want nothing and get it all. My posts now contain 10% more Vlado You Is NOB
   
Reply With Quote
  (#3) Old
KraZ Offline
Newbie
 
Posts: 59
Join Date: Sep 2009
Location: Brazil
Default Re: Alchemy Bonus - Potions - 07-16-2010

So, confirmed this RunUO error?
According to the method I posted RunUO increase the cap to 80% but you must reach in items (AosAttribute.EnhancePotions), except if there is another method or AosAttribute.EnhancePotions checks for skill bonus.
   
Reply With Quote
  (#4) Old
El'ven Offline
Forum Novice
 
Posts: 421
Join Date: Nov 2009
Default Re: Alchemy Bonus - Potions - 07-26-2010

+25% ring
+30% brace of alchemy , minor arti from paragon
+30% gm skill

should be 85% the most i think, isn't it ?
   
Reply With Quote
  (#5) Old
KraZ Offline
Newbie
 
Posts: 59
Join Date: Sep 2009
Location: Brazil
Default Re: Alchemy Bonus - Potions - 07-27-2010

Not really, there is a cap of 50% IN ITEMS, if you are GM alchemist an ADDITIONAL 30% should be applied (10% EP per 33% alchemy skill) = 80% EP cap
   
Reply With Quote
  (#6) Old
Esqarrouth Online
Forum Expert
 
Posts: 2,519
Join Date: Dec 2005
Location: Ankara
Default Re: Alchemy Bonus - Potions - 4 Weeks Ago

fixed..
enhance pot attribute in alchemy wasnt set. this causes alchemy to return ep attribute 50. if the item bonus passes 80 it starts to look at the skill. because it passes the cap.

Code:
int alchemyBonus = m.Skills.Alchemy.Fixed / 330 * 10;

			int EP = AosAttributes.GetValue( m,  AosAttribute.EnhancePotions ) + alchemyBonus;

			int cap = 50 + alchemyBonus;

			if ( Core.ML && EP > cap && m.AccessLevel <=  AccessLevel.Player )
				EP = cap;


There is no "good" or "evil", Only the truly powerful will survive!

Last edited by Esqarrouth; 4 Weeks Ago at 06:31 AM.
   
Reply With Quote
  (#7) Old
KraZ Offline
Newbie
 
Posts: 59
Join Date: Sep 2009
Location: Brazil
Default Re: Alchemy Bonus - Potions - 4 Weeks Ago

I've posted a fix... validation needed.
   
Reply With Quote
  (#8) Old
Jacek.Kosiarz Offline
Forum Expert
 
Posts: 4,451
Join Date: Mar 2008
Location: Poland
Default Re: Alchemy Bonus - Potions - 3 Weeks Ago

you can gain alchemy ep bonus from sphynx as well, so max should be 30gm + 30 alchemist brac + 25 ep ring + 25 ep sphynx = 110 ep


Till I collapse I’m spilling these raps long as you feel em
Till the day that I drop you’ll never say that I’m not killing them
  Send a message via MSN to Jacek.Kosiarz Send a message via Skype™ to Jacek.Kosiarz 
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com