Hello,
My bot is currently having issues detecting the NPC around it. It is capable of logging them, but the NPC are not visible in console. This is in turn causing me issues when it comes storing items or using any other NPC related actions. Specifically storage.
Some key notes:
The bot is fully up to date
Initially it was using the storage perfectly but now it merely states, "There is no [NPC] at [city] [x] [y]"
Does anyone have any idea how to fix this?
Thanks in advance.
NPC Detection Issues
Moderator: Moderators
-
- Noob
- Posts: 5
- Joined: 07 Aug 2011, 15:14
- Noob?: No
Re: NPC Detection Issues
After some observation and lack of sleep, I've discovered that the bot is able to detect the NPC again once it relogs. My messy but working solution is to config the bot to relog whenever it is in town. Obviously make sure you put a long timeout on this doCommand.
If anyone comes up with a proper solution, please let me know.
If anyone comes up with a proper solution, please let me know.
-
- Human
- Posts: 46
- Joined: 07 Apr 2010, 12:11
- Noob?: Yes
Re: NPC Detection Issues
interesting, have you confirmed the coordinates are correct?
Some tables are outdated in IRO, and due to all the recent Renewal changes the npc's may have moved.
Keep us posted if the npc coordinates are correct.
Some tables are outdated in IRO, and due to all the recent Renewal changes the npc's may have moved.
Keep us posted if the npc coordinates are correct.
-
- Noob
- Posts: 5
- Joined: 07 Aug 2011, 15:14
- Noob?: No
Re: NPC Detection Issues
Update**
My solution isn't working out so hot after all. I am currently working on a way to fix it, but here is what I believe needs to happen.
What needs to occur for the bot to storage successfully is that it needs to relog within a short distance of the NPC that it wishes to use. For what ever reason the bot is not capable of detecting previously register NPC during a given session and relogging appears to reset that. Now the issues that I am having is that the doCommand is not executing once the bot attempts to autostorage because the bot appears to get caught in the storage loop.
1.We need to set it up so that the bot moves to a desired destination (near the NPC).
2. Relogs
3. Executes the StorageAuto, getAuto, or sellAuto commands. Else it gets caught in a loop.
More on this once I do some more snooping. Any help would be appreciated though.
My solution isn't working out so hot after all. I am currently working on a way to fix it, but here is what I believe needs to happen.
What needs to occur for the bot to storage successfully is that it needs to relog within a short distance of the NPC that it wishes to use. For what ever reason the bot is not capable of detecting previously register NPC during a given session and relogging appears to reset that. Now the issues that I am having is that the doCommand is not executing once the bot attempts to autostorage because the bot appears to get caught in the storage loop.
1.We need to set it up so that the bot moves to a desired destination (near the NPC).
2. Relogs
3. Executes the StorageAuto, getAuto, or sellAuto commands. Else it gets caught in a loop.
More on this once I do some more snooping. Any help would be appreciated though.
-
- Noob
- Posts: 5
- Joined: 07 Aug 2011, 15:14
- Noob?: No
Re: NPC Detection Issues
Alright, I finally have a working solution. In order to execute the commands I mentioned earlier you need to use a macro.
It is important to note that the key to this is relogging within 1-3 cells of the NPC you wish to use as the bot will not register if you do not. After a lot off hard work I present you this simple macro.
Note that in order for this to work you need the macro plug in which can be obtained through the openkore wiki.
Cheers
It is important to note that the key to this is relogging within 1-3 cells of the NPC you wish to use as the bot will not register if you do not. After a lot off hard work I present you this simple macro.
Code: Select all
automacro geffenStorage {
map geffen
location not geffen 122 62
call geffenStorage
timeout 300
}
macro geffenStorage {
log geffenStorage is executing
do ai manual
pause 1
log Moving near NPC
do move 122 62
pause 30
do relog 5
pause 1
do ai on
pause 1
log geffenStorage was successful
}
Cheers

-
- Noob
- Posts: 5
- Joined: 07 Aug 2011, 15:14
- Noob?: No
Re: NPC Detection Issues
I would like to gift you all my latest macro. It is used to gain access to the Eden Group so that you can get your Eden VIP buffs.
*Edited for clarity and errors
*Edited for clarity and errors
Code: Select all
###Variables###
$storage = 0
###Automacros###
automacro geffenStorage {
map geffen
location not geffen 122 62
call geffenStorage
timeout 300
}
automacro geffenEG {
var storage == 1
map geffen
location not geffen 122 62
call geffenEG
timeout 300
}
###Macros###
macro geffenStorage {
log geffenStorage is executing
do ai manual
pause 1
log Moving near NPC
do move 122 62
pause 30
do relog 5
pause 1
do ai on
pause 1
log geffenStorage was successful
$storage++ ##Allows the Eden Group Macro to execute
}
macro geffenEG {
log geffenEG is executing
do ai manual
pause 1
log Moving to Eden Group NPC
pause 1
do move 131 66
pause 10
do relog 5
pause 10
log Talking to Eden NPC
pause 1
do talknpc 132 66 c c r0
pause 5
do talknpc 26 15 c n
pause 3
log Buffs gained
pause 1
do move 29 10
pause 5
do ai on
pause 1
$storage-- ##Resets the variable to 0 so that the bot will only go to Eden group after using the storage.
pause 1
log geffenEG was successful
}