New Help with a script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

New Help with a script

#1 Post by AngelDrago » Mon Nov 05, 2012 4:24 pm

Hello everyone so i have been trying to get this script going... but with no luck and now i would like to pick your brains...lol...

so i'm getting this error...
We use the normal waypoint path Sardis.xml now.
GM detection started
We changed the option 'AUTO_ELITE_FACTOR' from '5' to '1000'.
Clearing target.
Moving to waypoint #1, (-25946, 34381)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Swamp Fang] in combat.
Moving in | Suggested range: 200 | Distance: 206
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Used frog.
Main hand durability:99.980582524272
Off hand durability:-1.#IND
Clearing target.
Moving to waypoint #1, (-25946, 34381)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Moving in | Suggested range: 200 | Distance: 200
Clearing target.
Fight finished. Killed 1 Rabbit. (fight #1 / runtime 0 minutes)
Main hand durability:99.980582524272
Off hand durability:-1.#IND
Clearing target.
Moving to waypoint #1, (-25946, 34381)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Moving in | Suggested range: 200 | Distance: 205
Clearing target.
Fight finished. Killed 2 Rabbit. (fight #2 / runtime 0 minutes)
Main hand durability:99.980582524272
Off hand durability:-1.#IND
Clearing target.
Moving to waypoint #1, (-25946, 34381)
Did not find any crashed game clients.
10:14pm - scripts\rom/bot.lua:824: Failed to compile and run Lua code for waypoint #1


AL lib: dsound.c:314: Device init failed: 0x88780078
AL lib: winmm.c:368: waveInOpen failed: 2
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
and here is the xml... file is attached so maybe some of you can use it as well
Attachments
Sardis.xml
(4.2 KiB) Downloaded 319 times

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: New Help with a script

#2 Post by Cindy » Mon Nov 05, 2012 5:43 pm

You are missing the closing waypoint tag for waypoint 1 :)

Code: Select all

	AcceptQuestByName("Numbing Powder Ingredients");
	yrest(500);
</waypoint>   <---- THIS IS MISSING
<!-- #  2 --><waypoint x="-26011" z="34322" y="-148">	</waypoint>

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: New Help with a script

#3 Post by AngelDrago » Tue Nov 06, 2012 3:19 am

Cindy wrote:You are missing the closing waypoint tag for waypoint 1 :)

Code: Select all

	AcceptQuestByName("Numbing Powder Ingredients");
	yrest(500);
</waypoint>   <---- THIS IS MISSING
<!-- #  2 --><waypoint x="-26011" z="34322" y="-148">	</waypoint>
Thank you... added this one but its still not doing what it should be doing... as it stands their and the camera goes left and right and tries to target rabits and npc's

Arg.. forgot to add this one see below...

Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Tergothen Red Butterfly] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Tergothen Red Butterfly] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Tergothen Red Butterfly] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Rabbit] in combat.
Taking too long to damage target, breaking sequence...
Clearing target.
Current fight aborted.
Moving to waypoint #37, (-26013, 34317)
Stopping waypoint: Target acquired before moving.
Engaging enemy [Tergothen Red Butterfly] in combat.

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

Re: New Help with a script

#4 Post by rock5 » Tue Nov 06, 2012 4:11 am

I don't see any skills being used so my guess is you don't have any usable skills in your profile for that class.
  • 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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: New Help with a script

#5 Post by AngelDrago » Tue Nov 06, 2012 11:35 am

Okay Guys and Girls....
I started from scratch again but know i'm facing with the problem that it will not accept the Public quest line even do i chose the click functions is their something i can do to fix this issue or stir me in the right direction...PLEASE :? :oops: here is the script....

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="NORMAL">
	<!-- #  1 --><waypoint x="-25936" z="34384" y="-147">		player:target_NPC("Kodina Macevan");
		sendMacro("ChoiceOption(1);");
		player:mouseclickL(-156, 545, 1024, 768);
	</waypoint>
	<!-- #  5 --><waypoint x="-25969" z="34348" y="-146">	</waypoint>
	<!-- #  6 --><waypoint x="-25969" z="34274" y="-146">	</waypoint>
	<!-- #  7 --><waypoint x="-25959" z="34191" y="-147">	</waypoint>
	<!-- #  8 --><waypoint x="-25956" z="34138" y="-145">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 10 --><waypoint x="-25943" z="34084" y="-144">	</waypoint>
	<!-- # 11 --><waypoint x="-25958" z="34043" y="-146">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 13 --><waypoint x="-25954" z="33986" y="-147">	</waypoint>
	<!-- # 14 --><waypoint x="-25962" z="33925" y="-144">	</waypoint>
	<!-- # 15 --><waypoint x="-25973" z="33861" y="-144">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 17 --><waypoint x="-25996" z="33805" y="-146">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 19 --><waypoint x="-26032" z="33785" y="-146">	</waypoint>
	<!-- # 20 --><waypoint x="-25978" z="33736" y="-146">	</waypoint>
	<!-- # 21 --><waypoint x="-25973" z="33732" y="-146">	</waypoint>
	<!-- # 22 --><waypoint x="-25927" z="33681" y="-145">	</waypoint>
	<!-- # 23 --><waypoint x="-25857" z="33664" y="-146">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 25 --><waypoint x="-25863" z="33634" y="-147">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 27 --><waypoint x="-25916" z="33659" y="-145">	</waypoint>
	<!-- # 28 --><waypoint x="-25991" z="33667" y="-146">	</waypoint>
	<!-- # 29 --><waypoint x="-26074" z="33665" y="-146">	</waypoint>
	<!-- # 30 --><waypoint x="-26117" z="33648" y="-147">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 32 --><waypoint x="-26120" z="33703" y="-147">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 34 --><waypoint x="-26218" z="33762" y="-156">	</waypoint>
	<!-- # 35 --><waypoint x="-26279" z="33799" y="-156">	</waypoint>
	<!-- # 36 --><waypoint x="-26329" z="33817" y="-146">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 38 --><waypoint x="-26349" z="33834" y="-145">	</waypoint>
	<!-- # 39 --><waypoint x="-26363" z="33873" y="-145">		player:target_Object("Tergothen Red Butterfly");
	</waypoint>
	<!-- # 41 --><waypoint x="-26320" z="33887" y="-148">	</waypoint>
	<!-- # 42 --><waypoint x="-26256" z="33890" y="-156">	</waypoint>
	<!-- # 43 --><waypoint x="-26213" z="33997" y="-156">	</waypoint>
	<!-- # 44 --><waypoint x="-26163" z="34116" y="-156">	</waypoint>
	<!-- # 45 --><waypoint x="-26114" z="34225" y="-152">	</waypoint>
	<!-- # 46 --><waypoint x="-26077" z="34261" y="-148">	</waypoint>
	<!-- # 47 --><waypoint x="-26021" z="34287" y="-148">	</waypoint>
	<!-- # 48 --><waypoint x="-25978" z="34326" y="-147">	</waypoint>
	<!-- # 49 --><waypoint x="-25935" z="34375" y="-146">		player:target_NPC("Kodina Macevan");
		sendMacro("ChoiceOption(2);");
		player:mouseclickL(315, 352, 1024, 768);
		player:mouseclickL(270, 411, 1024, 768);
	</waypoint>
	<!-- # 54 --><waypoint x="-25935" z="34375" y="-146">		player:merchant("Kodina Macevan");
		player:mouseclickL(314, 377, 1024, 768);
		player:mouseclickL(328, 121, 1024, 768);
	</waypoint>
</waypoints>


Thanks for the help...

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: New Help with a script

#6 Post by Ego95 » Tue Nov 06, 2012 12:21 pm

Code: Select all

AcceptQuestByName("quest")
and

Code: Select all

CompleteQuestByName("quest")
are used to accept or complete quests. Just target the npc and use

Code: Select all

AcceptQuestByName("quest")
and the rest will be done by the bot :)

by the way, you don't have to target the mobs you want to kill with

Code: Select all

player:target_Object("Tergothen Red Butterfly");
The bot always looks for mobs in range (range can be changed in your profile). Check if these lines are correct if it doesn't attack the mobs

Code: Select all

		<!-- Attack monsters 10 levels above or 75 below your level -->
		<option name="TARGET_LEVELDIF_ABOVE" value="10" />
		<option name="TARGET_LEVELDIF_BELOW" value="75" />

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: New Help with a script

#7 Post by AngelDrago » Tue Nov 06, 2012 1:29 pm

cool thx i will try that i hope this time i get more luckier...

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: New Help with a script

#8 Post by AngelDrago » Thu Nov 15, 2012 9:58 am

Hello... Everyone again...

i'm still having problems with this script as it seems the character will not open a dialog with the NPC and it will not accept the quest and than the character will it just stand their and waited and if it sees an rapid it will kill it and than it waites... i'm sure i use some of your expertise from you all... here is the code and again thank you for the help

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="NORMAL">
	<!-- #  1 --><waypoint x="-25968" z="34396" y="-146">	</waypoint>
	player:scan_for_NPC("Kodina Macevan");
	player:target_NPC("Kodina Macevan");
	CompleteQuestByName("Numbing Powder Ingredients");
	yrest(100);
	player:target_NPC("Kodina Macevan");
	AcceptQuestByName("Numbing Powder Ingredients");
	yrest(100);	
	<!-- #  2 --><waypoint x="-25985" z="34354" y="-146">	</waypoint>
	<!-- #  3 --><waypoint x="-26068" z="34272" y="-147">	</waypoint>
	<!-- #  4 --><waypoint x="-26112" z="34171" y="-154">	</waypoint>
	<!-- #  5 --><waypoint x="-26037" z="34068" y="-146">	</waypoint>
	<!-- #  6 --><waypoint x="-25951" z="33964" y="-145">	</waypoint>
	<!-- #  7 --><waypoint x="-25871" z="33851" y="-146">	</waypoint>
	<!-- #  8 --><waypoint x="-25851" z="33763" y="-145">	</waypoint>
	<!-- #  9 --><waypoint x="-25866" z="33671" y="-146">	</waypoint>
	<!-- # 10 --><waypoint x="-25919" z="33561" y="-141">	</waypoint>
	<!-- # 11 --><waypoint x="-26029" z="33529" y="-146">	</waypoint>
	<!-- # 12 --><waypoint x="-26131" z="33478" y="-140">	</waypoint>
	<!-- # 13 --><waypoint x="-26160" z="33387" y="-145">	</waypoint>
	<!-- # 14 --><waypoint x="-26264" z="33332" y="-148">	</waypoint>
	<!-- # 15 --><waypoint x="-26345" z="33248" y="-148">	</waypoint>
	<!-- # 16 --><waypoint x="-26455" z="33197" y="-156">	</waypoint>
	<!-- # 17 --><waypoint x="-26353" z="33472" y="-156">	</waypoint>
	<!-- # 18 --><waypoint x="-26292" z="33717" y="-156">	</waypoint>
	<!-- # 19 --><waypoint x="-26432" z="33849" y="-144">	</waypoint>
	<!-- # 20 --><waypoint x="-26304" z="34066" y="-156">	</waypoint>
	<!-- # 21 --><waypoint x="-26324" z="34293" y="-144">	</waypoint>
	<!-- # 22 --><waypoint x="-26403" z="34420" y="-144">	</waypoint>
	<!-- # 23 --><waypoint x="-26432" z="34524" y="-144">	</waypoint>
	<!-- # 24 --><waypoint x="-26352" z="34556" y="-145">	</waypoint>
	queststate = getQuestStatus("Numbing Powder Ingredients");
    while queststate == "incomplete" do
      yrest(100);player:target_Object("Red Butterfly Dust");yrest(100);
      queststate = getQuestStatus("Numbing Powder Ingredients");
      end	
	<!-- # 25 --><waypoint x="-26310" z="34400" y="-145">	</waypoint>
	<!-- # 26 --><waypoint x="-26213" z="34017" y="-156">	</waypoint>
	<!-- # 27 --><waypoint x="-26110" z="34184" y="-154">	</waypoint>
	<!-- # 28 --><waypoint x="-26044" z="34281" y="-148">	</waypoint>
	<!-- # 29 --><waypoint x="-25951" z="34383" y="-146">	</waypoint>
</waypoints>

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: New Help with a script

#9 Post by Cindy » Thu Nov 15, 2012 9:59 am

Increase your yrests to 2000.. and use them liberally :)

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

Re: New Help with a script

#10 Post by rock5 » Thu Nov 15, 2012 10:50 am

Don't you get an error when you use "player:scan_for_NPC"?

I can't see anything at the npc that would cause it to get stuck. If anything failed then it would continue anyway. It must be getting stuck in one of the functions. I don't know which though or why.
  • 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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: New Help with a script

#11 Post by AngelDrago » Thu Nov 15, 2012 12:15 pm

Thank you for the input raise the rest time to 2000 with no luck and maybe get stuck with one of the functions i will try to redo rom maybe it will help.. i will let you all now what i have done. thx again for the help

Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: New Help with a script

#12 Post by Hidden » Fri Nov 16, 2012 1:44 pm

Code: Select all

   queststate = getQuestStatus("Numbing Powder Ingredients");
    while queststate == "incomplete" do
      yrest(100);player:target_Object("Red Butterfly Dust");yrest(100);
      queststate = getQuestStatus("Numbing Powder Ingredients");
      end   
Red butterfly dust is looted from the dead butterflies so there's no object to target......
Also why is your bot killing Rabbits? Aren't they lv 1 mobs for ambience... thinking you profile is set to attack mobs way to low.

As for the npc is the wp close enough to the NPC? Bots tend to stand closer than manual play.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest