[help]Is there a plugin to count the monsters nearby?

This section is created for developers and non-developers who think that he/she has a good (and realistic) idea that might contribute to the OpenKore community.

Moderator: Moderators

Message
Author
peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

[help]Is there a plugin to count the monsters nearby?

#1 Post by peeinginthepants »

when your character snatch or fly into a random place ,u maybe want to know how many active-attack monsters near your character to decide whether to attack or to snatch of fly again for avoiding death from too many monsters.

Perhaps we can use the count in attackSkillSlot to improve the efficiency.

THX :lol:

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#2 Post by EternalHarvest »

What do you exactly mean by "active-attack monsters"?

peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

[HELP]HOW CAN I GET THE QUANTITY OF THE MONSTERS NEARBY ?

#3 Post by peeinginthepants »

WHEN UR CHARACTER FLY INTO A NEW RANDOM POINT OF THE LOCKMAP ,THERE IS A NEED TO LOOK AROUND TO SEE IF THERE IS ENOUGH MONSTERS LEFT FOR UR CHARACTER TO DECIDE WHETHER TO USE AOE. SKILL TO KILL THE MONSTERS NEARBY OR FLY AGAIN TO SEARCH MORE MONSTERS TO KILL.

AND THEN , WE CAN SEE IF WE CAN GOT THE QUANTITY OF THE MONSTERS NEAR BY, SO THAT WE CAN IMPROVE THE EFFICIENCY OF THE BOTS BY BOTS JUDGING THE FIGURE OF QUANTITY.

SO MY QUESTION IS ,IS THERE ANY MACROS OF PLUGINS FOR ME TO GET THE QUANTITY OF THE MONSTERS NEARBY.
THX FOR SHARING UR WORK AND OPINION.

:lol: :lol:

peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#4 Post by peeinginthepants »

EternalHarvest wrote:What do you exactly mean by "active-attack monsters"?
those monsters like Familiar,Scorpion,Orc Warrior ...

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#5 Post by EternalHarvest »

IF THERE IS ENOUGH MONSTERS
teleportAuto_search
snatch of fly again for avoiding death from too many monsters
Easy to do manually, either by using $monstersList or $ai_v{temp}{searchMonsters} (current amount of search monsters); or by configuring monsters as always aggressive via mon_control and using options for teleporting from aggressives.

peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#6 Post by peeinginthepants »

Easy to do manually, either by using $monstersList or $ai_v{temp}{searchMonsters} (current amount of search monsters);
sorry ,i can't understand clearly.could u explain this more?
or by configuring monsters as always aggressive via mon_control and using options for teleporting from aggressives.
using aggressives may lead to a situation that if i make aggressives > 1 and then stop snatching ,my character roger continue snatching endlessly .

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#7 Post by EternalHarvest »

could u explain this more?
Openkore's internal variables, can be used in your macros (via @eval) and plugins.
using aggressives may lead to a situation that if i make aggressives > 1 and then stop snatching ,my character roger continue snatching endlessly .
I can't really understand what kind of situation you're describing here.

peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#8 Post by peeinginthepants »

I can't really understand what kind of situation you're describing here.
fine ,forget it.

could u give me a example about using $monstersList or $ai_v{temp}{searchMonsters} ? THX :lol:

maybe transform the one below:

automacro ag0 {
exclusive 1
aggressives < 2 #change this one
run-once 1
location dic_dun02
call {
do conf attackAuto 0
release ag1
}
}
automacro ag1 {
exclusive 1
aggressives >= 2 #change this one
run-once 1
location dic_dun02
call {
do conf attackAuto 1
release ag0
}
}

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#9 Post by EternalHarvest »

peeinginthepants wrote:
I can't really understand what kind of situation you're describing here.
fine ,forget it.
Maybe rephrase or elaborate it?
automacro ag0
automacro ag1
I still don't quite understand what exactly you need here. Doesn't teleportAuto_search do the same, initiating the attack only when there is enough monsters?

If you want to teleport from too many search monsters, use something like this in automacro conditions for macro with teleport:

Code: Select all

eval $ai_v{temp}{searchMonsters} >= 5

peeinginthepants
Noob
Noob
Posts: 7
Joined: 12 May 2012, 22:50
Noob?: Yes

Re: [help]Is there a plugin to count the monsters nearby?

#10 Post by peeinginthepants »

I still don't quite understand what exactly you need here. Doesn't teleportAuto_search do the same, initiating the attack only when there is enough monsters?

If you want to teleport from too many search monsters, use something like this in automacro conditions for macro with teleport:
here,assuming that my character can't teleport, his job is rogue, so he can snatch a monster instead of teleport to search monsters.

Post Reply