Welcome, Guest. Please login or register.
Did you miss your activation email?
November 29, 2024, 07:08:37 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: 65kac on a lvl 1 wizard?  (Read 7198 times)
Xiggie | Stone
Legend
*******
Posts: 2119



View Profile
« on: April 15, 2013, 02:07:13 pm »

What's up with this? Hack or glitch or what?

Dankstorage

Logged

Anuli
Full Member
***
Posts: 210


View Profile
« Reply #1 on: April 15, 2013, 03:23:34 pm »

 That is one macho wizard! He must have amazing armored skin
Logged
Natedog
Master
******
Posts: 830


View Profile
« Reply #2 on: April 15, 2013, 03:38:15 pm »

Probably using the Bard song which is buggy as hell.
Logged

lerxst2112
Hero Member
*****
Posts: 724


View Profile
« Reply #3 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.
Logged
Xiggie | Stone
Legend
*******
Posts: 2119



View Profile
« Reply #4 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?
Logged

Natedog
Master
******
Posts: 830


View Profile
« Reply #5 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
Logged

Hunter
EZ Server GM
Legend
*******
Posts: 8100


EZ Server GM


View Profile
« Reply #6 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!
« Last Edit: April 15, 2013, 07:25:32 pm by Hunter » Logged

Hunter - EZ Server GM
lerxst2112
Hero Member
*****
Posts: 724


View Profile
« Reply #7 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. Smiley
Logged
actarus
Newbie
*
Posts: 23


View Profile
« Reply #8 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
Logged
Xiggie | Stone
Legend
*******
Posts: 2119



View Profile
« Reply #9 on: April 15, 2013, 11:04:55 pm »

And screenshotted for prosperity too.
Logged

Pages: [1]
Print
Jump to:  

Recent

Stats

Members
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 298
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 308
Total: 308
TinyPortal v1.0 beta 4 © Bloc