help

Kelrzhel

Знаменитый
Пользователь
Сообщения
26
Розыгрыши
0
Репутация
0
Реакции
4
Баллы
1 225
https://mmo-dev.info/rules/#rule-4_5 https://mmo-dev.info/rules/#rule-3_3
Hello, i want to make when a monster sees another monster with id = 37002 in a radius of 1500 to start attacking it.. is that possible
Interlude AI

till now i did like this but i doubt it is correct cause it doesnt work

HTML clipboard
EventHandler SEE_CREATURE( creature )
{
if( creature.id == 1037002 )
{
myself::AddAttackDesire( creature.id, 100, 5000 );
}
}
(i miss the radius)
 

hi brother, see AI script for 3 profession saggitarius quest, NPC winter Hunter Kadyth hit monster

1703754188288.png
 
Запрещено публиковать исходный код без BB-кода — CODE
thank you


HTML clipboard
EventHandler ATTACKED( attacker, c1 )
{
myself::SetCurrentQuestID( 83 );
c1 = attacker;
if( c1.master )
{
c1 = c1.master;
}
if( c1.is_pc == 0 )
{
myself::AddAttackDesire( attacker, 1, 2000 );
}
super;
}


propably is this method but what to edit to place my "enemy" npc id in order to make him attack?
 
fixed, close topic
 
Назад
Сверху Снизу