Code: Select all
UMM_SendByNameOrId(nameTable[counter],getIdsFrom(armor),10)
Code: Select all
UMM_SendByNameOrId(nameTable[counter],getIdsFrom(armor),10)
Code: Select all
function sendBelts()
local armor=MGbuildItemTableOfType("Armor");
armor=selectItemsByName(armor, itemName);
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
-- Buy Belts script - V1.0 - written by Jandrana - Used as a Layout
-- Edited by Eggman1414
nameTable =
{
---characters go here,
}
counter = 1
itemName = "Random Fusion Stone";
function buyFusion()
player:openStore("Odeley Prole")
store:buyItem(itemName, 10);
yrest(1000)
end
function sendFusion()
UMM_SendAdvanced(nameTable[counter], 202999, nil, nil, nil, nil, nil, nil, 10, nil, nil);
yrest(500);
sendMacro("CloseAllWindows()");
counter = counter + 1;
end
</onLoad>
<!-- # 1 --><waypoint x="2755" z="-1627" y="53">
buyFusion();
</waypoint>
<!-- # 2 --><waypoint x="2914" z="-1633" y="77"> </waypoint>
<!-- # 3 --><waypoint x="3110" z="-1760" y="126"> </waypoint>
<!-- # 4 --><waypoint x="3518" z="-1611" y="126"> </waypoint>
<!-- # 5 --><waypoint x="3669" z="-1774" y="126"> </waypoint>
<!-- # 6 --><waypoint x="3933" z="-1676" y="175"> </waypoint>
<!-- # 7 --><waypoint x="4308" z="-2048" y="126"> </waypoint>
<!-- # 8 --><waypoint x="4540" z="-2151" y="126">
if nameTable[counter] == "Last characters Name" then
print("Done mailing.")
player:sleep()
else
sendFusion();
end
</waypoint>
<!-- # 1 --><waypoint x="4545" z="-2163" y="103"> </waypoint>
<!-- # 2 --><waypoint x="4084" z="-1733" y="150"> </waypoint>
<!-- # 3 --><waypoint x="3805" z="-1694" y="156"> </waypoint>
<!-- # 4 --><waypoint x="3613" z="-1700" y="102"> </waypoint>
<!-- # 5 --><waypoint x="3491" z="-1564" y="102"> </waypoint>
<!-- # 6 --><waypoint x="3078" z="-1738" y="102"> </waypoint>
<!-- # 7 --><waypoint x="2802" z="-1590" y="53"> </waypoint>
<!-- # 8 --><waypoint x="2756" z="-1625" y="53">
</waypoint>
</waypoints>
Code: Select all
UMM_SendByNameOrId(nameTable[counter],{"Fusion Stone","Random Fusion Stone"}, 10)
Code: Select all
sendMacro("Fusion_ClearBagOnClick()") yrest(1000);
sendMacro("FusionConfig_OnShow()"); yrest(500);
Fusion_Config("Speed", .7)
sendMacro("FusionConfig_Save()") yrest(500);
Code: Select all
<onLoad>
function SendStones()
if inventory:itemTotalCount(202844) == 10 then
UMM_SendByNameOrId("char_name","Mana Stone Tier 5"); yrest(1000);
else
player:sleep();
end
end
function CheckForStone()
if inventory:itemTotalCount(202844) > 0 then
player:sleep();
end
end
</onLoad>
Code: Select all
UMM_TakeMail() yrest(1000);
RoMScript("UMMFrame:Hide()") yrest(1000);
Fusion_MakeMaxManaStones(4) -- change number of tier you want to make
player:target_Object ("Mailbox") yrest(1000);
SendStones()
RoMScript("UMMFrame:Hide()") yrest(1000);
CheckForStone() player:rest(1);
sendMacro("}LoginNextToon=true a={") -- Tell autologin to log next character
sendMacro("Logout()") -- Logout
waitForLoadingScreen() -- Wait until the next character has finished loading
loadPaths("name_of_script_here");
Thanks Lolita, I'm sure this will be great. I do have a question though. What does the return path argument do? For Instance, When I buy belts in Limo I want to use the goto portal function and Noobbotter's World Traveler Userfunction http://www.solarstrike.net/phpBB3/viewt ... =27&t=4183 to go to Varanas to start the buy Fusion Script. Is there a way to link the two? Like once it loads the Fusion Script, it has a couple of waypoints to make it to the vender, but once it makes it, it just does the script normally?lolita wrote:this is what i use for my lv 10 alts.
sending fusionsthen i clear bag and set speedCode: Select all
UMM_SendByNameOrId(nameTable[counter],{"Fusion Stone","Random Fusion Stone"}, 10)
this is on loadCode: Select all
sendMacro("Fusion_ClearBagOnClick()") yrest(1000); sendMacro("FusionConfig_OnShow()"); yrest(500); Fusion_Config("Speed", .7) sendMacro("FusionConfig_Save()") yrest(500);
and then when arive at mailCode: Select all
<onLoad> function SendStones() if inventory:itemTotalCount(202844) == 10 then UMM_SendByNameOrId("char_name","Mana Stone Tier 5"); yrest(1000); else player:sleep(); end end function CheckForStone() if inventory:itemTotalCount(202844) > 0 then player:sleep(); end end </onLoad>
i make only 10 tier 5 stones, so SendStones() function chek if you make secesfuly 10 stones and then send them, else player go to sleep, and CheckForStone() check if you successively sent items, so if you make t6,t7 you need to modify it a little bit.Code: Select all
UMM_TakeMail() yrest(1000); RoMScript("UMMFrame:Hide()") yrest(1000); Fusion_MakeMaxManaStones(4) -- change number of tier you want to make player:target_Object ("Mailbox") yrest(1000); SendStones() RoMScript("UMMFrame:Hide()") yrest(1000); CheckForStone() player:rest(1); sendMacro("}LoginNextToon=true a={") -- Tell autologin to log next character sendMacro("Logout()") -- Logout waitForLoadingScreen() -- Wait until the next character has finished loading loadPaths("name_of_script_here");
hope this will help you
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
function relog()
SetCharList({
{account=2 , chars= {2,3,4,5,6,7,8}},
{account=54 , chars= {1,2,3,4,5,6,7,8}},
{account=55 , chars= {1,2,3,4,5,6,7,8}},
})
LoginNextChar()
yrest(3000)
player:update()
loadProfile()
loadPaths("makefusion.xml");
end
nameTable =
{
"Mana Stone Tier 8","Mana Stone Tier 9","Mana Stone Tier 10"
}
function SendStones()
UMM_SendByNameOrId("character's Name Here","nameTable");
yrest(1000);
relog();
end
</onLoad>
<!-- # 1 --><waypoint x="31846" z="4590" y="9" tag ="Main">> </waypoint>
<!-- # 2 --><waypoint x="31880" z="4567" y="4"> </waypoint>
<!-- # 3 --><waypoint x="32042" z="4455" y="23"> </waypoint>
<!-- # 4 --><waypoint x="32154" z="4410" y="39"> </waypoint>
<!-- # 5 --><waypoint x="32101" z="4242" y="62"> </waypoint>
<!-- # 6 --><waypoint x="32152" z="4127" y="62"> </waypoint>
<!-- # 7 --><waypoint x="32031" z="4057" y="62"> </waypoint>
<!-- # 8 --><waypoint x="31956" z="3836" y="8"> </waypoint>
<!-- # 9 --><waypoint x="31830" z="3699" y="-15"> </waypoint>
<!-- # 10 --><waypoint x="31757" z="3617" y="-17"> </waypoint>
<!-- # 11 --><waypoint x="31768" z="3607" y="-16">
UMM_TakeMail()
yrest(1000);
RoMScript("UMMFrame:Hide()")
yrest(1000);
Fusion_MakeMaxManaStones()
player:target_Object ("Mailbox")
yrest(1000);
SendStones()
RoMScript("UMMFrame:Hide()")
yrest(1000);
</waypoint>
<!-- # 12 --><waypoint x="31757" z="3617" y="-17"> </waypoint>
<!-- # 13 --><waypoint x="31830" z="3699" y="-15"> </waypoint>
<!-- # 14 --><waypoint x="31956" z="3836" y="8"> </waypoint>
<!-- # 15 --><waypoint x="32031" z="4057" y="62"> </waypoint>
<!-- # 16 --><waypoint x="32152" z="4127" y="62"> </waypoint>
<!-- # 17 --><waypoint x="32101" z="4242" y="62"> </waypoint>
<!-- # 18 --><waypoint x="32154" z="4410" y="39"> </waypoint>
<!-- # 19 --><waypoint x="32042" z="4455" y="23"> </waypoint>
<!-- # 20 --><waypoint x="31880" z="4567" y="4"> </waypoint>
<!-- # 21 --><waypoint x="31846" z="4590" y="9">
yrest(1000);
relog()
</waypoint>
Code: Select all
UMM_TakeMail()
Code: Select all
inventory:useItem("name or id")
ok thats what I thought. But now something weird is going on. I tried using the UMM_TakeMail() function and it opens the first page in the Elf's Mailbox but says Please close the mail to open it. (like it was already open)? Not sure what to do. Have logged off and reload ui. Still nothinglolita wrote:Code: Select all
UMM_TakeMail()
Code: Select all
inventory:useItem("name or id")
Code: Select all
RoMScript("MailFrame:Hide()")
Code: Select all
__WPL:setWaypointIndex(1)
Code: Select all
if RoMScript("IsMagicBoxEnable()") then
code to change character
end
Code: Select all
<onLoad>
__WPL:setWaypointIndex( 1);
</onLoad>
Code: Select all
<onLoad>
__WPL:setWaypointIndex(__WPL:findWaypointTag("One"));
</onLoad>
Code: Select all
__WPL:setWaypointIndex(1)
Yes which is why I wouldn't do it like that. What I would do it clear the last waypoint so it will loop back to the first waypoint then add this in the first waypointEggman1414 wrote:So by using:
Is that just telling the bot to start at waypoint #1 no matter where the character is?Code: Select all
__WPL:setWaypointIndex(1)
Code: Select all
if RoMScript("IsMagicBoxEnable()") then
relog()
end
Users browsing this forum: No registered users and 1 guest