Issue information

Issue ID
#6076
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 21, 2012 3:15
Last Post
Hercules Elf Bot
Jun 25, 2012 19:07
Confirmation
N/A

Hercules Elf Bot - Jun 21, 2012 3:15

Originally posted by [b]jTynne[/b]
For some reason, when you have 1 Base INT/DEX, Turn Undead never fails. ... lolwut

Hercules Elf Bot - Jun 21, 2012 3:31

Originally posted by [b]Euphy[/b]
That's sorta hilarious. :>

Hercules Elf Bot - Jun 21, 2012 3:39

Originally posted by [b]malufett[/b]
sorry can't reproduce...:)

Hercules Elf Bot - Jun 21, 2012 4:20

Originally posted by [b]jTynne[/b]
O_O Oh no~!

Hercules Elf Bot - Jun 21, 2012 4:25

Originally posted by [b]Ind[/b]
doesn't seem possible, the code has a cap of 70% success rate
[code]

#ifdef RENEWAL
i = 10*skill_lv + sstatus->luk + sstatus->int_ + status_get_lv(src)
+ 300 - 300*tstatus->hp/tstatus->max_hp;
#else
i = 20*skill_lv + sstatus->luk + sstatus->int_ + status_get_lv(src)
+ 200 - 200*tstatus->hp/tstatus->max_hp;
#endif
if(i > 700) i = 700;
[/code]
(1000 = 100%)

This post has been edited by Ind on Jun 21, 2012 4:32

Hercules Elf Bot - Jun 21, 2012 4:43

Originally posted by [b]jTynne[/b]
That is strange. Hrm, alright. Everyone on my server's able to do it, so.. I'll let you know what I find. x_x;

Hercules Elf Bot - Jun 22, 2012 13:13

Originally posted by [b]Angezerus[/b]
---
/edit Okay, it was wrong what I thougth, I deleted it

This post has been edited by Angezerus on Jun 22, 2012 13:43

Hercules Elf Bot - Jun 22, 2012 13:56

Originally posted by [b]malufett[/b]
that is not how rand() works in C/C++ not like in Java that it returns a double type from 0 to 1.....the modulo and a digit after it is the indicator of its max value...

Hercules Elf Bot - Jun 22, 2012 14:04

Originally posted by [b]Angezerus[/b]
Yea I know. Sorry, I figured it out. Even though as I see there is a func for random numbers between 0 and 1 in the random.c. But that's not the point :)

@jTynne

Did you upgrade your server? There was an update regarding TU's fail damage. It was very high because an error in the formula. It might be that without this revision, the attack overflows on your server with higher statuses, and it starts again from 0, but when you have low stats the original high damage appears, and this could look like that it was a success.

This post has been edited by Angezerus on Jun 22, 2012 14:06

Hercules Elf Bot - Jun 22, 2012 15:06

Originally posted by [b]jTynne[/b]
[s]We're at 16316.. was it updated after that? o.o[/s]

Ah! Thank you!

[url="http://sourceforge.net/apps/trac/rathena/changeset/16317/"]http://sourceforge.net/apps/trac/rathena/changeset/16317/[/url]

This post has been edited by jTynne on Jun 22, 2012 15:07