Rock5's Mail Mods
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: Rock5's Mail Mods
that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail
Re: Rock5's Mail Mods
that is, need to check if the bot has bought the most stones then it checks if the Valid backpack full - then open mail
-
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: Rock5's Mail Mods
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:
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>
Re: Rock5's Mail Mods
thank you I'll try, I think that if I insert a lot of name code I think it all will have to send thank you
Re: Rock5's Mail Mods
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
Re: Rock5's Mail Mods
does not work with my code to send
Last edited by Desmond on Wed Oct 01, 2014 3:52 pm, edited 1 time in total.
Re: Rock5's Mail Mods
Удали код самопальной функции Error("All Done") в шестой точке вэйпоинта.Desmond wrote:does not work with my code to send
Remove code of function Error("All Done") in waypoint.
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>
p.s. Desmon а ты на каком сервере играешь?
Re: Rock5's Mail Mods
I do not I do not why sending mail does not work
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>
Re: Rock5's Mail Mods
itemTotalCount does not accept ids as strings. Write the id as a number.
Code: Select all
if inventory:itemTotalCount(228966) > 0 then
- 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: Rock5's Mail Mods
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
- cibervagos
- Posts: 26
- Joined: Sat Apr 12, 2014 10:36 pm
- Location: Argentina
Re: Rock5's Mail Mods
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
- Attachments
-
- BuyBelts.xml
- Buy and Send Belt with Rock5's Mail Mods and TWorkers
- (3.09 KiB) Downloaded 415 times
Re: Rock5's Mail Mods
I ask to help, when for me a boat bought the complete backpack of Belts, then he is to mail and sends to the personages when Belts made off then is back to buy when he again bought in a backpack Belts then is back to mail but does not continue to send and all first begins personages to send, and I need that he continued farther to send to whom did not send.
My Code Here.
There is another large nuance I buy Straps in Roaring Bay and there npc walks in different directions a boat will buy in belts he stepped back a boat whipped off an aim((
sorry for my english, I translate translator sorry.
My Code Here.
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>
sorry for my english, I translate translator sorry.
Re: Rock5's Mail Mods
Try this. It will buy only the number you need and will go back and buy more when needed. Note: This is untested.
If you use 'local' then the variable will only be available in the local scope. This means if you define a variable local in the onload then it will only be available in the onload. If you want to use a variable throughout the waypoint file then don't use 'local'.
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>
- 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: Rock5's Mail Mods
Thank you very much I'll check
Re: Rock5's Mail Mods
Thanks works if still solve the problem over the channel
Re: Rock5's Mail Mods
I didn't understand the part about "channel". Could you explain it again?
- 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: Rock5's Mail Mods
I'm talking about the addon auto login, it belongs to any channel even when I'm standing 2
Re: Rock5's Mail Mods
I have remade the purchase of stones just something it does not work as a non-strange
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>
Re: Rock5's Mail Mods
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
- 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
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest