Rock5's Mail Mods

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
dx876234
Posts: 188
Joined: Sat Jul 24, 2010 6:13 am

Re: Rock5's Mail Mods

#101 Post by dx876234 » Mon Dec 20, 2010 12:36 pm

The main bag loops in the mailmod must be updated with something like below as offsets are 60 now. The example works for bag1.

Code: Select all

	-- Selecting items
	for item = 61, 90, 1 do -- for each inventory
		local slotitem = inventory.BagSlot[item];
		local slotNumber = slotitem.SlotNumber

		-- Check all search terms
		-- printf("Slot %d => quality %d, level %d (%s)\n", slotNumber, slotitem.Quality, slotitem.Quality, slotitem.Name)
		if  (_quality == nil or slotitem.Quality <= _quality) and
			(_reqlevel == nil or slotitem.Quality <= _reqlevel) then

			-- mark to send
			bagid = math.floor((slotNumber-61)/30+1)
			slotid = (slotNumber - 60) - (bagid * 30 - 30)
			
			-- printf("Bag %d, slot %d\n", bagid, slotid)
			RoMScript("UMMMassSendItemsSlotTemplate_OnClick(_G['UMMFrameTab3BagsBag"..bagid.."Slot"..slotid.."'])")
			yrest(250)
		end
	end

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#102 Post by Germangold » Mon Dec 20, 2010 4:39 pm

I tried to watch closely: afaik the probleme right now is just that "highlightingor selecting" item is not working as it used to work.


any progress on this so far?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#103 Post by rock5 » Mon Dec 20, 2010 5:25 pm

Ok. It's fixed now in version 1.5.

Along with a few improvements to efficiency, I also increased the range to include all bags.

Please note, this is untested as I'm currently suffering from the 67% stuck problem.

Edit: Occurred to me that some of you will have issues with it selling from all bags so I added 2 values at the top of the file so you can specify the range of slots to send by.

Code: Select all

UMM_FromSlot = 61 -- Default 61, first slot
Umm_ToSlot = 240 -- Default 240, last slot of bag 6
  • 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

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#104 Post by Germangold » Mon Dec 20, 2010 5:49 pm

Thanks for the update

but function UMM_SendByNameOrId(_recipient, _itemTable) wont work for me....

Code: Select all

player:target_Object("Briefkasten von Logar",2000); yrest(300); --targets mailbox in logar german client
sendMacro("ChoiceOption(1);"); yrest(300); neccessary to open the mailbox
UMM_SendByNameOrId("Exakalibuhr",{204792});yrest(330); -- function to send "golden Eggs" to character
first and second point works fine as usuall
the script starts to find those golden egg in the inventory, dosent highlight them, enters the recipients name into UMM Target list and clicks on "send item" with none item selected...

Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: Rock5's Mail Mods

#105 Post by Rickster » Mon Dec 20, 2010 6:30 pm

The header of "addon_Rock5s_Mail_Functions.lua", from the first post download, still tells about v. 1.4:

Code: Select all

--==<<          Rock5's mail related functions            >>==--
--==<<           By Rock5        Version 1.4              >>==--
Which file contains the following code?
rock5 wrote:

Code: Select all

UMM_FromSlot = 61 -- Default 61, first slot
Umm_ToSlot = 240 -- Default 240, last slot of bag 6

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#106 Post by rock5 » Mon Dec 20, 2010 6:49 pm

Germangold wrote:the script starts to find those golden egg in the inventory, dosent highlight them, enters the recipients name into UMM Target list and clicks on "send item" with none item selected...
The fix was straight forward and should have worked. I can't see why it didn't.
Rickster wrote:The header of "addon_Rock5s_Mail_Functions.lua", from the first post download, still tells about v. 1.4
Good pickup.

It took me awhile to figure out why it wouldn't upload the right version. Turns out I somehow navigated to a backup folder that looked very, very similar. LOL

Anyway the correct 1.51 version is now uploaded. Enjoy.
  • 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

ratzuk
Posts: 19
Joined: Wed Dec 01, 2010 7:39 am

Re: Rock5's Mail Mods

#107 Post by ratzuk » Mon Dec 20, 2010 7:22 pm

Slight error in this. I think it should read:

Code: Select all

local UMM_FromSlot = 61 -- Default 61, first slot
local UMM_ToSlot = 240 -- Default 240, last slot of bag 6
(note the case)

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#108 Post by Germangold » Mon Dec 20, 2010 7:30 pm

new error occured

Code: Select all

Sending items to Exakalibuhr...
...ts/rom/userfunctions/addon_Rock5s_Mail_Functions.lua:202: 'for' limit must be
 a number
Line 202 in 1.51 Rockmail Functions

for item = UMM_FromSlot, UMM_ToSlot, 1 do -- for each inventory

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#109 Post by rock5 » Mon Dec 20, 2010 7:38 pm

ratzuk wrote:Slight error in this. I think it should read:

Code: Select all

local UMM_FromSlot = 61 -- Default 61, first slot
local UMM_ToSlot = 240 -- Default 240, last slot of bag 6
(note the case)
Typo fixed in version 1.52
  • 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

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#110 Post by Germangold » Mon Dec 20, 2010 8:13 pm

thx! it works

really appriciated!

swietlowka
Posts: 316
Joined: Wed Jun 16, 2010 8:16 am

Re: Rock5's Mail Mods

#111 Post by swietlowka » Thu Dec 23, 2010 4:13 pm

im keep getting an error on line 204 attempt to index local 'slotitem' <a nil value>
its after opening umm screen and tag the items to sent, then bot crashes...

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#112 Post by rock5 » Thu Dec 23, 2010 10:09 pm

swietlowka wrote:im keep getting an error on line 204 attempt to index local 'slotitem' <a nil value>
its after opening umm screen and tag the items to sent, then bot crashes...
Try doing an inventory:update() first.
  • 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

Personalausweis
Posts: 73
Joined: Mon Aug 16, 2010 12:50 pm

Re: Rock5's Mail Mods

#113 Post by Personalausweis » Tue Dec 28, 2010 12:55 pm

hey there,

when i send lots of items to my chars, mail won't be send anymore after arnd 60 items, then i need to relog and can (again) send just arnd 60 items.
i have a script sending items automatically to many chars, but it gets stuck after this "60-item-barrier".

is there any way to break this barrier?

perhaps there is an easy way to make this, otherwise i thought about a 5-10 minute delay after serving one char, but this will cause 5-10 HOURS waiting time for the bot -.-

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#114 Post by rock5 » Tue Dec 28, 2010 7:27 pm

Personalausweis wrote:hey there,

when i send lots of items to my chars, mail won't be send anymore after arnd 60 items, then i need to relog and can (again) send just arnd 60 items.
i have a script sending items automatically to many chars, but it gets stuck after this "60-item-barrier".

is there any way to break this barrier?

perhaps there is an easy way to make this, otherwise i thought about a 5-10 minute delay after serving one char, but this will cause 5-10 HOURS waiting time for the bot -.-
So you are not saying that it only sends the first 60 slot items, you are saying it actually only lets you send 60 items?

That sounds like it's a security feature implemented by the game. It's the first I've heard of it. Can anyone else confirm this?
  • 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

Personalausweis
Posts: 73
Joined: Mon Aug 16, 2010 12:50 pm

Re: Rock5's Mail Mods

#115 Post by Personalausweis » Wed Dec 29, 2010 2:40 am

yeah right, i had the same with RoMail2, every 60 items (approximately) the queue gets stuck and doesn't send any item anymore.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#116 Post by rock5 » Wed Dec 29, 2010 2:50 am

If it's a security feature then we wont be able to do anything.
  • 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

kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Rock5's Mail Mods

#117 Post by kanta » Sat Jan 01, 2011 12:31 am

The most I've been able to send during one RoM session is 73 items then the game prevents me from sending any more until I drop to character select and re-enter the game.
Scout/Knight/Rogue 70/66/66

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Rock5's Mail Mods

#118 Post by Germangold » Thu Jan 06, 2011 9:13 pm

i am working on a buying script for the new Level 61 "Excellent Belt" Item Id is : 227502 which can be bought
as a Clear item in Limo Desert from NPC @Nebular Grey-Eye for 3,455 gold
transmuting this belt with an regular fusionsstone >> Manastone-Tier 4
its far more efficient with these belt.


Is there a spesific Mail option to send an specifiy amount of belt to char 1, char 2, char3 ?

following code would send ALL "Excellent Belt" to Char: worldsgreatest

Code: Select all

	player:target_Object("Briefkasten",2000); yrest(150);
	sendMacro("ChoiceOption(1);");yrest(150);
	UMM_SendByNameOrId("worldsgreatest",{227502 });yrest(330); 
an modified parameter like UMM_SendByNameAndQuantity("XY",{227502},8); should send exaclty 8 belt

does this make sense to you rock5?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Mail Mods

#119 Post by rock5 » Fri Jan 07, 2011 2:22 am

Germangold wrote:an modified parameter like UMM_SendByNameAndQuantity("XY",{227502},8); should send exaclty 8 belt

does this make sense to you rock5?
I don't think I want to do that as then I'd have to deal will stackable items too. But this has made me realize there is no way to send a specific item. So what I'll do is add a basic send 1 item function. So you can search the inventory yourself for the item you want to send then send that item.

eg.

Code: Select all

counter = 0
for __, item in pairs(inventory.BagSlot) do
    if item.Name=="Excellent Belt" then
        counter = counter + 1
        UMM_SendInventoryItem(recipient, item) -- or UMM_SendInventoryItem(recipient, item.SlotNumber)
    end
    if counter = 10 then break end -- number you want to send
end
  • 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

hagenleu
Posts: 28
Joined: Sun Jan 02, 2011 11:20 am

Re: Rock5's Mail Mods

#120 Post by hagenleu » Mon Jan 17, 2011 6:14 am

Rock5 the command of your last reply, UMM_SendItem(recipient, item), is already implemented in the UMM (if so can you make an example? cause i 'm not be able to use it) or is a work in progress?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests