Re: Energy of Justice
Posted: Sun Jun 17, 2012 4:08 pm
The QuestByName functions are part of the bot now. Delete the userfunctions file.
did that, but it did not work , same problemrock5 wrote:The QuestByName functions are part of the bot now. Delete the userfunctions file.
yep, still it does not accept the quest.rock5 wrote:The code looks like it would work even with revision 690. The only thing I can think of is if you are running in a different language. Are you running in English?
When it gets stuck in that loop, what status is the quest in, Accepted, Completed or Not Accepted? And double check to see that the quest names match.
here it is again, it is trying the name of the quest , not accepting it.rock5 wrote:When it gets stuck in that loop, what status is the quest in, Accepted, Completed or Not Accepted? And double check to see that the quest names match.
Code: Select all
RoMScript("OnClick_QuestListButton(1, 1)")
Code: Select all
RoMScript("OnClick_QuestListButton(3, 1)")
Code: Select all
RoMScript("OnClick_QuestListButton(1, 1)")
Code: Select all
RoMScript("AcceptQuest()")
Code: Select all
RoMScript("OnClick_QuestListButton(3, 1)")
Code: Select all
RoMScript("CompleteQuest()")
Code: Select all
AcceptQuestByName(questname_1)
Code: Select all
CompleteQuestByName(questname_1)
rock5 wrote:Sorry, I'm not even able to test it because when I talk to John Carter (is that John Carter of Mars?) I don't get the quest. There is probably some pre quest I haven't done.
But what you showed me tells me that line 35 isn't workingActually that is for selecting the quest, not 'accepting' it. Maybe the author of the script uses an auto accept addon. The same is true a few lines backCode: Select all
RoMScript("OnClick_QuestListButton(1, 1)")
That selects the quest to complete but doesn't complete it.Code: Select all
RoMScript("OnClick_QuestListButton(3, 1)")
You can install an auto accept addon such as 'Streamline'. Or you could fix the script. To fix the script follow everywithCode: Select all
RoMScript("OnClick_QuestListButton(1, 1)")
and follow everyCode: Select all
RoMScript("AcceptQuest()")
withCode: Select all
RoMScript("OnClick_QuestListButton(3, 1)")
Or you could replace them with one of the in build functions for quests eg.Code: Select all
RoMScript("CompleteQuest()")
andCode: Select all
AcceptQuestByName(questname_1)
that does that for you.Code: Select all
CompleteQuestByName(questname_1)
lisa wrote:I use this in my KS run.
Code: Select all
for i, skill in pairs(settings.profile.skills) do if skill.Name == "MAGE_PURGATORY_FIRE" then settings.profile.skills[i].AutoUse = true end if skill.Name == "MAGE_FLAME" then settings.profile.skills[i].AutoUse = false end if skill.Name == "MAGE_PLASMA_ARROW" then settings.profile.skills[i].AutoUse = true end end
Code: Select all
<skill name="MAGE_FLAME" hotkey="MACRO" priority="80" />
*smacks self on forehead* duh....thanks!!rock5 wrote:Have a look at 'skills.xml' in the 'database' folder.
tried adding the script to load> section after dowloading the addon.lisa wrote:if you are going to use hacks in the open don't bother with Romeo's, just teleport to where you want to go, you shouldn't get stuck in objects while teleporting.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2721
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
temp = 0
questname_1 = "Beseitigt weitere Gefahren";
questname_2 = "Sofortige Hilfe";
changeProfileOption("WAYPOINT_DEVIATION", 30);
YourTargetScore = 6000
function waitForEventStart()
repeat
yrest(1000) -- check every second
local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
if Count == 2 and YourTargetScore > ScorePE then break end
until false
end
function isEventFinished()
local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
return (Count ~= 2 or ScorePE >= YourTargetScore);
end;
changeOptionFriendMob("mob", "Ankes", "Add")
if (not player:hasBuff("506684")) then
inventory:useItem(207200);
end
if (not player:hasBuff("506686")) then
inventory:useItem(207202);
end
</onload>
<onLeaveCombat>
questname_1 = "Beseitigt weitere Gefahren";
queststate = getQuestStatus(questname_1)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
</onLeaveCombat>
<!-- # 1 --><waypoint x="-27521" z="24357" y="-83" type="RUN">
waitForEventStart()
isEventFinished()
player:target_NPC("John Carter")
CompleteAllQuests()
yrest(2500)
player:target_NPC("John Carter")
AcceptAllQuests()
yrest(500)
queststate = getQuestStatus(questname_1);
if queststate == "accepted" then
__WPL:setWaypointIndex(2);
end
queststate = getQuestStatus(questname_2);
if queststate == "accepted" then
__WPL:setWaypointIndex(17);
end
</waypoint>
<!-- # 2 --><waypoint x="-27621" z="24327" y="-74" type="RUN">
wallon()
</waypoint>
<!-- # 3 --><waypoint x="-27706" z="24256" y="-54" type="RUN"> </waypoint>
<!-- # 4 --><waypoint x="-27627" z="24207" y="-10" type="RUN"> </waypoint>
<!-- # 5 --><waypoint x="-27630" z="24154" y="0" type="RUN"> </waypoint>
<!-- # 6 --><waypoint x="-27746" z="24102" y="1" type="RUN">
walloff()
</waypoint>
<!-- # 7 --><waypoint x="-27857" z="24070" y="0">
</waypoint>
<!-- # 8 --><waypoint x="-28026" z="24006" y="2">
</waypoint>
<!-- # 9 --><waypoint x="-28123" z="24018" y="6">
</waypoint>
<!-- # 10 --><waypoint x="-28215" z="23967" y="1"> </waypoint>
<!-- # 11 --><waypoint x="-28308" z="24026" y="4"> </waypoint>
<!-- # 12 --><waypoint x="-28094" z="23966" y="9"> </waypoint>
<!-- # 13 --><waypoint x="-27962" z="24099" y="-5" tag="quest1complete"> </waypoint>
<!-- # 14 --><waypoint x="-27771" z="24285" y="-83" type="RUN"> </waypoint>
<!-- # 15 --><waypoint x="-27622" z="24369" y="-72" type="RUN"> </waypoint>
<!-- # 16 --><waypoint x="-27526" z="24357" y="-83" type="RUN">
player:target_NPC("John Carter")
yrest(250)
CompleteAllQuests()
yrest(2500)
player:target_NPC("John Carter")
AcceptAllQuests()
yrest(500)
queststate = getQuestStatus(questname_1);
if queststate == "accepted" then
__WPL:setWaypointIndex(2);
end
queststate = getQuestStatus(questname_2);
if queststate == "accepted" then
__WPL:setWaypointIndex(17);
end
</waypoint>
<!-- # 17 --><waypoint x="-27582" z="24323" y="-79" type="RUN">
wallon()
</waypoint>
<!-- # 18 --><waypoint x="-27704" z="24265" y="-55" type="RUN"> </waypoint>
<!-- # 19 --><waypoint x="-27631" z="24214" y="-13" type="RUN"> </waypoint>
<!-- # 20 --><waypoint x="-27640" z="24142" y="-2" type="RUN"> </waypoint>
<!-- # 21 --><waypoint x="-27776" z="24084" y="1" type="RUN">
walloff()
</waypoint>
<!-- # 22 --><waypoint x="-27864" z="24048" y="1" type="RUN">
player:target_Object("Gefangener der Diebe");
yrest(250)
queststate = getQuestStatus(questname_2)
if queststate == "incomplete" then
__WPL:setWaypointIndex(22);
end
queststate = getQuestStatus(questname_2)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest2complete"));
end
</waypoint>
<!-- # 24 --><waypoint x="-27944" z="23960" y="2" type="RUN">
player:target_Object("Gefangener der Diebe");
yrest(250)
queststate = getQuestStatus(questname_2)
if queststate == "incomplete" then
__WPL:setWaypointIndex(22);
end
queststate = getQuestStatus(questname_2)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest2complete"));
end
</waypoint>
<!-- # 26 --><waypoint x="-27902" z="24038" y="2" type="RUN" tag="quest2complete"> </waypoint>
<!-- # 27 --><waypoint x="-27800" z="24090" y="2" type="RUN"> </waypoint>
<!-- # 28 --><waypoint x="-27684" z="24126" y="10" type="RUN"> </waypoint>
<!-- # 29 --><waypoint x="-27555" z="24296" y="-80" type="RUN"> </waypoint>
<!-- # 30 --><waypoint x="-27522" z="24360" y="-83" type="RUN"> </waypoint>
</waypoints>
Code: Select all
<onLeaveCombat>
questname_1 = "Beseitigt weitere Gefahren";
queststate = getQuestStatus(questname_1)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
</onLeaveCombat>
Code: Select all
function settings.profile.events.onLeaveCombat()
questname_1 = "Beseitigt weitere Gefahren";
queststate = getQuestStatus(questname_1)
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("quest1complete"));
end
end