rock5's "fastLogin Revisited"

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.
Message
Author
User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#801 Post by Desmond » Thu Sep 25, 2014 1:14 pm

rock5 wrote:You can Shift-Click the Delete button to delete all characters. Is that what you want?
Addon automatically pressed the button Delete, without my participation

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

Re: rock5's "fastLogin Revisited"

#802 Post by rock5 » Thu Sep 25, 2014 1:21 pm

So how do you want it to work? You edit accountlogin to automatically create your characters and then later you edit it again to delete all characters? Wouldn't it be easier to just click the button? Plus it's too dangerous an option. What if you set the delete option and then accidentally log into the wrong account? I don't think I want to do this one.
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#803 Post by Desmond » Thu Sep 25, 2014 1:24 pm

rock5 wrote:So how do you want it to work? You edit accountlogin to automatically create your characters and then later you edit it again to delete all characters? Wouldn't it be easier to just click the button? Plus it's too dangerous an option. What if you set the delete option and then accidentally log into the wrong account? I don't think I want to do this one.
Well thanks for the answer

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#804 Post by Desmond » Thu Sep 25, 2014 1:34 pm

I understood I can not find Muckross for sending stones and belts as I do is manually
Last edited by Desmond on Thu Sep 25, 2014 1:41 pm, edited 3 times in total.

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

Re: rock5's "fastLogin Revisited"

#805 Post by rock5 » Thu Sep 25, 2014 1:34 pm

I don't think so. An addon in the game can't write to files.
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#806 Post by Desmond » Thu Sep 25, 2014 1:44 pm

I need to send that Macross stones, straps for the Macross, I think it will work with you mail?

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

Re: rock5's "fastLogin Revisited"

#807 Post by rock5 » Thu Sep 25, 2014 1:49 pm

Do you mean Mana Stones and Belts? Yes you can use my UMM Mail Functions.
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#808 Post by Desmond » Thu Sep 25, 2014 1:51 pm

rock5 wrote:Do you mean Mana Stones and Belts? Yes you can use my UMM Mail Functions.
I Muckross need not under bot functions

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

Re: rock5's "fastLogin Revisited"

#809 Post by rock5 » Thu Sep 25, 2014 2:05 pm

I don't know how to send mails using macros especially seeing as you want to use a name list.
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#810 Post by Desmond » Thu Sep 25, 2014 2:06 pm

rock5 wrote:I don't know how to send mails using macros especially seeing as you want to use a name list.
yes

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#811 Post by Desmond » Thu Sep 25, 2014 4:35 pm

still wanted to ask whether there is a function to check for an item by ID ?
for bot

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

Re: rock5's "fastLogin Revisited"

#812 Post by rock5 » Fri Sep 26, 2014 12:31 am

To find an item in your inventory by it use

Code: Select all

item = inventory:findItem(123456)
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#813 Post by Desmond » Fri Sep 26, 2014 5:07 am

rock5 wrote:To find an item in your inventory by it use

Code: Select all

item = inventory:findItem(123456)
I have a mail bot does not take sometimes I need to check in a bag is there belt, stones connection if not then reopen the post office and pick up all the

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: rock5's "fastLogin Revisited"

#814 Post by noobbotter » Fri Sep 26, 2014 8:02 am

If interested feel free to try out my script I use for grabbing belts and fusion stones from mail, fusing, then forwarding T stones off to another alt. There are some variables you'll have to set but this works good for me. Of course, I haven't tested it after making changes to it to make it for public use but it should work.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
<!-- NoobBotter's Mana Stone Production Script      -->
<!-- This is the script that bots will run to check mail, create dirty tier stones, and forward those stones to another character   -->
<!-- bots need to be near a mailbox when this script is run -->
<!-- I use a separate script for both the bot that sends belts and fusion stones to the bots, -->
<!-- and for the bot that receives Tier 7 and 8 stones and combines them into T9 and T10 stones. -->


	<!--      User Variables         -->
	ISPassword = "yourISpassword" 	--This needs to be the secondary password so your bot can purchase charges from IS.
	beltstouse = 228996 			--this is the cheapest "Holy Belt" belt in Jungle of Hortek near snoop
	receiveFrom = "Charname1" 		-- This is the name of the character that sends belts and fusion stones to the bots.
									-- Purpose of this is so if for some reason there are leftovers, those leftovers will be sent back to sender.
	sendTo = "Charname2" 			--This is the character to send mana stones to after fusing them.
	
	When_Finished         = "charlist"
		-- "end" to end script, "relog" to log next character, "charlist" to use the charlist and "waypointfilename" to load that waypointfile.
	
	<!--If you want to run multiple characters through making tier stones, set character list below -->
	CharList = {}
		-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
		-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
		--		eg.
		--		CharList = {
		--			{account=4,chars={}},
		--			{account=8,chars={1}},
		--			{account=7,chars={1,2,5}},
		--		}

	--====================--

	<!--       Functions       -->
	function checkRelog()
		if When_Finished == "relog" then
			sendMacro("}LoginNextToon=true;a={")
			sendMacro("Logout();");
			waitForLoadingScreen();
			loadPaths(__WPL.FileName);
		elseif When_Finished == "charlist" then
			SetCharList(CharList)
			LoginNextChar()
			loadPaths(__WPL.FileName);
		elseif When_Finished == "end" then
			error("Ending script",2)
		else
			loadPaths(When_Finished)
		end
	end
	
	<!-- This function will check number of belts and fusion stones and determine how many charges are needed. It will then purchase enough charges -->
	
	function CheckCharges()
		local belts = inventory:itemTotalCount(beltstouse)
		local fusionstones = inventory:itemTotalCount("Random Fusion Stone")
		local stonestomake = 0
		if belts > fusionstones then
			stonestomake = fusionstones
		else
			stonestomake = belts
		end
		
		local charges = RoMScript("GetMagicBoxEnergy()")	
		local phirCoins = inventory:itemTotalCount(203038)
		print("We have "..phirCoins.." phirius coins")
		if stonestomake + 3 > charges then
			local chargestobuy = stonestomake + 3 - charges
			local rounds = 0
			if chargestobuy > 20 then 
				rounds = 3
			elseif chargestobuy > 10 then 
				rounds = 2
			elseif chargestobuy > 0 then 
				rounds = 1
			end
			if rounds > 0 then
				for i = 1, rounds do
					printf("Running low on charges... buying 10 more.\n")
					guid = FindItemShopGUID(202928,"coin")
					if phirCoins > 99 then	
						BuyFromItemShop(guid, ISPassword)
					end
					yrest(1000);
				end
				while inventory:itemTotalCount(202928) > 0 do
					inventory:useItem(202928)
					print("Using 10x arcane transmutor pack")
					yrest(100);
				end				
			end
		end
	end
	
	<!-- this function will send any T7 or T8 stones to your "sendTo" Character. -->
	<!-- If you want to send T6 also, just uncomment the commented line in this function. and add "Mana Stone Tier 6", in the UMM_SendByNameOrId line-->
	function SendStones()
		local TierStones = { 
			-- "Mana Stone Tier 6", --uncomment this line to send T6 stones.
			"Mana Stone Tier 7",
			"Mana Stone Tier 8"
		}
		
		local havestones = false
		for k,v in pairs(TierStones) do
			if inventory:itemTotalCount(v) > 0 then
				havestones = true
				logInfo("Stonesto"..sendTo, "\t"..player.Name.."\t is sending "..inventory:itemTotalCount(v).." "..v.."'s.",true)
			end
		end
		if havestones == true then
			UMM_SendByNameOrId(sendTo,{"Mana Stone Tier 7","Mana Stone Tier 8"}); --to send T6, add "Mana Stone Tier 6" in this line
			yrest(1000);
			RoMScript("UMMFrame:Hide()");
		end
	end
	
	<!-- This function will send any leftover stones or belts to the character specified in the receiveFrom variable. -->
	function SendSpareEquip()
		local spareitems = { 
			"Random Fusion Stone",
			"Holy Belt",
			"Recall Belt"
		}
		local havespares = false
		for k,v in pairs(spareitems) do
			if inventory:itemTotalCount(v) > 0 then
				havespares = true
				break
			end
		end
		if havespares == true then
			UMM_SendByNameOrId(receiveFrom,{"Random Fusion Stone","Holy Belt","Recall Belt"});
			yrest(1000);
			RoMScript("UMMFrame:Hide()");
		end
	end
	
	<!-- Bot actions -->
	
	UMM_TakeMail();
	yrest(1000);
	RoMScript("UMMFrame:Hide()");
	UMM_DeleteEmptyMail()
	RoMScript("UMMFrame:Hide()");
	CheckCharges()
	Fusion_MakeMaxManaStones()
	yrest(1000)
	SendStones()
	yrest(1000)
	SendSpareEquip() -- if you don't want to return unused stones or belts, just uncomment this line.
	loadPaths("NextFileToLoad");
</onLoad>
</waypoints>

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#815 Post by Desmond » Fri Sep 26, 2014 10:49 am

I would like to ask, what is he doing?

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#816 Post by Desmond » Sun Oct 05, 2014 4:03 am

I do not know how I must decide a problem with channels in addone he enters on any channel, but the 2 stands in me

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#817 Post by Desmond » Mon Oct 06, 2014 1:52 pm

when creating an addon writes A personage with such name exists already. How to make that addon Click OK when he says there is a character
up

Froote
Posts: 17
Joined: Sun Aug 24, 2014 5:53 am

Re: rock5's "fastLogin Revisited"

#818 Post by Froote » Wed Oct 08, 2014 1:47 am

Hi

I got an issue with the function SetRestartClientSettings() i have not seen on this forum.
Currently, this function closes and restarts the client correctly, but when the bot has to click on the account button to log it, the mouse goes far away from the button (the buttons are mid left of my screen and the mouse goes bottom left), i have read the userfunctions, loginxml files and the topics, so i think that the problem is in the function login(character, account, client) in the userfunction_login.lua (i have the 3.2 version), but i have no idea how to fix it, to make the mouse go to the right position.

i give here the userfunction i have ^^
Attachments
userfunction_login.lua
(8.16 KiB) Downloaded 138 times

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

Re: rock5's "fastLogin Revisited"

#819 Post by rock5 » Wed Oct 08, 2014 2:27 am

Probably your file versions are not compatible. If you are using the latest loginxml (fastlogin) then try updating your userfunction_login.lua file.

It's a good idea, when you upgrade, to upgrade all of the following files at the same time.
  • loginxml
    login.lua
    userfunction_login.lua
    userfunction_loginnextchar.lua
Note: I'm working on a major update at the moment that might result in some of these files being merged.

Note2: The latest version of loginxml supports multiple pages of accounts but I haven't updated the other files to support that yet. So avoid using multiple pages for now when botting.
  • 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

User avatar
Desmond
Posts: 184
Joined: Wed Jan 08, 2014 4:39 pm
Location: Ukraine

Re: rock5's "fastLogin Revisited"

#820 Post by Desmond » Thu Oct 16, 2014 4:26 am

OK
Last edited by Desmond on Thu Oct 16, 2014 6:33 am, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests