Automatically created waypointfiles

Additional botting resources. Addons may be either for the game itself or for the RoM bot.

Moderator: rock5

Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
wps
Posts: 74
Joined: Tue Feb 05, 2013 11:11 am

Re: Automatically created waypointfiles

#41 Post by wps » Fri Mar 01, 2013 11:19 am

I tested the script, and found that maybe the error is a type.
After I change the function name, the recorder is working correctly.
-- as is --
function findNodes()
player:update();
zID = getZoneID();
-- to be --
function findNodes()
player:update();
zID = getZoneId();

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Automatically created waypointfiles

#42 Post by BlubBlab » Sun Sep 22, 2013 12:27 pm

I found the old project and I am updating/ advanced it.
Here a first test drive with auto waypoints( a record) in sascilia

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<waypoint x="-29628" z="724" y="-543" ></waypoint>
	<waypoint x="-29622" z="729" y="-543" ></waypoint>
	<waypoint x="-29614" z="915" y="-543" ></waypoint>
	<waypoint x="-29562" z="1098" y="-536" ></waypoint>
	<waypoint x="-29572" z="1236" y="-543" ></waypoint>
	<waypoint x="-29702" z="1310" y="-541" ></waypoint>
	<waypoint x="-29842" z="1354" y="-526" ></waypoint>
	<waypoint x="-29916" z="1487" y="-502" ></waypoint>
	<waypoint x="-29996" z="1604" y="-443" ></waypoint>
	<waypoint x="-30089" z="1491" y="-450" ></waypoint>
	<waypoint x="-30121" z="1341" y="-482" ></waypoint>
	<waypoint x="-29947" z="1334" y="-514" ></waypoint>
	<waypoint x="-29788" z="1323" y="-529" ></waypoint>
	<waypoint x="-29629" z="1337" y="-549" ></waypoint>
	<waypoint x="-29575" z="1352" y="-551" ></waypoint>
</waypoints>
I will show the source soon because I need some input about some values
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
Bill D Cat
Posts: 555
Joined: Sat Aug 10, 2013 8:13 pm
Location: Deep in the Heart of Texas

Re: Automatically created waypointfiles

#43 Post by Bill D Cat » Sun Sep 22, 2013 12:41 pm

Have you considered adding the comments to each waypoint the way createpath does so that you can number them for easier debugging? Just thought it would be a nice thing to have if the coding isn't too extreme for you. ;)

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Automatically created waypointfiles

#44 Post by BlubBlab » Sun Sep 22, 2013 12:47 pm

Okay that part was like it was from Mister Master, put I can add it , I think I would done it anyway
Edit:Done, now debugging quest auto track.

hm it seems is aple to see that I get a new Qust but isn't add complete:

Code: Select all

function startQuestDetect()
		EventMonitorStart("NEW_Q", "ADDNEW_QUESTBOOK");
		EventMonitorStart("COMPLETE_Q", "QUEST_COMPLETE");
		EventMonitorStart("NPCWITH_Q", "SHOW_QUESTDETAIL_FROM_NPC");
		--[[
			Checks if you have ever completed a quest.
			state = CheckQuest(questID)
			
			Returns @state
			0 - if you have never completed the quest have not accepted it 
			1 - if you have accepted the quest but have never completed it 
			2 - if you have completed the quest at least once 
			-----------
			CompleteQuest();
			GetChoiceItem_questDetail(?);
			propatly some info about reward, but return always -1
			------------
			index, catalogID, name, track, level, daily, bDaily_num, iQuestType, questID, completed, QuestGroup = GetQuestInfo(index)
		]]--
end

Code: Select all

if( _recordQuest)then
		repeat
			foundQ = false;
			local timer, moretocome, questID =  EventMonitorCheck("NEW_Q","1")
			if( questID ~= nil and  questID ~= lastNewQuest )then
				print("New Quest was found \n")
				isnewquest = true;
				lastNewQuest = questID;
				savewp = true;
				tmp.TargetID = playerTarget.Id;
				table.insert(NewQuestTable, questID);
				foundQ = true;
			end
			local timer, moretocome, numquest, cquestID =  EventMonitorCheck("COMPLETE_Q")
			if( cquestID ~= nil and  cquestID ~= lastCompleteQuest)then
				print("Quest complete was found \n")
				iscompleteq = true;
				lastCompleteQuest = cquestID;
				savewp = true;
				tmp.TargetID = playerTarget.Id;
				table.insert(CompleteQuestTable, cquestID);
				foundQ = true;
			end
		until foundQ == false
		local arg1, arg2 ,arg3, arg4 = EventMonitorCheck("NPCWITH_Q","4,1",true)
		---dont know let see later but we know the player did take a look on a quest
	end
EDIT:SOLVED at least that part I will continue tomorrow.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Automatically created waypointfiles

#45 Post by BlubBlab » Mon Sep 23, 2013 2:03 pm

Okay that what I have until now:
  • -Auto generate WP when running around
    -Auto adding quest accept, quest complete, and NPC

Todo:
  • -change name of the files for fit more for the project
    -add some new buttons like start/stop
    -add custom file name option
    -test harvest wp auto generation
    -add maybe if player is mounted, quest reward ....
    -fix the complete quest/ accept quest order
    -fix load old file option (now it overwrite the old atm)

What I need to know, basicly how good/ bad the resolution works:
  • -How far can the player change is angle until it should be noticed and create a new WP?
    -How far can the WPs at max be at common cases ?
    -If I reduce the WP in a strait line should their be a max for the distance?
I could need a few opinions here.
I will also add the file but consider this is a prototype that is incomplete.
Attachments
userfunction_HPRecorder.lua
(16.32 KiB) Downloaded 89 times
RecordHP.xml
(2.69 KiB) Downloaded 99 times
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

leroy
Posts: 19
Joined: Thu Sep 19, 2013 11:57 am

Re: Automatically created waypointfiles

#46 Post by leroy » Wed Sep 25, 2013 3:31 am

Thank you for this new version. Im using it and i like it alot :)

Player
Posts: 1
Joined: Thu Mar 23, 2017 2:55 pm

Re: Automatically created waypointfiles

#47 Post by Player » Thu Mar 23, 2017 3:15 pm

Thank you for this script. It works good for me.

There's just a Problem with the names of the nodes. On a german client the Script saves the Waypoints like this

Code: Select all

<!-- # 13 --><waypoint x="1563" z="-132" y="134" nodetype="HERB" node="Dŭmerorchidee">

		player:harvest();

</waypoint>
This gives an error by using the file.

Is it possible to save the node names in english or to replace "ä->ae, ..."?

cronos029
Posts: 1
Joined: Mon Mar 26, 2018 7:38 am

Re: Automatically created waypointfiles

#48 Post by cronos029 » Fri May 25, 2018 7:10 am

Hi

I would like to try this but I am new to rom and I'm not sure where the files go, I tried to use createpath but all that happened was my character runs around but doesn't attack anything, any help would be appreciated thank you, and thank you all for your hard work on this.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests