Re: Rock5's Mail Mods
Posted: Wed Oct 01, 2014 8:08 am
that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
sendTo = "CharName" -- ENTER CHARACTER NAME TO SEND STONES TO
local npcName = 110576 -- "Odeley Prole"
local stoneName = "Random Fusion Stone"
__WPL:setWaypointIndex(1)
</onLoad>
<!-- # 1 --><waypoint x="2752" z="-1631" y="53" tag="at_shop">
local empty = inventory:itemTotalCount(0)
player:openStore(npcName)
store:buyItem(stoneName, empty)
</waypoint>
<!-- # 2 --><waypoint x="2478" z="-1242" y="53"> </waypoint>
<!-- # 3 --><waypoint x="2475" z="-1153" y="53"> </waypoint>
<!-- # 4 --><waypoint x="2897" z="-825" y="56">
travelTo("VaranasCentral")
yrest(2000)
</waypoint>
<!-- # 5 --><waypoint x="4592" z="-2040" y="103" tag="gotomail"> </waypoint>
<!-- # 6 --><waypoint x="4557" z="-2169" y="103">
if inventory:itemTotalCount(stoneName) > 0 then
UMM_SendByNameOrId(sendTo,stoneName);
yrest(1000);
RoMScript("UMMFrame:Hide()");
end
Error("All Done")
</waypoint>
</waypoints>
Here's a code I think should work it sends my twin stones immediately produces an errornoobbotter wrote:If you are buying the stones in Varanas West and sending them from mailbox in varanas central, this script should do the trick. It will check number of available bag slots, buy enough random fusion stones to fill your bags, go to Varanas Central, and then mail those stones to the character that you specify. To run this, first change the "sendTo" varaiable to the character you want to send to, then go to the fusion stone vendor in Varanas West (Odeley Prole). You must also have the travelTo userfunction installed.
here's the script:Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL"> <onLoad> sendTo = "CharName" -- ENTER CHARACTER NAME TO SEND STONES TO local npcName = 110576 -- "Odeley Prole" local stoneName = "Random Fusion Stone" __WPL:setWaypointIndex(1) </onLoad> <!-- # 1 --><waypoint x="2752" z="-1631" y="53" tag="at_shop"> local empty = inventory:itemTotalCount(0) player:openStore(npcName) store:buyItem(stoneName, empty) </waypoint> <!-- # 2 --><waypoint x="2478" z="-1242" y="53"> </waypoint> <!-- # 3 --><waypoint x="2475" z="-1153" y="53"> </waypoint> <!-- # 4 --><waypoint x="2897" z="-825" y="56"> travelTo("VaranasCentral") yrest(2000) </waypoint> <!-- # 5 --><waypoint x="4592" z="-2040" y="103" tag="gotomail"> </waypoint> <!-- # 6 --><waypoint x="4557" z="-2169" y="103"> if inventory:itemTotalCount(stoneName) > 0 then UMM_SendByNameOrId(sendTo,stoneName); yrest(1000); RoMScript("UMMFrame:Hide()"); end Error("All Done") </waypoint> </waypoints>
Code: Select all
local 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", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Starskoooooooo"}
for k, recipient in pairs(names) do
UMM_SendByNameOrId(recipient, 202999, 8)
end
Удали код самопальной функции Error("All Done") в шестой точке вэйпоинта.Desmond wrote:does not work with my code to send
Code: Select all
<!-- # 6 --><waypoint x="4557" z="-2169" y="103">
if inventory:itemTotalCount(stoneName) > 0 then
UMM_SendByNameOrId(sendTo,stoneName);
yrest(1000);
RoMScript("UMMFrame:Hide()");
end
</waypoint>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-10291" z="2206" y="19">
local empty = inventory:itemTotalCount(0)
player:openStore("Sys123010_name")
store:buyItem(228966, 1)
player:openStore("Sys123010_name")
yrest(5000)
</waypoint>
<!-- # 2 --><waypoint x="-10061" z="2245" y="22"> </waypoint>
<!-- # 3 --><waypoint x="-9886" z="2295" y="23">
if inventory:itemTotalCount("228966") > 0 then
local 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", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Starskoooooooo"}
for k, recipient in pairs(names) do
UMM_SendByNameOrId(recipient, 228966, 8)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
end
</waypoint>
</waypoints>
Code: Select all
if inventory:itemTotalCount(228966) > 0 then
Hi! I use this waypoint to buy and send belts. Use TWorkers userfunction. But You can modify to make it work for you.Desmond wrote:I have a problem when my bot send Belt when he posted 180 belt when they have run out to buy it ex after he re-sends all the characters, I need to continue to send
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
local npcName = 228966 -- "Sys123010_name"
local BeltName = "Belt Returns"
__WPL:setWaypointIndex(1)
</onLoad>
<!-- # 1 --><waypoint x="-10291" z="2206" y="19">
local empty = inventory:itemTotalCount(0)
player:openStore("Sys123010_name")
store:buyItem(228966, 1)
</waypoint>
<!-- # 2 --><waypoint x="-10061" z="2245" y="22"> </waypoint>
<!-- # 3 --><waypoint x="-9886" z="2295" y="23">
if inventory:itemTotalCount(228966) > 0 then
local 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", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
for k, recipient in pairs(names) do
UMM_SendByNameOrId(recipient, 228966, 8)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
end
</waypoint>
</waypoints>
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", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
name_index = 0
number_to_send = 8
</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
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
npcName = 111392 -- Didide Spiderfoot
StoneName = 202999 -- Recall Stone
__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", "Starsko", "Starskoo", "Starskooo", "Starskoooo", "Starskooooo", "Starskoooooo", "Starskooooooo", "Sosko", "Soskoo", "Soskooo", "Soskoooo", "Soskooooo", "Soskoooooo", "Soskooooooo", "Soskoooooooo"}
name_index = 0
number_to_send = 8
</onLoad>
<!-- # 1 --><waypoint x="-22991" z="4634" y="-260">
local empty = inventory:itemTotalCount(0)
local needed = (#names - name_index) * number_to_send - inventory:itemTotalCount(StoneName)
player:openStore(npcName)
if needed > empty then
store:buyItem(StoneName, empty)
else
store:buyItem(StoneName, needed)
end
</waypoint>
<!-- # 2 --><waypoint x="-22986" z="4475" y="-260"> </waypoint>
<!-- # 3 --><waypoint x="-23255" z="4250" y="-242"> </waypoint>
<!-- # 4 --><waypoint x="-23466" z="4089" y="-178">
while inventory:itemTotalCount(StoneName) >= number_to_send do
name_index = name_index + 1
if name_index > #names then
error("Finished.")
end
UMM_SendByNameOrId(names[name_index], StoneName, number_to_send)
end
yrest(1000);
RoMScript("UMMFrame:Hide()");
</waypoint>
</waypoints>
Are you saying you want to start the game in channel 2 but it's not working? How are you starting the game?Desmond wrote:I'm talking about the addon auto login, it belongs to any channel even when I'm standing 2
Are yo saying it's not working? Did the belt code I posted work? What happened when you tried it?Desmond wrote:I have remade the purchase of stones just something it does not work as a non-strange