Re: Mana Stone Tier Production Factory V2.4
Posted: Tue Apr 29, 2014 3:06 am
it might be, it does an initial grab of items. like 4-5 items then waits. That's what is closing the mailbox.
MicroMacro home
https://www.solarstrike.net/phpBB3/
Code: Select all
local lastInboxCount = RoMScript("UMMMailManager.MailCount")
repeat
yrest(2000) -- Line 220
InboxCount = RoMScript("UMMMailManager.MailCount")
if InboxCount == lastInboxCount then
Code: Select all
NpcID = 112794
QName = "Helping Them Grow"
function relog() <!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
SetCharList({{
{account=46 , chars= {}},
{account=56 , chars= {}},
{account=67 , chars= {}}
}})
LoginNextChar()
yrest(3000)
player:update()
loadProfile()
loadPaths("Daily.xml");
end
<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
function kill_stupid_newbie_pet()
if player:findNearestNameOrId(113199) then -- search vicinity for Newbie Pet
inventory:update()
if (inventory:itemTotalCount(207051) > 0) then
inventory:useItem(207051)
local newbEgg = inventory:findItem(207051); -- Newbie Pet Egg
if newbEgg ~= nil then
inventory:deleteItemInSlot(newbEgg.SlotNumber)
end
end
end
end
<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
function delete_atonement_voucher()
if (inventory:itemTotalCount(207082) > 0) then
local voucher = inventory:findItem(207082); -- Atonement Voucher
if voucher ~= nil then
inventory:deleteItemInSlot(voucher.SlotNumber)
end
end
end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
kill_stupid_newbie_pet();
delete_atonement_voucher();
if player.Level == 1 then
loadPaths("Pre_Daily.xml");
end
local queststate = getQuestStatus(QName);
if queststate == "complete" then
player:target_NPC(NpcID);
CompleteQuestByName(QName);
yrest(300);
end
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqPerDay == dqCount then
phirCoins = inventory:itemTotalCount(203038)
print("We have "..phirCoins.." phirius coins")
else
player:target_NPC(NpcID);
AcceptQuestByName(QName,NpcID);
yrest(300);
end
</waypoint>
<!-- # 3 --><waypoint x="31860" z="4646" y="9"> </waypoint>
<!-- # 2 --><waypoint x="31742" z="5070" y="-11"> </waypoint>
<!-- # 1 --><waypoint x="31416" z="5715" y="-33" tag = "Item">
queststate = getQuestStatus(QName)
if queststate == "incomplete" then
player:target_Object(112976,300);
yrest(2500);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
</waypoint>
<!-- # 1 --><waypoint x="31416" z="5715" y="-33"> </waypoint>
<!-- # 2 --><waypoint x="31742" z="5070" y="-11"> </waypoint>
<!-- # 3 --><waypoint x="31860" z="4646" y="9"> </waypoint>
<!-- # 4 --><waypoint x="31847" z="4583" y="9"> </waypoint>
</waypoints>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
NpcID = 112794
QName = "Helping Them Grow"
function relog() <!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
SetCharList({{
{account=46 , chars= {}},
{account=56 , chars= {}},
{account=67 , chars= {}}
}})
LoginNextChar()
yrest(3000)
player:update()
loadProfile()
loadPaths("Daily.xml");
end
<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
function kill_stupid_newbie_pet()
if player:findNearestNameOrId(113199) then -- search vicinity for Newbie Pet
inventory:update()
if (inventory:itemTotalCount(207051) > 0) then
inventory:useItem(207051)
local newbEgg = inventory:findItem(207051); -- Newbie Pet Egg
if newbEgg ~= nil then
inventory:deleteItemInSlot(newbEgg.SlotNumber)
end
end
end
end
<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
function delete_atonement_voucher()
if (inventory:itemTotalCount(207082) > 0) then
local voucher = inventory:findItem(207082); -- Atonement Voucher
if voucher ~= nil then
inventory:deleteItemInSlot(voucher.SlotNumber)
end
end
end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
kill_stupid_newbie_pet();
delete_atonement_voucher();
if player.Level == 1 then
loadPaths("Pre_Daily.xml");
return
end
local queststate = getQuestStatus(QName);
if queststate == "complete" then
player:target_NPC(NpcID);
CompleteQuestByName(QName);
yrest(300);
end
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqPerDay == dqCount then -- ****************** If this is true, then you are done with your 10 daily quests
phirCoins = inventory:itemTotalCount(203038)
print("We have "..phirCoins.." phirius coins")
relog() --****************** I added this line.
else
player:target_NPC(NpcID);
AcceptQuestByName(QName,NpcID);
yrest(300);
end
</waypoint>
<!-- # 3 --><waypoint x="31860" z="4646" y="9"> </waypoint>
<!-- # 2 --><waypoint x="31742" z="5070" y="-11"> </waypoint>
<!-- # 1 --><waypoint x="31416" z="5715" y="-33" tag = "Item">
queststate = getQuestStatus(QName)
if queststate == "incomplete" then
player:target_Object(112976,300);
yrest(2500);
__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
end
</waypoint>
<!-- # 1 --><waypoint x="31416" z="5715" y="-33"> </waypoint>
<!-- # 2 --><waypoint x="31742" z="5070" y="-11"> </waypoint>
<!-- # 3 --><waypoint x="31860" z="4646" y="9"> </waypoint>
<!-- # 4 --><waypoint x="31847" z="4583" y="9"> </waypoint>
</waypoints>
i used cowbots edit to the umm userfunction and it works now but it only clears half of the mailbox after its done talking the belts and fusion stonesrock5 wrote:Sounds like a bug I fixed here. http://www.solarstrike.net/phpBB3/viewt ... 309#p58309. Try that version and tell me if it works.
Your version works great think i have everything running 100% now =] thanks!!rock5 wrote:Try my version. I think that will fix it completely.