Monk haste bug

Report any bugs on the Eternal War here.

Moderators: Bigby, Xianio

Locked
User avatar
T3hRedMage
Eternal War's Mortician (PU)
Posts: 912
Joined: Wed Mar 21, 2007 7:59 pm

Monk haste bug

Post by T3hRedMage »

Twelve Motion Stalking Puma is currently a 1 something/ 6 monk/ 10 assassin with haste amulet. I got on DM and destroyed his amulet and made him rebuy it right before me.

Why is this happening? He had the same amulet with 5 monk levels. Does assassin count toward monk now? I'm just confused.
User avatar
Musekaze
Corrupt Enslaver of the Damned
Posts: 1561
Joined: Mon Jan 29, 2007 8:32 pm
Location: Rochester, New York
Contact:

Post by Musekaze »

1rge/6monk/10 sin shouldnt be able to get a haste ammy. all i know is that my 5monk/8cleric can get it. i believe the formula is like monk must be 1/3 of total levels or something.
Pandemonium--Back in black, baby!

400 BABIES!
User avatar
Casas
Adept of Dark Incantations
Posts: 1188
Joined: Sat Dec 30, 2006 11:39 am
Location: S. Texas

Post by Casas »

40% of class levels are required for haste. 6/17 < 40% so he should have haste. For int division calc should go.. 60000/1700 = 35%
For such a lonely soul, you're having such a nice time.
User avatar
T3hRedMage
Eternal War's Mortician (PU)
Posts: 912
Joined: Wed Mar 21, 2007 7:59 pm

Post by T3hRedMage »

So he should ' NOT ' have haste, if it's not 40%?
User avatar
Casas
Adept of Dark Incantations
Posts: 1188
Joined: Sat Dec 30, 2006 11:39 am
Location: S. Texas

Post by Casas »

Oh sorry, forgot the shouldn't. Yes, he should not.. below the 40% quota, but it's nwn scripting.. annoying to do.
For such a lonely soul, you're having such a nice time.
User avatar
Rary
Eternal War's Undertaker (DM,Admin)
Posts: 1735
Joined: Mon Sep 18, 2006 2:01 pm
Location: Columbus, Ohio, USA
Contact:

Post by Rary »

He should have 6.8 monk levels at level 17 total to have it. The problem with Bioware before is 6.8 was really 6 so it would work. I have to muliple everything by 100 and then do calculations to make sure it comes out good.

When he bought new, did it work or no as well? (Maybe he had old haste ammy?)
Let me do a twice over on that script again.

Thanks for letting me know.

PS: Muze, it should be 1 monk level for every 2.5 total levels.
User avatar
Casas
Adept of Dark Incantations
Posts: 1188
Joined: Sat Dec 30, 2006 11:39 am
Location: S. Texas

Post by Casas »

Rary, recheck the script. See if it's this.. (Total Monk Levels) * 1000 / ( (Total Level) * 10 ) = whole number percentage, then compare that percentage to 40 and if it's lower, don't give them haste.

I don't remember how it was done..
For such a lonely soul, you're having such a nice time.
User avatar
Rary
Eternal War's Undertaker (DM,Admin)
Posts: 1735
Joined: Mon Sep 18, 2006 2:01 pm
Location: Columbus, Ohio, USA
Contact:

Post by Rary »

I think it was....
NWN Generic Script Code wrote: PC = The targetted player
TL = Total Level of PC
ML = Total Level of Monk
TL = TL*100
ML = ML*100
if(ML*2.5 > TL) THEN prevent haste
I believe the script goes something like that.
User avatar
Casas
Adept of Dark Incantations
Posts: 1188
Joined: Sat Dec 30, 2006 11:39 am
Location: S. Texas

Post by Casas »

Aha you can't compare it to 2.5, it gets rounded to 2 (I think). Instead, multiply ML by 100, and don't touch TL at all.

The number you get from that needs to be greater then 40 for monk to have haste. 40% of their total levels has to be monk to have haste.

So ML=*100

if(ML/TL > 40 ) allow haste. If they have more then 40% monk, they can have haste.
For such a lonely soul, you're having such a nice time.
User avatar
Rary
Eternal War's Undertaker (DM,Admin)
Posts: 1735
Joined: Mon Sep 18, 2006 2:01 pm
Location: Columbus, Ohio, USA
Contact:

Post by Rary »

Casas wrote:Aha you can't compare it to 2.5, it gets rounded to 2 (I think). Instead, multiply ML by 100, and don't touch TL at all.

The number you get from that needs to be greater then 40 for monk to have haste. 40% of their total levels has to be monk to have haste.

So ML=*100

if(ML/TL > 40 ) allow haste. If they have more then 40% monk, they can have haste.
Ahh, yes. Perfect. I bet that is what's happening.
Ok, then it will need an = too. So: if(ML/TL >= 40) allow haste

Thanks a million.
User avatar
Casas
Adept of Dark Incantations
Posts: 1188
Joined: Sat Dec 30, 2006 11:39 am
Location: S. Texas

Post by Casas »

Err multiply ML by 100 first, don't forget. Your welcome.
For such a lonely soul, you're having such a nice time.
User avatar
Bigby
Eternal War's Mortician (DM)
Posts: 48
Joined: Tue Jan 09, 2007 4:20 pm
Location: Columbus, Ohio
Contact:

Post by Bigby »

this should also be fixed.
To screw up a Linux box, you have to work at it; to screw up a Windows box, you just have to work on it.
Locked