Page 1 of 2
Mysterious bags
Posted: Tue Aug 13, 2013 11:36 pm
by BeyondNames
Does any1 have a WP for farming mysterious bags and r willing to share it
If not i would like to learn to create my own
Im guessing the bags make the WP different then a regular farming WP
Everything you need to know to make a mysterious bag WP could u please share with me
Thx for the help
Re: Mysterious bags
Posted: Fri Aug 16, 2013 10:28 pm
by kuripot
you can farm daily quest item at the same time and farming misterious bag just put in your profile
Code: Select all
<onLeaveCombat><![CDATA[
if player:findNearestNameOrId("Mysterious Bag") then
local filename = getExecutionPath() .. "/logs/giftbag.log";
local file, err = io.open(filename, "a+");
if file then
file:write("Date: "..os.date().." scout")
file:close();
end
player:target_Object("Mysterious Bag")
yrest(1000)
player:target_Object("Mysterious Bag")
yrest(1000)
end
]]></onLeaveCombat>
Re: Mysterious bags
Posted: Fri Jan 10, 2014 4:40 am
by Rivvva
Hi Lisa, hi Rock, hi forum users
I´m a botter from Austria and got a problem without any solution in sight!
I and my bot want to farm some "Mysterious Bag"´s (in german "Mysteriöser Beutel") but after such a bag is dropped, my bot don´t want to get it in focus.
Here is the code I use:
Code: Select all
if player:findNearestNameOrId("Mysterious Bag") and inventory:itemTotalCount(0) ~= 0 then
player:target_Object("Mysterious Bag");
yrest(800);
player:loot();
yrest(900);
end
if player:findNearestNameOrId(105930) and inventory:itemTotalCount(0) ~= 0 then
player:target_Object(105930);
yrest(800);
player:loot();
yrest(900);
end
I found these snippets by searching in the deep of the forum, but it doesn´t work!
Please help me !
Rene
Re: Mysterious bags
Posted: Fri Jan 10, 2014 5:42 am
by Rivvva
I got stick in searching for a solution and I think having found some
I replaced the Umlaut in "Mysteriöser Beutel" with "Mysteri\195\182ser Beutel" but that seems wrong!
Better is to replace ö with \148!
Hope that thing will work now!
°!° Rene
Re: Mysterious bags
Posted: Fri Jan 10, 2014 7:30 am
by rock5
The name matching will be made with the ingame name which uses utf8. So I would expect "Mysteri\195\182ser Beutel" to work. If you use an editor that can save in utf8 such as NotePad++ then you should also be able to use "Mysteriöser Beutel".
Re: Mysterious bags
Posted: Sun Jan 12, 2014 6:51 am
by Rivvva
Hi friends!
Please excuse my asking at this topic for another unsolved problem!
I have a char MAGE/PRIEST and using it for some KS-runs! Sometimes my char needs healing and I want to use urgent heal from the sec class at the onLeave-event.
But the bot gets sticked and reports an error!
Please tell me the correct way using skills from the sec class!
Thx in advance, Rene
Re: Mysterious bags
Posted: Sun Jan 12, 2014 7:08 am
by rock5
In the future please don't hijack an unrelated topic. Feel free to start your own topics.
As a Mage the bot uses the skills in your profile that are in the Mage section, ie. between the <skills_mage> and </skills_mage> tags. So if you want to use a priest skill just copy it from the priest section and paste it to the mage section.
Re: Mysterious bags
Posted: Sun Jan 12, 2014 7:23 am
by Rivvva
Hi Rock5,
thanx a lot for your fast answer!
Rene
Re: Mysterious bags
Posted: Sun Jan 12, 2014 9:20 am
by BlubBlab
Because I see this and thought it in the past.
Should not looting the bags be part of the bot-looting options?(I know 75+)
Re: Mysterious bags
Posted: Sun Jan 12, 2014 9:28 am
by rock5
Interesting idea. But they're not really regular loot are they? They only appear in certain zones right? I never see them in the zones I frequent. I also got the impression they could be lying around, not necessarily from your kills, so that wouldn't really make it a loot.
Re: Mysterious bags
Posted: Sun Jan 12, 2014 9:55 am
by BlubBlab
They are from kills up from the Level 75er Zone. They lay on the ground when the mobs vanish.
Re: Mysterious bags
Posted: Sun Jan 12, 2014 3:30 pm
by Bill D Cat
I know there are regions of Tergothen Bay where different mobs fight each other, and occasionally one of those bags will drop when they kill each other. I usually make it a point to run up where the dogs and birds fight just to look for extra bags lying around for the taking. So it's not a requirement that the player kill a mob for a bag to appear, just that a mob dies regardless of what kills it.
Re: Mysterious bags
Posted: Sun Jan 12, 2014 11:51 pm
by rock5
I'm thinking it's enough just to have some solid code available for people farming those areas who want to collect the bags that they can put in their "onLeaveCombat" sections.
Re: Mysterious bags
Posted: Mon Jan 13, 2014 1:45 pm
by BlubBlab
can I make with this info it international?
Code: Select all
if player:findNearestNameOrId("Mysterious Bag") and inventory:itemTotalCount(0) ~= 0 then
player:target_Object("Mysterious Bag");
yrest(800);
player:loot();
yrest(900);
end
if player:findNearestNameOrId(105930) and inventory:itemTotalCount(0) ~= 0 then
player:target_Object(105930);
yrest(800);
player:loot();
yrest(900);
end
Its strange one time it use the name the other time the id?!
Re: Mysterious bags
Posted: Mon Jan 13, 2014 2:42 pm
by Bill D Cat
I think this will look for all the variants of the Mysterious Bag in one routine.
Code: Select all
repeat
local mBag = player:findNearestNameOrId({105930,105982,107217,107442,107445})
if mBag and inventory:itemTotalCount(0) ~= 0 then
player:target_Object(mBag.Id)
yrest(800)
player:loot()
yrest(900)
end
until mBag == nil or inventory:itemTotalCount(0) == 0
Re: Mysterious bags
Posted: Thu Feb 13, 2014 12:04 pm
by 883Dman
Does this solve the frequent crashing associated with farming bags as well?
Re: Mysterious bags
Posted: Thu Feb 13, 2014 6:44 pm
by lisa
I use this in profile onleavecombat and never had crash issues.
Code: Select all
if player:findNearestNameOrId("Mysterious Bag") then
print("\n\n found bag \n\n")
player:target_Object("Mysterious Bag")
yrest(1000) -- If not enough time to pick up bag, increase it.
player:target_Object("Mysterious Bag")
yrest(1000)
end
Re: Mysterious bags
Posted: Thu Feb 13, 2014 7:14 pm
by 883Dman
I'll give it a try. Thx.
Re: Mysterious bags
Posted: Thu Feb 13, 2014 7:33 pm
by lisa
I liked the Id checks Bill did so I changed mine.
Code: Select all
local mBag = player:findNearestNameOrId({105930,105982,107217,107442,107445})
if mBag and inventory:itemTotalCount(0) ~= 0 then
print("\n\n found bag \n\n")
player:target_Object(mBag.Id)
yrest(1000) -- If not enough time to pick up bag, increase it.
player:target_Object(mBag.Id)
yrest(1000)
end
Re: Mysterious bags
Posted: Thu Feb 27, 2014 10:10 pm
by Vengefulmilk
Hey guys, with the newest zone some of the bags bug out and you'll need to add 107446 in to loot them. Works flawlessly for me now that bags were dropping with the names Sys107446 or something similar.