From The Mana World
("If (vitality + (luck / 3)) is greater than or equal to 97, then you are immune to poison ")
 
Line 2: Line 2:


I'd like to see where in the source code this is located, just out of curiosity. [[User:Hoogli|Hoogli]] 22:45, 17 August 2009 (UTC)
I'd like to see where in the source code this is located, just out of curiosity. [[User:Hoogli|Hoogli]] 22:45, 17 August 2009 (UTC)
:I believe this is the line here: [http://gitorious.org/tmw-eathena/mainline/blobs/master/src/map/skill.c#line8255] (Line number accurate as of e2f3dc6)
<pre>
case SC_STAN:
case SC_SILENCE:
case SC_POISON:
scdef=3+battle_get_vit(bl)+battle_get_luk(bl)/3;
break;
</pre>
:After the switch, the function ends if scdef is greater than or equal to 100:
<pre>
if(scdef>=100)
return 0;
</pre>
:Hope this helps. :) [[User:Freeyorp|Freeyorp]] 01:57, 18 August 2009 (UTC)

Revision as of 01:57, 18 August 2009

"If (vitality + (luck / 3)) is greater than or equal to 97, then you are immune to poison "

I'd like to see where in the source code this is located, just out of curiosity. Hoogli 22:45, 17 August 2009 (UTC)

I believe this is the line here: [1] (Line number accurate as of e2f3dc6)
case SC_STAN:
case SC_SILENCE:
case SC_POISON:
scdef=3+battle_get_vit(bl)+battle_get_luk(bl)/3;
break;
After the switch, the function ends if scdef is greater than or equal to 100:
if(scdef>=100)
return 0;
Hope this helps. :) Freeyorp 01:57, 18 August 2009 (UTC)