![]() |
|
|
#1 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
agent_of_slaughter
Code:
If ( 1 != 0 && 1 == 1 )
{
myself->GiveItem1(target, 7543, 1);
myself->SoundEffect(target, "ItemSound.quest_itemget");
}
If ( 0 != 0 && 0 == 1 )
{
myself->GiveItem1(target, 0, 0);
myself->SoundEffect(target, "ItemSound.quest_itemget");
}
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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Code:
if( 0 != 0 && 1 == 1 ) I can only think of debug code or that ncsoft use custom variables when coding the AI. |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2006
Posts: 118
|
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. |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Well... we need C4Compiler for remade full ai.obj
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Apr 2006
Posts: 120
|
I suspect this was for error checks from PTS l2npc (maybe it has some weird 'bugs'?).
Or left by previous version as 'backup' code... |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 55
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
that's probably code for future quest.
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|