K Kelrzhel Знаменитый Пользователь Сообщения 27 Розыгрыши 0 Репутация 0 Реакции 4 Баллы 1 225 28 Дек 2023 #1 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)
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)
WmzBot Постоялец Участник Сообщения 587 Розыгрыши 0 Решения 2 Репутация 68 Реакции 202 Баллы 1 075 28 Дек 2023 #2 hi brother, see AI script for 3 profession saggitarius quest, NPC winter Hunter Kadyth hit monster
K Kelrzhel Знаменитый Пользователь Сообщения 27 Розыгрыши 0 Репутация 0 Реакции 4 Баллы 1 225 28 Дек 2023 #3 Запрещено публиковать исходный код без 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?
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?
K Kelrzhel Знаменитый Пользователь Сообщения 27 Розыгрыши 0 Репутация 0 Реакции 4 Баллы 1 225 29 Дек 2023 #4 fixed, close topic