player:target_NPC not working? :S

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#21 Post by rock5 » Sun Jul 03, 2011 9:03 am

I'm not sure of this but do you have "Click to move" enabled in the game settings?
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#22 Post by hamstaaa » Sun Jul 03, 2011 9:20 am

yes, CTM is always activated ;) ID dont work too (see in my last post)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: player:target_NPC not working? :S

#23 Post by lisa » Sun Jul 03, 2011 9:43 am

have you tried with any other NPC?
or maybe even a different character?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#24 Post by hamstaaa » Sun Jul 03, 2011 9:55 am

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: player:target_NPC not working? :S

#25 Post by lisa » Sun Jul 03, 2011 10:09 am

Code: Select all

player:target_NPC(_npcname)
Obviously replace _npcname with the name of the NPC or the ID
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#26 Post by rock5 » Sun Jul 03, 2011 10:12 am

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
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#27 Post by hamstaaa » Sun Jul 03, 2011 10:21 am

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 ;)
Last edited by hamstaaa on Sun Jul 03, 2011 10:30 am, edited 1 time in total.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#28 Post by rock5 » Sun Jul 03, 2011 10:28 am

They are both rombot commandline functions. Just run this first to get to the commandline.

Code: Select all

rom/bot path:commandline
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#29 Post by hamstaaa » Sun Jul 03, 2011 10:54 am

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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#30 Post by hamstaaa » Sun Jul 03, 2011 11:10 am

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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#31 Post by rock5 » Sun Jul 03, 2011 7:41 pm

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.
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#32 Post by hamstaaa » Sun Jul 03, 2011 7:49 pm

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)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: player:target_NPC not working? :S

#33 Post by lisa » Sun Jul 03, 2011 8:10 pm

what did you type in MM to run millers?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#34 Post by hamstaaa » Sun Jul 03, 2011 8:14 pm

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: player:target_NPC not working? :S

#35 Post by lisa » Sun Jul 03, 2011 8:19 pm

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?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#36 Post by hamstaaa » Sun Jul 03, 2011 8:42 pm

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:

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#37 Post by rock5 » Sun Jul 03, 2011 10:35 pm

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.
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#38 Post by hamstaaa » Sun Jul 03, 2011 11:11 pm

player:target_NPC(RoMScript("TEXT('Sys114930_name')"))
tried it with right ID but... cant find ;)



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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: player:target_NPC not working? :S

#39 Post by rock5 » Sun Jul 03, 2011 11:21 pm

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.
  • 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

hamstaaa
Posts: 37
Joined: Sat Apr 23, 2011 9:48 pm

Re: player:target_NPC not working? :S

#40 Post by hamstaaa » Tue Jul 05, 2011 8:19 am

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 ;)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests