Page 1 of 1

Problems with target_NPC

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

Re: Problems with target_NPC

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

Re: Problems with target_NPC

Posted: Wed May 05, 2010 12:10 pm
by erekosex
thk for your response

i'am not mounted and my character turn and he didn't find Dell

Re: Problems with target_NPC

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

Re: Problems with target_NPC

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

Re: Problems with target_NPC

Posted: Thu May 06, 2010 2:05 pm
by Administrator
Attach a copy of your log.txt.

Re: Problems with target_NPC

Posted: Thu May 06, 2010 4:06 pm
by erekosex
Here is the file

Re: Problems with target_NPC

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

Re: Problems with target_NPC

Posted: Fri May 07, 2010 5:44 am
by erekosex
New files
Thanks for your help

Re: Problems with target_NPC

Posted: Fri May 07, 2010 1:55 pm
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

Re: Problems with target_NPC

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

Re: Problems with target_NPC

Posted: Fri May 07, 2010 8:02 pm
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.

Re: Problems with target_NPC

Posted: Sat May 08, 2010 2:41 am
by erekosex
It's ok for me thanks a lot