Wailing Fjord Daily/Public Mad Bull
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: Wailing Fjord Daily/Public Mad Bull
Nope, can't figure it out.
Here is a version of function.lua with some print messages. Try this and show me the printed messages.
Here is a version of function.lua with some print messages. Try this and show me the printed messages.
- Attachments
-
- functions.lua
- (89.26 KiB) Downloaded 180 times
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
ehm dunno how to use this in bot
Newb here.. trying to learn.
Or should i recall this function in a waypoint file and then use waypoint?
Newb here.. trying to learn.
Or should i recall this function in a waypoint file and then use waypoint?
Satisfaction is the end of desire!!
Re: Wailing Fjord Daily/Public Mad Bull
Replace the function.lua file in the micromacro/scripts/rom folder with this one. Then run the bot as before. It should print some extra messages while it's running. When it gets stuck copy and past the MM output here so I can have a look.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
Ok here it is :
Think the xml didn't load properly i guess.
Think the xml didn't load properly i guess.
Satisfaction is the end of desire!!
Re: Wailing Fjord Daily/Public Mad Bull
Just posting this to attract rocky's attention
Satisfaction is the end of desire!!
Re: Wailing Fjord Daily/Public Mad Bull
"functions.xml"? I posted a "function.lua". An .lua is not an .xml. The "functions.lua" file is in the "rom" folder not the "rom/waypoints" folder.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
uhm i just updated the micromacro and it worked fine
ty for quickies though
ty for quickies though
Satisfaction is the end of desire!!
Re: Wailing Fjord Daily/Public Mad Bull
Still nothing for me.
Updated also
Updated also
Re: Wailing Fjord Daily/Public Mad Bull
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
Thought I had done that.
then I tried
Actually gets me moving, but after I kill elite
Have lisas function (http://www.solarstrike.net/phpBB3/viewt ... 721#p35721)
Have your userfunction (http://www.solarstrike.net/phpBB3/viewt ... 676#p40676)
Code: Select all
function getquest()
quest = questlog:haveQuest(426557, questtype) -- Wanted: "Guargo the Mad Bull"
if quest == false then
repeat
player:target_Object(122806) -- Port Bulletin Board
yrest(100)
AcceptQuestByName(426557)
yrest(200)
until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
end
end
function completequest()
quest2 = questlog:getQuest(426557, questtype)
if quest2:isComplete() then
repeat
player:target_NPC(122760) -- Chuck Willis
yrest(200)
CompleteQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
end
local roundTime = os.time()-restartTime
cprintf (cli.pink,"Time spend for this round: %s Seconds\n",roundTime)
restartTime = os.time()
questsCompleted = questsCompleted + 1
averageTime = (os.time()-time)/questsCompleted
cprintf (cli.yellow,"Average time per round: %s Seconds\n",averageTime)
checkToDoMore()
end
Code: Select all
function getquest()
quest = questlog:haveQuest(426557, questtype) -- Wanted: "Guargo the Mad Bull"
if quest == false then
repeat
player:target_Object(122806) -- Port Bulletin Board
yrest(100)
AcceptQuestByName(426557)
yrest(200)
until getQuestStatus(GetIdName(426557), questtype) ~= "accepted"
end
end
function completequest()
quest2 = questlog:getQuest(426557, questtype)
if quest2:isComplete() then
repeat
player:target_NPC(122760) -- Chuck Willis
yrest(200)
CompleteQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
Have lisas function (http://www.solarstrike.net/phpBB3/viewt ... 721#p35721)
Have your userfunction (http://www.solarstrike.net/phpBB3/viewt ... 676#p40676)
Re: Wailing Fjord Daily/Public Mad Bull
Did it have the quest?
Looks like you haven't yet. I ask some questions which you still haven't answered.i1own0u wrote:Thought I had done that.
- 1. Do you have the latest questlog userfunction installed?
2. Which quest are you trying to accept, the daily or the event? (That's from the questtype option at the top of the file)
3. When it accepts the quest, is it the right one?
4. Do you have any addons that autoaccept quests such as DailyNotes?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
I did replace the line with your line. I replaced both lines with your line.rock5 wrote:Did it have the quest?
Yes.
Looks like you haven't yet. I ask some questions which you still haven't answered.i1own0u wrote:Thought I had done that.Yes. I have tried with dailynotes both on and off. I get the same results regardless. After killing elite, that message appears.
- 1. Do you have the latest questlog userfunction installed?
Yes.
2. Which quest are you trying to accept, the daily or the event? (That's from the questtype option at the top of the file)DailyCode: Select all
questtype = "daily" -- "public" or "daily"
3. When it accepts the quest, is it the right one?
Yes (Daily)
4. Do you have any addons that autoaccept quests such as DailyNotes?
change
Code: Select all
until questlog:haveQuest(426557, questtype)
Code: Select all
until getQuestStatus(GetIdName(426557), questtype) ~= "accepted"
Code: Select all
until not questlog:haveQuest(426557, questtype)
Code: Select all
until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
http://pastebin.com/Ux1ubMVa
Re: Wailing Fjord Daily/Public Mad Bull
getQuestStatus can return 1 or 3 possible states; "complete", "incomplete" or "not accepted". "accepted" is not valid.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
Same issue.
Changed to incomplete.
Changed to incomplete.
Re: Wailing Fjord Daily/Public Mad Bull
quest shouldn't be nil if you have the quest.
Start the commandline waypoint file and run the following command and see what it prints.
There could be an issue with the quest variable itself. It looks like you are using the variable "quest" as a global variable both in the getquest function and at the waypoint. There could be a conflict. Try making them local variables.eg.
Start the commandline waypoint file and run the following command and see what it prints.
Code: Select all
print(questlog:getQuest(426557, "daily"))
Code: Select all
function getquest()
local quest = questlog:haveQuest(426557, questtype) -- Wanted: "Guargo the Mad Bull"
Code: Select all
<!-- # 1 --><waypoint x="-8284" z="2127">
local quest = questlog:getQuest(426557, questtype)
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Wailing Fjord Daily/Public Mad Bull
i try many times to finish this script where my hero use daily count function and when fiish 10 times use dailies ticket......any script i try worl can i have an help pls?
i use this function but not work because hero stay in front bulletin and not go to do daily
there is another problem because there are 2 different waypoint where take quest and delivery...help pls
i use this function but not work because hero stay in front bulletin and not go to do daily
there is another problem because there are 2 different waypoint where take quest and delivery...help pls
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
function doquest()
player:target_NPC(122806) -- Port Bulletin Board
AcceptQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
yrest(200)
end
while (true) do
doquest()
local dqCount, dqPerDay = RoMScript("Daily_count()");
yrest(1000)
if dqCount == 10 then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
yrest(1000)
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
end
end
</onLoad>
</waypoints>
Re: Wailing Fjord Daily/Public Mad Bull
The checking for daily tickets code looks fine but I don't understand how it is you are trying to actually complete the quest, the only thing you do is target a bulletin board and then try to accept a quest and nothing else. You need to add in code to actually do the quest.
Code: Select all
function doquest()
player:target_NPC(122806) -- Port Bulletin Board
AcceptQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
yrest(200)
end
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Wailing Fjord Daily/Public Mad Bull
i have abither question,in a future how can i insert in a script daily and reset command for do it?i see many post where we can find it but when i try i always have a problem because i don't know if i can add it in onload section or just in a waypoint....can i see an examples pls?i have this (lisa's dailies count and ticket):but this is for do kashaylan daily quest when there are ppl do event.i'd like to know some point:
1 how can i insert it if there are 2 different point for delivery daily
2 how can i add it just in a waypoint file
3 why is there the command " while true do " ?
1 how can i insert it if there are 2 different point for delivery daily
2 how can i add it just in a waypoint file
3 why is there the command " while true do " ?
Code: Select all
<onLoad>
function doquest()
player:target_NPC(123561) -- Jenn Shadoli
AcceptQuestByName(427048) -- Research Expert
CompleteQuestByName(427048) -- Research Expert
end
while (true) do
doquest()
local dqCount, dqPerDay = RoMScript("Daily_count()");
yrest(1000)
if dqCount == 10 then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
yrest(1000)
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
end
end
</onLoad>
</waypoints>
-
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Wailing Fjord Daily/Public Mad Bull
Sasuke,
I just wrote this function up so it is untested, but it's a function you could use to check for daily quests being done, use tickets if needed, and end if no tickets left:
This could be added in the <onload> section of a waypoint file. at the point where you finish a quest and want to see if all 10 have been completed, you simply insert checkQuestStatus(startWP,endWP,resetOrNot) where:
startWP is the name/tag of the waypoint where you want to go to accept the quest, such as "getquest"
endWP is the name/tag of the waypoint you want to go to when all quests are done and you have no reset tickets left, such as "allDone".
resetOrNot is either true or false. If true, it will attempt to use daily reset tickets if you have them. If false it will not use any reset tickets. Anything other than true will default to false.
Here's an example of how it would be used. The following waypoints are from a MadBull script but all the actual actions were taken out so you can see the names/tags of the waypoints and where I insert the function mentioned above, which happens to be in Waypoint # 22.
Be sure where you use the function name that the name of the waypoints are included inside quotes like I did in waypoint 22. Let me know if this works. If so, maybe I'll add more features such as how many tickets to use, or what character level to stop using tickets at. Maybe I should turn this into a userfunction. It would make it a lot easier to implement this code in the many waypoints that people write for dailies because with almost every one posted, the question comes up "how do I use reset tickets with this waypoint file?"
++Update:
I have actually just finished creating a userfunction for this and even added in the ability to specify how many tickets to keep in inventory and NOT use, just in case you don't want to use them all in one place. I'm going to test the userfunction tonight and then post it in a new post once I test it and fix any errors (I don't want to post a new userfunction in the forums that I haven't first tested).
I just wrote this function up so it is untested, but it's a function you could use to check for daily quests being done, use tickets if needed, and end if no tickets left:
Code: Select all
function checkQuestStatus(startWP,endWP,resetOrNot) -- startWP is the waypoint you go to to start the quest over again, endWP is the waypoint you go to when you're done and out of reeset tickets.
if resetOrNot ~= true and resetOrNot ~= false then
print("resetOrNot needs to be set to true or false. Anything else will assume false so we are not using reset tickets.\n" )
resetOrNot = false
end
player:update()
yrest(500)
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if (dailyQuestCount==dailyQuestsPerDay) then
if inventory:itemTotalCount(202434) > 0 and resetOrNot then --daily reset tickets
inventory:useItem(202434);
yrest(200)
__WPL:setWaypointIndex(__WPL:findWaypointTag(startWP))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag(endWP))
end
else
__WPL:setWaypointIndex(__WPL:findWaypointTag(startWP))
end
end
startWP is the name/tag of the waypoint where you want to go to accept the quest, such as "getquest"
endWP is the name/tag of the waypoint you want to go to when all quests are done and you have no reset tickets left, such as "allDone".
resetOrNot is either true or false. If true, it will attempt to use daily reset tickets if you have them. If false it will not use any reset tickets. Anything other than true will default to false.
Here's an example of how it would be used. The following waypoints are from a MadBull script but all the actual actions were taken out so you can see the names/tags of the waypoints and where I insert the function mentioned above, which happens to be in Waypoint # 22.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
-- The below function will check to see if you've done all 10 daily quests.
-- If you have, it will then check for reset tickets in inventory.
-- If you have one, it will use it and then go to the starting waypoint that you designate.
-- If you don't have any resets, it will go to the waypoint you specify with endWP.
-- You can specify with 3rd argument whether or not to use reset tickets (true or false)
--
-- startWP and endWP should be the name of the waypoints you are specifying.
function checkQuestStatus(startWP,endWP,resetOrNot) -- startWP is the waypoint you go to to start the quest over again, endWP is the waypoint you go to when you're done and out of reeset tickets.
if resetOrNot ~= true and resetOrNot ~= false then
print("resetOrNot needs to be set to true or false. Anything else will assume false so we are not using reset tickets.\n" )
resetOrNot = false
end
player:update()
yrest(500)
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if (dailyQuestCount==dailyQuestsPerDay) then
if inventory:itemTotalCount(202434) > 0 and resetOrNot then --daily reset tickets
inventory:useItem(202434);
yrest(200)
__WPL:setWaypointIndex(__WPL:findWaypointTag(startWP))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag(endWP))
end
else
__WPL:setWaypointIndex(__WPL:findWaypointTag(startWP))
end
end
</onload>
--here's an example of how to use it:
<!-- # 1 --><waypoint x="-9162" z="3050"> </waypoint>
<!-- # 2 --><waypoint x="-9218" z="2938"> </waypoint>
<!-- # 3 --><waypoint x="-9446" z="2733"> </waypoint>
<!-- # 4 --><waypoint x="-9688" z="2889"> </waypoint>
<!-- # 5 --><waypoint x="-9793" z="3028" tag="getquest">
-- talking to NPC to accept the quest would be here
</waypoint>
<!-- # 6 --><waypoint x="-9633" z="2849"> </waypoint>
<!-- # 7 --><waypoint x="-9437" z="2768"> </waypoint>
<!-- # 8 --><waypoint x="-9299" z="2826"> </waypoint>
<!-- # 9 --><waypoint x="-9026" z="2676"> </waypoint>
<!-- # 10 --><waypoint x="-8985" z="2649"> </waypoint>
<!-- # 11 --><waypoint x="-8804" z="2496"> </waypoint>
<!-- # 12 --><waypoint x="-8643" z="2264"> </waypoint>
<!-- # 13 --><waypoint x="-8242" z="2090">
-- this is where actions are done based on the quest (kill something, gather something, etc...)
</waypoint>
<!-- # 14 --><waypoint x="-8591" z="2448"> </waypoint>
<!-- # 15 --><waypoint x="-9016" z="2671"> </waypoint>
<!-- # 16 --><waypoint x="-9322" z="2828"> </waypoint>
<!-- # 17 --><waypoint x="-9516" z="2781"> </waypoint>
<!-- # 18 --><waypoint x="-9549" z="2870"> </waypoint>
<!-- # 19 --><waypoint x="-9555" z="2999"> </waypoint>
<!-- # 20 --><waypoint x="-9603" z="3096"> </waypoint>
<!-- # 21 --><waypoint x="-9716" z="3165"> </waypoint>
<!-- # 22 --><waypoint x="-9796" z="3159">
-- talking to NPC to turn in/complete the quest
checkQuestStatus("getquest","allDone",true) -- if we had a ticket and used it, it goes back to the "getquest" waypoint (WP#5) otherwise it goes to the "allDone" waypoint (WP#24)
</waypoint>
<!-- # 23 --><waypoint x="-9770" z="2998"> </waypoint>
<!-- # 24 --><waypoint x="-9770" z="2998" tag="allDone"> </waypoint>
<!-- # 25 --><waypoint x="-9688" z="2889"> </waypoint>
<!-- # 26 --><waypoint x="-9446" z="2733"> </waypoint>
<!-- # 27 --><waypoint x="-9218" z="2938"> </waypoint>
<!-- # 28 --><waypoint x="-9162" z="3050">
error("All Done.")
</waypoint>
</waypoints>
++Update:
I have actually just finished creating a userfunction for this and even added in the ability to specify how many tickets to keep in inventory and NOT use, just in case you don't want to use them all in one place. I'm going to test the userfunction tonight and then post it in a new post once I test it and fix any errors (I don't want to post a new userfunction in the forums that I haven't first tested).
Re: Wailing Fjord Daily/Public Mad Bull
ty m8 for your reply but you use more functions than what I need because i need only simple function for do dailies and use ticket ,i can explain you better.
if i have this waypoints:
I just need to add a section precompiled always to scripts that create ,for example:
this function can add in the " on -load"section which directly between a waypoint and another
i'd like to know how to add this function on the start for example :
or between waypoint:
now you understand?
first example I will use the first where I can take and deliver this direct to an npc in the other case, the NPC is another.
ty m8 but you are a pro for use macro than me:)i need more simple:)
if i have this waypoints:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="6840" z="22723" y="23"> </waypoint>
<!-- # 2 --><waypoint x="6706" z="22714" y="24"> </waypoint>
<!-- # 3 --><waypoint x="6569" z="22655" y="31"> </waypoint>
<!-- # 4 --><waypoint x="6475" z="22604" y="28"> </waypoint>
<!-- # 5 --><waypoint x="6345" z="22587" y="28"> </waypoint>
</waypoints>
Code: Select all
function questsDone()
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if dqCount == 10 then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
yrest(1000)
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
i'd like to know how to add this function on the start for example :
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
function questsDone()
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if dqCount == 10 then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
yrest(1000)
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
/onload>
</waypoints>
<!-- # 1 --><waypoint x="6840" z="22723" y="23"> </waypoint>
<!-- # 2 --><waypoint x="6706" z="22714" y="24"> </waypoint>
<!-- # 3 --><waypoint x="6569" z="22655" y="31">
</waypoints>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="6840" z="22723" y="23">
function questsDone()
local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
if dqCount == 10 then
if inventory:itemTotalCount(202434) >= 1 then
inventory:useItem(202434);
yrest(1000)
else
printf("No Daily Reset Cards left!\n")
player:sleep();
end
</waypoint>
<!-- # 2 --><waypoint x="6706" z="22714" y="24"> </waypoint>
<!-- # 3 --><waypoint x="6569" z="22655" y="31">
</waypoints>
first example I will use the first where I can take and deliver this direct to an npc in the other case, the NPC is another.
ty m8 but you are a pro for use macro than me:)i need more simple:)
Who is online
Users browsing this forum: Google [Bot] and 1 guest