Orochy Posted October 10, 2023 Posted October 10, 2023 I'm having a problem with the maximum limit at which the character attacks the monster, above 900 radius the character receives this message for being too far away! there are no barriers between the monster and the character. any solutions? the code is made in Cis 382. sorry for my bad english. https://www.mediafire.com/file/tmazk81pndn2u3v/farm.txt/file 1
0 Orochy Posted October 11, 2023 Author Posted October 11, 2023 32 minutes ago, LoVe+ said: try with geodata off and tell if same same with geodata off
0 LoVe+ Posted October 11, 2023 Posted October 11, 2023 (edited) well ... try again auto farm when you get same message stop auto farm systeem and dont do anything but try cast skill , same ? Edited October 11, 2023 by LoVe+
0 Orochy Posted October 11, 2023 Author Posted October 11, 2023 40 minutes ago, LoVe+ said: well ... try again auto farm when you get same message stop auto farm systeem and dont do anything but try cast skill , same ? same here
0 LordPanic Posted October 11, 2023 Posted October 11, 2023 6 hours ago, Orochy said: I'm having a problem with the maximum limit at which the character attacks the monster, above 900 radius the character receives this message for being too far away! there are no barriers between the monster and the character. Target radius is basically saying to ur bot to search for monsters in that radius. Your problem is skill radius, you have to make ur bot move closer to the target if skill range is lower than your target distance.
0 wongerlt Posted October 11, 2023 Posted October 11, 2023 usemagic change with player ai tryToCast 1
0 Orochy Posted October 12, 2023 Author Posted October 12, 2023 I spent some time researching the subject and the answer was in front of me... lol thanks for help guys! resolved.. private void doSkill(L2Skill skill, boolean isSelfSkill) { if (skill == null) { return; } if (isNecessarySkill(skill)) { if (_actor.isAttackingNow() || _actor.isCastingNow()) { _actor.getAI().setNextAction(new NextAction(AiEventType.READY_TO_ACT, IntentionType.CAST, () -> _actor.useMagic(skill, true, true))); } else { _actor.useMagic(skill, isSelfSkill, false); } } } 1
Question
Orochy
I'm having a problem with the maximum limit at which the character attacks the monster, above 900 radius the character receives this message for being too far away!
there are no barriers between the monster and the character.
any solutions? the code is made in Cis 382.
sorry for my bad english.
https://www.mediafire.com/file/tmazk81pndn2u3v/farm.txt/file
8 answers to this question
Recommended Posts