Code: Select all
/run ToggleTimeFlagPopupMenu()
Code: Select all
/run ToggleTimeFlagPopupMenu()
sorry for the late feedback.rock5 wrote:@Rickster, when it get's stuck in a relog loop does it open the mailbox and try to send each time? Or does it just relog without opening the mailbox?
to send Guard Dog Meat and and keep a stack of 99 you can use thisambolia wrote:hello
how do I send packs "guardian dog meat" and then to leave a pack of 99 and double it through the holes you have?
Code: Select all
id_watchdogmeat = 209453
num_meat = inventory:itemTotalCount(id_watchdogmeat) -- watchdog meat
num_meatToSend = num_meat - 99 -- keep one stack of meat
UMM_SendByNameOrId(_recipient, {id_watchdogmeat}, num_meatToSend) -- send the meat
Code: Select all
for slot = 1, 240 do
if 0 >= inventory:itemTotalCount(0,"bags") then break end -- stop the loop if there are no free bag slots
item = inventory.BagSlot[slot]
-- if there is an item, check if its watchdogmeat and if there is enough to split
if item.Available and not item.Empty and item.Id == id_watchdogmeat and inventory:itemTotalCount(id_watchdogmeat) >= 2 then
while (inventory:itemTotalCount(0,"bags") >= 1 do -- while at least one free bag slot
RoMScript("SplitBagItem("..slot..","..1..")"); yrest(300)
end
end
end;
i use this to send to an alt, in case of the primary recipients mailbox is fullrock5 wrote:If you have done some code to "react on errors" then the bug could be in your code. What does your mailing code look like?
Code: Select all
local success, err_msg = UMM_SendByFusedTierLevel(char1, 5)
if success==false then
UMM_SendByFusedTierLevel(char2, 5)
end
end
Code: Select all
local success, err_msg = UMM_Send...(...)
if success==false then
logMailStatus(_recipient, success, err_msg, _debug_mode) -- own log function
end
end
Code: Select all
UMM_SendByNameOrId("recip", {"Obsidian Arrow"}, 30)
hello and as I put it?Rickster wrote:to send Guard Dog Meat and and keep a stack of 99 you can use thisambolia wrote:hello
how do I send packs "guardian dog meat" and then to leave a pack of 99 and double it through the holes you have?to split the rest over the free bag slots this comes to my mind, but i did not test itCode: Select all
id_watchdogmeat = 209453 num_meat = inventory:itemTotalCount(id_watchdogmeat) -- watchdog meat num_meatToSend = num_meat - 99 -- keep one stack of meat UMM_SendByNameOrId(_recipient, {id_watchdogmeat}, num_meatToSend) -- send the meat
I did not find much info about SplitBagItem(), but here are some infos about it:Code: Select all
for slot = 1, 240 do if 0 >= inventory:itemTotalCount(0,"bags") then break end -- stop the loop if there are no free bag slots item = inventory.BagSlot[slot] -- if there is an item, check if its watchdogmeat and if there is enough to split if item.Available and not item.Empty and item.Id == id_watchdogmeat and inventory:itemTotalCount(id_watchdogmeat) >= 2 then while (inventory:itemTotalCount(0,"bags") >= 1 do -- while at least one free bag slot RoMScript("SplitBagItem("..slot..","..1..")"); yrest(300) end end end;
http://runesofmagic.gamepedia.com/API:SplitBagItem
and there is a topic about it on solarstrike:
http://www.solarstrike.net/phpBB3/viewt ... =21&t=4775
Code: Select all
<!-- # 3 --><waypoint x="6394" z="3497" y="158">
id_watchdogmeat = 209453
num_meat = inventory:itemTotalCount(id_watchdogmeat) -- watchdog meat
num_meatToSend = num_meat - 99 -- keep one stack of meat
UMM_SendByNameOrId(_recipient, {id_watchdogmeat}, num_meatToSend) -- send the meat
</waypoint>
the dealer does not work as I put it? in onload?ambolia wrote:hello and as I put it?Rickster wrote:to send Guard Dog Meat and and keep a stack of 99 you can use thisambolia wrote:hello
how do I send packs "guardian dog meat" and then to leave a pack of 99 and double it through the holes you have?to split the rest over the free bag slots this comes to my mind, but i did not test itCode: Select all
id_watchdogmeat = 209453 num_meat = inventory:itemTotalCount(id_watchdogmeat) -- watchdog meat num_meatToSend = num_meat - 99 -- keep one stack of meat UMM_SendByNameOrId(_recipient, {id_watchdogmeat}, num_meatToSend) -- send the meat
I did not find much info about SplitBagItem(), but here are some infos about it:Code: Select all
for slot = 1, 240 do if 0 >= inventory:itemTotalCount(0,"bags") then break end -- stop the loop if there are no free bag slots item = inventory.BagSlot[slot] -- if there is an item, check if its watchdogmeat and if there is enough to split if item.Available and not item.Empty and item.Id == id_watchdogmeat and inventory:itemTotalCount(id_watchdogmeat) >= 2 then while (inventory:itemTotalCount(0,"bags") >= 1 do -- while at least one free bag slot RoMScript("SplitBagItem("..slot..","..1..")"); yrest(300) end end end;
http://runesofmagic.gamepedia.com/API:SplitBagItem
and there is a topic about it on solarstrike:
http://www.solarstrike.net/phpBB3/viewt ... =21&t=4775
be so?
Code: Select all
<!-- # 3 --><waypoint x="6394" z="3497" y="158"> id_watchdogmeat = 209453 num_meat = inventory:itemTotalCount(id_watchdogmeat) -- watchdog meat num_meatToSend = num_meat - 99 -- keep one stack of meat UMM_SendByNameOrId(_recipient, {id_watchdogmeat}, num_meatToSend) -- send the meat </waypoint>
Code: Select all
UMM_SendByNameOrId("recipient name", {"name of guard dog meat ini your language"}, NumberOfItemsToSend)
player:sleep()
Code: Select all
UMM_SendByNameOrId("Charname", 209453, 99)
any way put this onload to your waypointambolia wrote:hello and as I put it?
be so?
_____________________
the dealer does not work as I put it? in onload?
Code: Select all
<onLoad>
function give_name_to_this_function()
num_meat = inventory:itemTotalCount(209453) -- watchdog meat
num_meatToSend = num_meat - 99 -- keep one stack of meat
UMM_SendByNameOrId("CharName", 209453, num_meatToSend) -- change "CharName" with your recipient
end
</onLoad>
Code: Select all
<!-- # 1 --><waypoint x="6394" z="3497" y="158">
give_name_to_this_function()
<waypoint>
I tried version 1.82b5 and tested it with UMM_SendByFusedTierLevel sending to a full mailbox. I tested it lots of times now, sending lots of mails while running the client for a very long time and after changing chars. There were no errors like before.rock5 wrote:Ok, just discovered that when you get the bag full warning one of the items to be sent gets locked. You can't move it or send it until you close the mailbox. So I have it close the mailbox if it gets that error.
Also if trying to send only 1 item to the bag full recipient it fails to detect the warning message. I think it's a timing issue. I've fixed that too.
Try this file.
Code: Select all
Mailing delayed. Reloging before continuing.
The game client did not crash.
8:54am - IGF:\ChangeChar(CHARACTER_SELECT.selectedIndex)\ [string "local a={Chan
geChar(CHARACTER_SELECT.select..."]:1: attempt to call global 'ChangeChar' (a ni
l value)
AL lib: FreeContext: (00C1CF68) Deleting 1 Source(s)
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
Code: Select all
<onLoad>
function fusioncheck()
if inventory:itemTotalCount(202999) >= 27 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("padala"));
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("pabili"));
end
end
function MakeMaxManaStones()
-- Setup config options
Fusion_Config("Use Item Whitelist", false)
Fusion_Config("Fusion Stones", true)
Fusion_Config("Green", true)
Fusion_Config("Speed", .7)
-- Open dialogs
if RoMScript("AdvancedMagicBoxFrame ~= nil") then
RoMScript("AdvancedMagicBoxFrame:Show()"); yrest(1500)
RoMScript("FusionFrame2:Show()"); yrest(1500)
RoMScript("Fusion_Max(FusionFrame2_Max)") yrest(1500)
print("Now Fusing ...")
RoMScript("Fusion_QueueManastones(FusionFrame2_Do)");
else
RoMScript("MagicBoxFrame:Show()"); yrest(1500)
RoMScript("FusionFrame1:Show()"); yrest(1500)
RoMScript("Fusion_Max(FusionFrame1_Max)") yrest(1500)
print("Now Fusing ...")
RoMScript("Fusion_QueueManastones(FusionFrame1_Do)");
end
repeat
yrest(1500)
until RoMScript("Fusion.LastGrad")==0
-- close
yrest(2000)
if RoMScript("AdvancedMagicBoxFrame ~= nil") then
RoMScript("AdvancedMagicBoxFrame:Hide()"); yrest(500)
else
RoMScript("MagicBoxFrame:Hide()"); yrest(500)
end
end
</onLoad>
<!-- # 1 --><waypoint x="-23029" z="4584" tag="pabili">
sendMacro("CloseWindows()")
player:openStore("Leskar Prole"); yrest(2000);
sendMacro("ChoiceOption(1);"); yrest(2000);
inventory:storeBuyItem(202999,6)
yrest(2000)
fusioncheck()
yrest(1000)
</waypoint>
Code: Select all
while 27 > inventory:itemTotalCount("Fusion Stone") do
inventory:storeBuyItem(202999,5)
end
Code: Select all
local have = inventory:itemTotalCount("Fusion Stone")
if 27 > have then
inventory:storeBuyItem(202999,27-have)
end
Code: Select all
local have = inventory:itemTotalCount("Fusion Stone") + inventory:itemTotalCount("Random Fusion Stone")
Users browsing this forum: No registered users and 3 guests