![]() |
...after decompilation. Stranges in npc
agent_of_slaughter
Code:
If ( 1 != 0 && 1 == 1 )But... this code confused me. - two identical conditions If ( 0 != 0 && 0 == 1 ) - two strange conditions If ( 0 != 0 && 0 == 1 ) 0 != 0 and 0 == 1??? Madness... - GiveItem, id=0, amount 0 what is it? debug code? Horror. Is very interesting to examine the code in nps. Much interesting it is possible there to find. |
Code:
if( 0 != 0 && 1 == 1 )I can only think of debug code or that ncsoft use custom variables when coding the AI. |
There are hundreds of such examples, like
"myself->GiveItem1(target,0,0);" exists 1170 times in whole AI... "if ( 1 == 1 )" 476 times "0 != 0" 2554 times "0 == 1" 4541 times... And one might wonder why AI has 140 MB... ;P Prolly they had some erros in questdata.txt file for nasc. |
Well... we need C4Compiler for remade full ai.obj
|
I suspect this was for error checks from PTS l2npc (maybe it has some weird 'bugs'?).
Or left by previous version as 'backup' code... |
Quote:
|
Quote:
|
that's probably code for future quest.
|
| All times are GMT. The time now is 15:16. |