i took the top part from "CoastOfOpportunity_20-40_0.13" waypoint i had. i figure it has something i could use/edit to do what i want.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="NORMAL">
<onLoad>
<!-- Version 0.4-->
settings.profile.mobs = {
"Death Bloom", "Todesblume",
"Ruthless Ancient sub-human", "Skrupelloser steinalter Humanoid",
"Ferocious Ancient sub-human", "Furchterregender steinalter Humanoid",
"Restored Sub-Human", "Wiederhergestellter Humanoider",
"Still-Weakened Sub-Human", "Geschw\132chter Humanoider",
}
function getDailyComplete()
--[[
local dailycomplete_ptr = 0x9CD1E0
local dailycomplete_offset = 0xACF4
return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset)
--]]
local dailyQuestCount, dailyQuestsPerDay;
repeat dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()") until dailyQuestCount and dailyQuestsPerDay
return dailyQuestCount;
end
function checkDQCount()
local _tmpQC = getDailyComplete()
cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC))
--[[
if (_tmpQC == 10) then
cprintf(cli.lightblue,"Sleepytime.\n")
player:sleep()
end
--]]
end
function getXP()
-- return memoryReadRepeat("intptr", getProc(), addresses.charExp_address, 0)
local exp
repeat exp = RoMScript("GetPlayerExp()") until exp
return exp;
end
function COO_Merchant(p_npcNameOrId)
if nil == p_npcNameOrId then p_npcNameOrId = 118102; end
if type(p_npcNameOrId) == "number" then
local tmp = p_npcNameOrId;
repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
end
printf("COO_Merchant(%s)\n", p_npcNameOrId);
player:merchant(p_npcNameOrId)
end
-- macro to find SysNameId, DailyNotes must be installed:
-- /script msQid, msE = DailyNotes.FindQuestByName("Heilige Erde"); DEFAULT_CHAT_FRAME:AddMessage("Qid:"..msQid);
function COO_AcceptQuest(p_npcNameOrId, p_questNameOrId)
if type(p_npcNameOrId) == "number" then
local tmp = p_npcNameOrId;
repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
end
if type(p_questNameOrId) == "number" then
local tmp = p_questNameOrId;
repeat p_questNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_questNameOrId
end
printf("COO_AcceptQuest(%s, %s)\n", p_npcNameOrId, p_questNameOrId);
player:target_NPC(p_npcNameOrId)
yrest(400)
if nil ~= AcceptQuestByName then
AcceptQuestByName(p_questNameOrId)
else
sendMacro("OnClick_QuestListButton(1,1);");
yrest(400);
sendMacro("AcceptQuest()");
yrest(400);
end
end
function COO_CompleteQuest(p_npcNameOrId, p_questNameOrId)
if type(p_npcNameOrId) == "number" then
local tmp = p_npcNameOrId;
repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
end
if type(p_questNameOrId) == "number" then
local tmp = p_questNameOrId;
repeat p_questNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_questNameOrId
end
printf("COO_CompleteQuest(%s, %s)\n", p_npcNameOrId, p_questNameOrId);
player:target_NPC(p_npcNameOrId)
yrest(400)
if nil ~= CompleteQuestByName then
CompleteQuestByName(p_questNameOrId)
else
sendMacro("OnClick_QuestListButton(3,1);");
yrest(400);
sendMacro("CompleteQuest()");
yrest(400);
end
end
</onLoad>
-- Get quest: Another Drink (option 1, 423959)
player:target_NPC(117590);yrest(1000); sendMacro("ChoiceOption(1)");
-- From quest giver (Mishlor, 117590) to spot
<!-- # 1 --><waypoint x="-78" z="4996" y="682"> </waypoint>
<!-- # 2 --><waypoint x="-35" z="5000" y="682"> </waypoint>
<!-- # 3 --><waypoint x="18" z="5005" y="682"> </waypoint>
<!-- # 4 --><waypoint x="81" z="5011" y="664"> </waypoint>
<!-- # 5 --><waypoint x="134" z="5026" y="664"> </waypoint>
<!-- # 6 --><waypoint x="174" z="5052" y="664"> </waypoint>
<!-- # 7 --><waypoint x="217" z="5049" y="664"> </waypoint>
<!-- # 8 --><waypoint x="285" z="5044" y="664"> </waypoint>
<!-- # 9 --><waypoint x="348" z="5048" y="668"> </waypoint>
<!-- # 10 --><waypoint x="397" z="5068" y="675"> </waypoint>
<!-- # 11 --><waypoint x="444" z="5083" y="679"> </waypoint>
<!-- # 12 --><waypoint x="473" z="5081" y="679"> </waypoint>
<!-- # 13 --><waypoint x="539" z="5062" y="679"> </waypoint>
<!-- # 14 --><waypoint x="562" z="5060" y="679"> </waypoint>
<!-- # 15 --><waypoint x="663" z="5070" y="679"> </waypoint>
<!-- # 16 --><waypoint x="704" z="5075" y="680"> </waypoint>
<!-- # 17 --><waypoint x="752" z="5079" y="686"> </waypoint>
<!-- # 18 --><waypoint x="902" z="5082" y="708"> </waypoint>
<!-- # 19 --><waypoint x="989" z="5074" y="725"> </waypoint>
<!-- # 20 --><waypoint x="1063" z="5065" y="734"> </waypoint>
yrest(150);
----------------------------------------------------------------------
-- Circle to kill death blooms
<!-- # 1 --><waypoint x="1288" z="4970" y="749"> </waypoint>
<!-- # 2 --><waypoint x="1302" z="4842" y="746"> </waypoint>
<!-- # 3 --><waypoint x="1312" z="4726" y="748"> </waypoint>
<!-- # 4 --><waypoint x="1318" z="4651" y="752"> </waypoint>
<!-- # 5 --><waypoint x="1379" z="4640" y="757"> </waypoint>
<!-- # 6 --><waypoint x="1477" z="4650" y="762"> </waypoint>
<!-- # 7 --><waypoint x="1556" z="4675" y="767"> </waypoint>
<!-- # 8 --><waypoint x="1576" z="4744" y="760"> </waypoint>
<!-- # 9 --><waypoint x="1601" z="4830" y="759"> </waypoint>
<!-- # 10 --><waypoint x="1546" z="4885" y="754"> </waypoint>
<!-- # 11 --><waypoint x="1406" z="4930" y="756"> </waypoint>
if 100 >= inventory:getItemCount(208977) then
PathBack()
end
-- Return to quest giver after 100 Death Flower Root(208977) have been obtained
----------------------------------------------------------------------
-- Path back to quest giver (Mishlor, 117590)
function PathBack()
<!-- # 1 --><waypoint x="1103" z="5070" y="741"> </waypoint>
<!-- # 2 --><waypoint x="1033" z="5071" y="730"> </waypoint>
<!-- # 3 --><waypoint x="947" z="5072" y="717"> </waypoint>
<!-- # 4 --><waypoint x="862" z="5073" y="701"> </waypoint>
<!-- # 5 --><waypoint x="779" z="5074" y="689"> </waypoint>
<!-- # 6 --><waypoint x="691" z="5075" y="680"> </waypoint>
<!-- # 7 --><waypoint x="610" z="5076" y="679"> </waypoint>
<!-- # 8 --><waypoint x="517" z="5078" y="679"> </waypoint>
<!-- # 9 --><waypoint x="438" z="5079" y="679"> </waypoint>
<!-- # 10 --><waypoint x="374" z="5069" y="673"> </waypoint>
<!-- # 11 --><waypoint x="329" z="5036" y="665"> </waypoint>
<!-- # 12 --><waypoint x="189" z="4920" y="664"> </waypoint>
<!-- # 13 --><waypoint x="129" z="4870" y="665"> </waypoint>
<!-- # 14 --><waypoint x="92" z="4781" y="675"> </waypoint>
<!-- # 15 --><waypoint x="25" z="4831" y="682"> </waypoint>
<!-- # 16 --><waypoint x="-37" z="4878" y="682"> </waypoint>
<!-- # 17 --><waypoint x="-54" z="4939" y="682"> </waypoint>
<!-- # 18 --><waypoint x="-71" z="5005" y="682"> </waypoint>
<!-- # 19 --><waypoint x="-83" z="5048" y="682"> </waypoint>
end
----------------------------------------------------------------------
-- Return quest: Another Drink (option 3)
player:target_NPC(117590); sendMacro("ChoiceOption(1)")