Page 3 of 3
Re: Automatically created waypointfiles
Posted: Fri Mar 01, 2013 11:19 am
by wps
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();
Re: Automatically created waypointfiles
Posted: Sun Sep 22, 2013 12:27 pm
by BlubBlab
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
Re: Automatically created waypointfiles
Posted: Sun Sep 22, 2013 12:41 pm
by Bill D Cat
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
Posted: Sun Sep 22, 2013 12:47 pm
by BlubBlab
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.
Re: Automatically created waypointfiles
Posted: Mon Sep 23, 2013 2:03 pm
by BlubBlab
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.
Re: Automatically created waypointfiles
Posted: Wed Sep 25, 2013 3:31 am
by leroy
Thank you for this new version. Im using it and i like it alot
Re: Automatically created waypointfiles
Posted: Thu Mar 23, 2017 3:15 pm
by Player
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, ..."?
Re: Automatically created waypointfiles
Posted: Fri May 25, 2018 7:10 am
by cronos029
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.