Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25.06.2009, 18:24   #21
Xavier
Guest
 
Posts: n/a
Default AI function GetAbnormalLevel problem

Oh

I'm outa ideas, usage of that function seems fine compared to old Ai examples :<

Before starting this thread I checked Suron's decompiled C4 AI and find out that 90% uses of GetAbnormalLevel function looks like this:

i1 = myself::GetAbnormalLevel( speller, myself::Skill_GetAbnormalType( DeBuff1 ) );

if( i1 == -1 )

{

// some code

}

else if( i1 == 10 )

{

}

or like this:

if( myself::GetAbnormalLevel( myself.sm, myself::Skill_GetAbnormalType( SpecialSkill ) ) <= 0 )

{

// some code

}

It checks the negative value of function, and.. if the function always returns -1 then 90% of code works fine. :)

Soo.. I'm outa ideas too now :D

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-25-2009, 06:24 PM. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:36.