Re: rock5's "fastLogin Revisited"
Posted: Thu Oct 16, 2014 5:00 am
I'm currently working on a major update. It's on my to-do list to handle the "user already exist" message.
MicroMacro home
https://www.solarstrike.net/phpBB3/
what a pity((rock5 wrote:It's not possible at the moment. It might be possible with my new version when/if I ever finish it.
I'm still not sure what you mean. You check your mail by going to a mailbox and usingDesmond wrote:and the function to check the mail when my bot sent characters belts there?
Code: Select all
UMM_TakeMail()
Code: Select all
local CheckSentMessages by name ={"Stork", "Herau"}; then
loadPaths("Stones_Buy_Send")
here is the code if I insert a transition to the next waypoint bot does not send all characters belt, need to check when the bot belt sent all the characters straps then go next waypointrock5 wrote:Who sends the belts? Are you waiting for the belt sender to finish, before going to buy stones and send them? What is this bot doing while it waits?
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
npcName = 123010 -- Didide Spiderfoot
BeltName = 228966 -- Recall Belt
__WPL:setWaypointIndex(1)
names ={"Albisno", "Albisnoo", "Albisnooo", "Albisnoooo", "Albisnooooo", "Albisnoooooo", "Albisnooooooo", "Albisnoooooooo", "Pegko", "Pegkoo", "Pegkooo", "Pegkoooo", "Pegkooooo", "Pegkoooooo", "Pegkooooooo", "Pegkoooooooo", "Kiboto", "Kibotoo", "Kibotooo", "Kibotoooo", "Kibotooooo", "Kibotoooooo", "Kibotooooooo", "Kibotoooooooo", "Dauro", "Dauroo", "Daurooo", "Dauroooo", "Daurooooo", "Dauroooooo", "Daurooooooo", "Dauroooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
name_index = 0
number_to_send = 8
merge(2)
merge("Phirius Token Coin", 5)
merge(203276)
</onLoad>
<!-- # 1 --><waypoint x="-10291" z="2206" y="19">
local empty = inventory:itemTotalCount(0)
local needed = (#names - name_index) * number_to_send - inventory:itemTotalCount(BeltName)
player:openStore(npcName)
if needed > empty then
store:buyItem(BeltName, empty)
else
store:buyItem(BeltName, needed)
end
</waypoint>
<!-- # 2 --><waypoint x="-10061" z="2245" y="22"> </waypoint>
<!-- # 3 --><waypoint x="-9886" z="2295" y="23">
while inventory:itemTotalCount(BeltName) >= number_to_send do
name_index = name_index + 1
if name_index > #names then
error("Finished.")
end
UMM_SendByNameOrId(names[name_index], BeltName, number_to_send)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
</waypoint>
</waypoints>
Code: Select all
<!-- # 3 --><waypoint x="-9886" z="2295" y="23">
while inventory:itemTotalCount(BeltName) >= number_to_send do
name_index = name_index + 1
if name_index > #names then
break
end
UMM_SendByNameOrId(names[name_index], BeltName, number_to_send)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
if name_index > #names then
loadPaths("Stones_Buy_Send")
end
</waypoint>
well I'll try to thank you very much! and how to solve the problem NPC moves in different directionsrock5 wrote:I think I see what's happening. It runs out of belts when it finishes so it runs back and forth doing nothing. Is that right?
Try this for the last waypoint.Code: Select all
<!-- # 3 --><waypoint x="-9886" z="2295" y="23"> while inventory:itemTotalCount(BeltName) >= number_to_send do name_index = name_index + 1 if name_index > #names then break end UMM_SendByNameOrId(names[name_index], BeltName, number_to_send) end yrest(1000); RoMScript("UMMFrame:Hide()"); if name_index > #names then loadPaths("Stones_Buy_Send") end </waypoint>
Code: Select all
<!-- # 3 --><waypoint x="-9886" z="2295" y="23">
while inventory:itemTotalCount(BeltName) >= number_to_send do
name_index = name_index + 1
if name_index > #names then
break
end
UMM_SendByNameOrId(names[name_index], BeltName, number_to_send)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
if name_index >= #names then
loadPaths("Stones_Buy_Send")
end
</waypoint>
I'm sorry but I do not quite understand explain in deeperrock5 wrote:I understand now. You are saying that the npc moves and the store closes while it's buying. Does the bot stop or does it go to the next waypoint?
If the npc doesn't move very much the first thing to try is to move the waypoint to a more central location so the npc is always in range. Move the player to the better
location, start rom/getid and use the coordinates to edit the waypoint x, z, y values.
when he moved the store is closedrock5 wrote:Is the problem that the npc moves? Does the npc move very far or does it only move a little?