Problems with target_NPC

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Problems with target_NPC

#1 Post by erekosex »

Hi,

I have a problems with target_NPC, i want to use this function, to test, in Logar whith NPC "Dell"

Code: Select all

<waypoints>
		player:target_NPC("Dell");
		player:rest(2);
</waypoints>
In the log, i read "We didn't found NPC Dell"
Th bot turn

Can you help me please ? sorry my english is pretty bad
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Problems with target_NPC

#2 Post by rock5 »

It should work if you are standing next to Dell, unless you are mounted. If you are mounted you wont turn so you wont find the npc.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#3 Post by erekosex »

thk for your response

i'am not mounted and my character turn and he didn't find Dell
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Problems with target_NPC

#4 Post by rock5 »

Maybe it has something to do with the key mapped to target npcs?

Does it target any of the other npcs as it turns? I mean just target them, not open a dialog.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#5 Post by erekosex »

My Character not target any of the other npcs as it turns.
It turns, truns ...

My script :

Code: Select all

<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="-636" z="-5984"> player:target_NPC("Dell");
player:rest(2);
</waypoint>
</waypoints>
Can be that anything is missing?
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#6 Post by Administrator »

Attach a copy of your log.txt.
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#7 Post by erekosex »

Here is the file
Attachments
log.txt
(3.34 KiB) Downloaded 122 times
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#8 Post by Administrator »

And you made absolutely sure that you set J to your TARGET_NEAREST_FRIEND hotkey? Attach a copy of your profile, settings.xml, and bindings.txt.

You can find bindings.txt in My Documents/Runes of Magic/bindings.txt. If you could, also specify the full path for it (right click the file, go to properties; copy and paste it from there). It should look like this: C:\Documents and Settings\<User name>\My Documents\Runes of Magic
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#9 Post by erekosex »

New files
Thanks for your help
Attachments
bindings.txt
(3.93 KiB) Downloaded 135 times
settings.xml
(1.18 KiB) Downloaded 130 times
recolte.xml
My Profile
(6.83 KiB) Downloaded 123 times
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#10 Post by Administrator »

Ok, I found it. In your bindings.txt, I see this:

Code: Select all

TARGETNEARESTFRIEND CTRL+TAB 
Basically meaning that you have not set your hotkey in-game to J, but have the bot set to use J for the bot (and due to your language, it's unable to find bindings.txt).

You have a few options here:
  • Use settings.xml to set your ROMDATA_PATH:

    Code: Select all

    <option name="ROMDATA_PATH" value="C:/Whatever/Documents/Runes of Magic/" />
  • Try setting the TARGET_FRIEND hotkey in settings.xml to use CTRL+TAB

    Code: Select all

    <hotkey description="TARGET_FRIEND" key="VK_TAB" modifier="VK_CONTROL" />
  • Change your hotkey in-game to use J instead of CTRL+TAB
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#11 Post by erekosex »

Yes, it's but , i put int Settings.xml and configure key=J ingame

Code: Select all

<hotkey description="TARGET_FRIEND" key="J" modifier="" />
because i have a error with

Code: Select all

<hotkey description="TARGET_FRIEND" key="VK_TAB" modifier="VK_CONTROL" />
errror : Due to technical reasons, we don't supprot modifiers like CTRL/ALT/SHIFT for hotkeys at the moment. Please change your hotkey (and ingame key) CTRL-TAB fot hotkey TARGET_FRIEND

Thank very much
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#12 Post by Administrator »

If you set it in-game, it's not showing in your bindings.txt.

Just open it up (but make sure the game is closed first), and change this line:

Code: Select all

TARGETNEARESTFRIEND CTRL+TAB 
To:

Code: Select all

TARGETNEARESTFRIEND J 
Save it and then start the game client.
erekosex
Posts: 9
Joined: Tue Apr 27, 2010 8:06 am

Re: Problems with target_NPC

#13 Post by erekosex »

It's ok for me thanks a lot
Post Reply