EZ Server

General Category => General Discussion => Topic started by: Xiggie | Stone on April 15, 2013, 02:07:13 pm



Title: 65kac on a lvl 1 wizard?
Post by: Xiggie | Stone on April 15, 2013, 02:07:13 pm
What's up with this? Hack or glitch or what?

Dankstorage (http://www.ezserver.online/magelo/character.php?char=Dankstorage)

(http://i179.photobucket.com/albums/w281/Xiggie/wtf-1_zpseba25ab3.jpg) (http://s179.photobucket.com/user/Xiggie/media/wtf-1_zpseba25ab3.jpg.html)


Title: Re: 65kac on a lvl 1 wizard?
Post by: Anuli on April 15, 2013, 03:23:34 pm
 That is one macho wizard! He must have amazing armored skin


Title: Re: 65kac on a lvl 1 wizard?
Post by: Natedog on April 15, 2013, 03:38:15 pm
Probably using the Bard song which is buggy as hell.


Title: Re: 65kac on a lvl 1 wizard?
Post by: lerxst2112 on April 15, 2013, 04:34:30 pm
Mob::GetAC() returns an unsigned number, but it isn't stored as unsigned.  So, if he somehow had -3 AC it would be returned as 65533 instead.


Title: Re: 65kac on a lvl 1 wizard?
Post by: Xiggie | Stone on April 15, 2013, 05:41:18 pm
Thank you lerx that seems to be the most plausible explanation. I guess the next question is, is that effective ac? And is it repeatable?


Title: Re: 65kac on a lvl 1 wizard?
Post by: Natedog on April 15, 2013, 06:27:58 pm
I created a level 1 Wizard ... and it has 65,534 AC ... /shrug ... didnt use any buffs just BASE stats lol


Title: Re: 65kac on a lvl 1 wizard?
Post by: Hunter on April 15, 2013, 07:03:41 pm
Should be fixed now.

Anyone over 60k AC will get 0 AC.

Reloaded quest in Surefall and Nexus.

Other zones will update after reboot, for when someone log in for first time in other zones and updates etc.

Updates are on I think 12 hr timer currently. Can't update anymore than that.

I manually edited the wizards AC to 0.

Enjoy!


Title: Re: 65kac on a lvl 1 wizard?
Post by: lerxst2112 on April 15, 2013, 07:35:13 pm

Ideally, the code should be fixed to return the proper signed number.  There are a few places where the perl return value and the actual value the server is using don't agree either in sign or size.  If you do want to clamp/ignore it, any value over 32767 would have been negative.

Does the AC show negative in the stats page on the client or is it capped at 0?

I'm guessing this code from Client::CalcAC() is the issue:
Code:
	if (m_pp.class_ == WIZARD || m_pp.class_ == MAGICIAN || m_pp.class_ == NECROMANCER || m_pp.class_ == ENCHANTER) {
//something is wrong with this, naked casters have the wrong natural AC
// mitigation = (spellbonuses.AC/3) + (GetSkill(DEFENSE)/2) + (itembonuses.AC+1);
mitigation = (GetSkill(DEFENSE) + itembonuses.HeroicAGI/10)/4 + (itembonuses.AC+1);
//this might be off by 4..
mitigation -= 4;

Based on the comments, it looks like it's known the math is a bit dodgy.  On a completely nude brand new caster I'd guess they have a defense skill of 1, so:

(1+0/10)/4 + 1 - 4, or simplified as (1-4) = -3.

Since the server uses the real value in any calculation, and once they put on any piece of armor with AC and/or raise their defense skill it's probably not an issue as far as indestructible level 1 wizard is concerned.  It is funny though. :)


Title: Re: 65kac on a lvl 1 wizard?
Post by: actarus on April 15, 2013, 10:32:13 pm
lmao thats too funny . he is my storage mule for cg/fg items i keep for my alts... atleast i can say i was top dog atleast once ;p


Title: Re: 65kac on a lvl 1 wizard?
Post by: Xiggie | Stone on April 15, 2013, 11:04:55 pm
And screenshotted for prosperity too.