Quote:
Originally Posted by HF
fuck... bug found and fixed. Get brain and hand and...
open ai.obj and npcdata
find in ai.obj ".... : raid_archer"
and check this npc in npcdata for exist this param. This all...
But one problem. This skill no one... have "power_shot.." have "stun_shot" and different skill_level. What need to set in each npc and no will do error? 
|
I told this in very first post in this thread

maybe my english too bad?
[rus]
Я же об этом и сказал сразу

и надо не в AI править этот -1 на чтото, а именно в нпсдате добавить рейд арчерам скиллы. я добавил "наугад" кому стан кому повершот, на основе левела босса и уровня скилла.
[/rus]
TehUb3r, you have to edit npcdata, not modify default value in ai.obj. because raid_archer have very different levels ~30-60 it will be strange if they all use same skill.
about
:
Quote:
|
Invalid Despawn() called count[2]
|
problem in party_private and party_wizard class. two timers 1004 and 1006 have same operation conditions and both try to despawn mob.
Code:
EventHandler CREATED()
{
myself->AddTimerEx(1005,( 120 * 1000 ));
myself->AddTimerEx(1006,20000);
super;
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if( timer_id == 1005 )
{
if( myself->InMyTerritory(myself.sm) == 0 && myself.boss.alive != 0 && myself.p_state != 3 )
{
myself->InstantTeleport(myself.sm,myself->FloatToInt(myself.boss.x),myself->FloatToInt(myself.boss.value),myself->FloatToInt(myself.boss.z));
RemoveAllAttackDesire();
}
myself->AddTimerEx(1005,( 120 * 1000 ));
}
if( timer_id == 1006 )
{
if( myself.boss.alive == 0 )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
return;
}
}
myself->AddTimerEx(1006,20000);
}
if( 1004 == timer_id )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
}
else
{
myself->AddTimerEx(1004,20000);
}
}
super;
}
to fix it just remove 1006 or 1004 timer from ai thats all

.
GL with ai researching, thanks to sauron we have perfect decompiler.