Page 2 of 3

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 9:03 am
by rock5
I'm not sure of this but do you have "Click to move" enabled in the game settings?

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 9:20 am
by hamstaaa
yes, CTM is always activated ;) ID dont work too (see in my last post)

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 9:43 am
by lisa
have you tried with any other NPC?
or maybe even a different character?

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 9:55 am
by hamstaaa
not yet, lisa. i tried it also with "sturobold"(teleport npc)... german client...same problem

what i dont understand is...he target Monsters normally all the way(targetting etc), but now cant FIND NPC anymore.

what command use the bot to target Merchants and NPC? maybe i can try it manual from commandline.

because if im in front of NPC and press "target next friend"(strg+tab). he target the NPC.

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:09 am
by lisa

Code: Select all

player:target_NPC(_npcname)
Obviously replace _npcname with the name of the NPC or the ID

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:12 am
by rock5
hamstaaa wrote:because if im in front of NPC and press "target next friend"(strg+tab). he target the NPC.
The bot doesn't use "target next friend" key. It changes an address in memory then attacks (which is the same as clicking).

The command line function is

Code: Select all

player:target_NPC("Fadiya Royil")
That should select the npc and open it's dialog.

You can take a furthur step back and try the function that finds the npc.

Code: Select all

npc = player:findNearestNameOrId("Fadiya Royil") if npc then table.print(npc) end

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:21 am
by hamstaaa
rock, can i run the second code as a ingamemacro? with /RoMscript or so?

i watching something confuses me...

it look like he already target the NPC(because of the green circle under the NPC) but the NPC is NOT in my "target" so i can't see the name of the NPC right next to my name on the top of RoM window.

normally when a npc is not anymore targetted(ESC, click on ground) the green circle unter NPC disappears,or? *confused*

hope u understand what i mean ;)

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:28 am
by rock5
They are both rombot commandline functions. Just run this first to get to the commandline.

Code: Select all

rom/bot path:commandline

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:54 am
by hamstaaa
tried both commands

Code: Select all

        RomBot command line
Type in 'q' (without quotes) to quit.
Command> npc = player:findNearestNameOrId("Fadiya Royil") if npc then table.print(npc) end
Command> player:target_NPC("Fadiya Royil")
Wir versuchen den NPC Fadiya Royil zu finden:
Wir können den NPC Fadiya Royil nicht finden!
Command> npc = player:findNearestNameOrId("118307") if npc then table.print(npc) end
Command> npc = player:findNearestNameOrId(118307) if npc then table.print(npc) end

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 11:10 am
by hamstaaa
dudes....i think there is something wrong with my main-char :o or the new zones in RoM

i tried the mrc_optimized script with my character an LOOOL :lol:

Code: Select all

Drücke MACRO: RoMScript ausführen "AcceptQuest()".
Wir versuchen den NPC Jenna Miller zu finden:
Der NPC 'Jenna Miller' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenste
r.
Drücke MACRO: RoMScript ausführen "CompleteQuest()".
Wir versuchen den NPC Jenna Miller zu finden:
Der NPC 'Jenna Miller' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenste
r.
Drücke MACRO: RoMScript ausführen "AcceptQuest()".
Wir versuchen den NPC Jenna Miller zu finden:
Der NPC 'Jenna Miller' wurde erfolgreich ausgewählt. Wir öffnen das Dialogfenste
r.


i try now with main char in another zone ;) time for the truth^^




EDIT: funny funny the mrc_optimized works well (also target npc to handle quest) but if i stop and open commandline...

Code: Select all

        RomBot command line
Type in 'q' (without quotes) to quit.
Command> player:target_NPC("Jenna Miller")
Wir versuchen den NPC Jenna Miller zu finden:
Wir können den NPC Jenna Miller nicht finden!
WTF?!?!?! Dudes i'm speechless -.- i dont know what to do :( what can be the failure if the MRC script runs without probs?

btw MM.exe eat 50% of my CPU power on commandline idle state is that normal too? xD

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 7:41 pm
by rock5
hamstaaa wrote:btw MM.exe eat 50% of my CPU power on commandline idle state is that normal too? xD
No it's not. If you are not currently running any commands then the cpu should be about 0.

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 7:49 pm
by hamstaaa
do you have any idea, rock?

Unfortunately I have no idea what I can do yet :(

why nothing works for me? :( its all since i want to bot in the new zones

No it's not. If you are not currently running any commands then the cpu should be about 0.
ok all is fine now (CPU)

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 8:10 pm
by lisa
what did you type in MM to run millers?

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 8:14 pm
by hamstaaa
what did you type in MM to run millers?
same as always...

NAMEOFMYTOON/bot path:mrc_optimized

but lisa there is no difference the path: thing and choose the WP from list.

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 8:19 pm
by lisa
nameofyourtoon/bot ??

should be rom folder name/bot

Code: Select all

rom/bot
I don't see how doing

Code: Select all

NAMEOFMYTOON/bot
could possibly work, it should error out saying no such file or directory.


That aside was it the same character you did millers and the new zone?

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 8:42 pm
by hamstaaa
I guess I should clarify as much ;)

I don't see how doing


Code:
NAMEOFMYTOON/bot



could possibly work, it should error out saying no such file or directory.
my Directory-construction is like the following...and trust me it workes fine all the days :)

Code: Select all

MM/scripts/BOTTOONNAME1(or /rom folder ;))/bot
MM/scripts/BOTTOONNAME2/bot
MM/scripts/BOTTOONNAME3/bot
...
That aside was it the same character you did millers and the new zone?

little overview :) :

character on MRC_Optimized -- no errors
Main on MRC_Optimized -- no errors (!)
Main on Miller ranch next to Jenna Miller (direct after the MRC test) with commandline and player:target_NPC -- NOT WORKING :(

thats too strange for me and i dont know how to handle it :roll:

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 10:35 pm
by rock5
Technically speaking the millers egg scrips uses "Sys114930_name" to get the npc name. Maybe try printing it out.

Code: Select all

print(RoMScript("TEXT('Sys114930_name')"))
Or even better, use it in the target command.

Code: Select all

player:target_NPC(RoMScript("TEXT('Sys114930_name')"))
Now that, theoretically, is exactly what the egg script does.

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 11:11 pm
by hamstaaa
player:target_NPC(RoMScript("TEXT('Sys114930_name')"))
tried it with right ID but... cant find ;)



... :shock: same s*it all the time...very strange

Re: player:target_NPC not working? :S

Posted: Sun Jul 03, 2011 11:21 pm
by rock5
hamstaaa wrote:tried it with right ID but... cant find
What do you mean "with right ID"? That is the right ID for Jenna Miller.

Re: player:target_NPC not working? :S

Posted: Tue Jul 05, 2011 8:19 am
by hamstaaa
What do you mean "with right ID"? That is the right ID for Jenna Miller.
yes but i dont test it only on Jenna Miller because i want to bot in the new zones....so i also try other ID's with your Command

Code: Select all

player:target_NPC(RoMScript("TEXT('Sys114930_name')"))
for other NPCs.

I only mean that the ID's are not my error ;)