Automatically created waypointfiles
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: Automatically created waypointfiles
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();
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();
Re: Automatically created waypointfiles
I found the old project and I am updating/ advanced it.
Here a first test drive with auto waypoints( a record) in sascilia
I will show the source soon because I need some input about some values
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>
Jack-of-all-trades, but master-of-only of a few
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
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
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: Automatically created waypointfiles
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.
Re: Automatically created waypointfiles
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:
EDIT:SOLVED at least that part I will continue tomorrow.
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
Jack-of-all-trades, but master-of-only of a few
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
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
Re: Automatically created waypointfiles
Okay that what I have until now:
Todo:
What I need to know, basicly how good/ bad the resolution works:
I will also add the file but consider this is a prototype that is incomplete.
- -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 will also add the file but consider this is a prototype that is incomplete.
- Attachments
-
- userfunction_HPRecorder.lua
- (16.32 KiB) Downloaded 461 times
-
- RecordHP.xml
- (2.69 KiB) Downloaded 472 times
Jack-of-all-trades, but master-of-only of a few
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
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
Re: Automatically created waypointfiles
Thank you for this new version. Im using it and i like it alot
Re: Automatically created waypointfiles
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
This gives an error by using the file.
Is it possible to save the node names in english or to replace "ä->ae, ..."?
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>
Is it possible to save the node names in english or to replace "ä->ae, ..."?
Re: Automatically created waypointfiles
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.
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests