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 » Wed May 05, 2010 8:11 am

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 » Wed May 05, 2010 10:41 am

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 » Wed May 05, 2010 12:10 pm

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 » Thu May 06, 2010 2:26 am

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 » Thu May 06, 2010 4:37 am

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: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#6 Post by Administrator » Thu May 06, 2010 2:05 pm

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 » Thu May 06, 2010 4:06 pm

Here is the file
Attachments
log.txt
(3.34 KiB) Downloaded 114 times

User avatar
Administrator
Site Admin
Posts: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#8 Post by Administrator » Thu May 06, 2010 4:12 pm

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 » Fri May 07, 2010 5:44 am

New files
Thanks for your help
Attachments
bindings.txt
(3.93 KiB) Downloaded 127 times
settings.xml
(1.18 KiB) Downloaded 122 times
recolte.xml
My Profile
(6.83 KiB) Downloaded 115 times

User avatar
Administrator
Site Admin
Posts: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#10 Post by Administrator » Fri May 07, 2010 1:55 pm

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 » Fri May 07, 2010 2:58 pm

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: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Problems with target_NPC

#12 Post by Administrator » Fri May 07, 2010 8:02 pm

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 » Sat May 08, 2010 2:41 am

It's ok for me thanks a lot

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest