Logar Token Farm and Turn in

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
yoyodoggg
Posts: 34
Joined: Mon Aug 22, 2011 8:54 pm

Logar Token Farm and Turn in

#1 Post by yoyodoggg » Sun Oct 02, 2011 11:20 pm

So only been playing RoM for bout a month and bored already lol, I only really like to script stuff for the bot
idk daily quests and idling in jana forest isnt worth it.
But I'd like to share my waypoint file i made with alot of Help from Rock5 :)

For This Waypoint you will need
1. Rock5 Mail addon and userfunction found at http://www.solarstrike.net/phpBB3/viewt ... =27&t=1561
2. you will need to copy /rom/devtools/ingamefunctions to your /runesofmagic/Interface/Addons folder.
3. You will need FastLogin Revisted add found at http://www.solarstrike.net/phpBB3/viewt ... =27&t=1245
4. I also suggest GM detection for its log out feature if a GM(lvl 0 player) is nearby. found at http://www.solarstrike.net/phpBB3/viewt ... =27&t=2516
5. you will need the setwindow userfunction found at http://www.solarstrike.net/phpBB3/viewt ... =27&t=2924
6. you will need the QuestByName userfunction found at http://solarstrike.net/phpBB3/viewtopic.php?f=27&t=2184

This waypoint will
A) check if you have any golden eggs, or 10k+ gold and mail it + few trash items in bags to the person you want
B) complete dailys of boar tusks and bear claws which need to be farmed and put on the bot b4 starting it
( if you mail daily items to the bot, he will eventually goto the mail box and get them)
C) will compelete the beetles killing daily quest if no tusks or claws are found.
D) Log to the next character on the account and continue doing dailys
E) switch to the next Account you edit in using the runesofmagic\interface\loginxml\accountlogin.lua and the LogID you set in the waypoint.


Things you Need to Edit
- You will need to edit the LogID to and nextaccount near the bottom of the <OnLoad> section to the accounts you already have setup
in runesofmagic\interface\loginxml\accountlogin.lua
- You will need to edit the MAILTO and MAILTORUNES text to the name of the character you want to mail stuff to. (sorry i couldnt get a variable to work there)


Problems
- sometimes the bot will freeze when changing account and tell you that you needed to enter a secondary password,
to fix this you need to restart the bot and probably your client
- sometimes gold spamers set off your gm detection with false alarms

other then that just copy this code into a file called token.xml and you should be farming tokens in no time :D

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<OnLoad>
setwindow(203038)
<!-- Settings -->
	local zoneid = RoMScript("GetZoneID()")
	changeProfileOption("COMBAT_DISTANCE", 90)
	changeProfileOption("COMBAT_RANGED_PULL", false)
	changeProfileOption("WAYPOINT_DEVIATION", 0) 
	changeProfileOption("ANTI_KS", true)
	changeProfileOption("LOOT_PAUSE_AFTER", 0)
	
<!-- Merchant Options -->	
	changeProfileOption("INV_AUTOSELL_ENABLE", true)
	changeProfileOption("INV_AUTOSELL_FROMSLOT", 1)
	changeProfileOption("INV_AUTOSELL_TOSLOT", 90)
	changeProfileOption("INV_AUTOSELL_QUALITY", "white,green")
	changeProfileOption("INV_AUTOSELL_TYPES", "Weapons,Armor,Recipes,Others")
	changeProfileOption("INV_AUTOSELL_TYPES_NOSELL", "Accessories,Amulets")
	changeProfileOption("INV_AUTOSELL_STATS_NOSELL", "X,XI,V")

	
<!-- Were you just a Farmer, do you have golden eggs to mail -->
function eggcheck()
 local goldeggs = inventory:itemTotalCount(204792)
 local goodcake = inventory:itemTotalCount(204791)
 cgold = RoMScript('GetPlayerMoney("copper");')
	if (goldeggs >= 1) or (goodcake >= 1) or (cgold >= 10000) then
	 printf("I have Moneys or Golden Eggs or Cakes to Dump!\n");
	 printf("Dumping .. %s Gold.. %s Eggs.. %s Cake\n", cgold, goldeggs, goodcake);
	  __WPL:setWaypointIndex(__WPL:findWaypointTag("dump"))
	elseif (1 > inventory:itemTotalCount(0)) then
			printf("Error. Not enough BagSpase. Cleaning Bags and then Starting\n");
			__WPL:setWaypointIndex(__WPL:findWaypointTag("dump"))
	 else 
	  __WPL:setWaypointIndex(__WPL:findWaypointTag("nomoney"))
	end
 end
 		
<!-- Are you out of Daily Quests -->		
function checkDQCount()
local dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()");
	if 10 == dailyQuestCount  then
    		printf ("You did "..dailyQuestCount.." of " .. dailyQuestsPerDay .. " All Done Stop.\n"); 
			printf("CharacterName = "..player.Name.."\n");
		-- Use a daily ticket
		<!--if dailyQuestsPerDay - dailyQuestCount == 0 then
					local reset = inventory:findItem(202434)
				if reset then
				reset:use()
				end
			end-->
			nextplease()
		else
			printf("You've done "..dailyQuestCount.." of " .. dailyQuestsPerDay .. " Daily Quests.\n");
     end
end

<!-- Are you out of Daily Items -->
function dailyitemz()
 bearclaw = inventory:itemTotalCount(200609)
 boartusk = inventory:itemTotalCount(200624)
		if ((5>bearclaw) and (5>boartusk)) then 
			printf("CharacterName = "..player.Name.. " Needs more Daily Items.. Im all out\n");
			printf("Starting Beetle Killing Dailys\n");
			__WPL:setWaypointIndex(__WPL:findWaypointTag("beetles"))
			<!-- nextplease() -->
		elseif 5>boartusk then
			printf("Not enough Boar Tusks!\n");
			printf("Skipping Boar Turn Ins\n");
			__WPL:setWaypointIndex(__WPL:findWaypointTag("noboarskipit"))	
		else
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("itemdailys"))
		end
end	


<!-- Multi accout code -->
function nextplease()
	local LogID = RoMScript("LogID")
	local numChars = RoMScript("fastLoginNumChars")
	local selectIndex = RoMScript("CHARACTER_SELECT.selectedIndex")
	if numChars - selectIndex ~= 0 then 
		printf("Loading next character on this account\n");
		sendMacro("}LoginNextToon=true a={");
		sendMacro("Logout()");
		waitForLoadingScreen(); yrest(2000);
		printf("Loading..\n");
	else
    if LogID == 1 then
        nextAccount = 5
		printf("Loading Account 5 ");
    elseif LogID == 5 then
        nextAccount = 8
        printf("Loading Account 8, ");
	elseif LogID == 8 then
        nextAccount = 7
        printf("Loading Account 7, ");
	elseif LogID == 7 then
        nextAccount = 4
        printf("Loading Account 4, ");
	elseif LogID == 4 then
        nextAccount = 3
        printf("Loading Account 3, ");
	elseif LogID == 3 then
		nextAccount = 2
		printf("Loading Account 2, ");
    end
		printf("Switching now\n");
		RoMScript("ChangeChar(1," .. nextAccount .. ")");
		waitForLoadingScreen(); yrest(4000);
		sendMacro("}fastLoginRelog=false;a={");
		printf("Loading..\n");
	end
	yrest(3000);
	loadPaths("token");
end

<!-- Are you Prob not in zone -->
	if (player.Level > 50) or ((zoneid ~= 1001) and (zoneid ~= 1)) then
	printf(" .. We are in %s ..\n", zoneid);
	printf("This character probably Is Not in zone going to next!\n");
	nextplease()
	end
	
<!-- Check Beetle Quest Status -->
function bquest ()
local bqueststate = getQuestStatus("Annoying Beetles")
 if bqueststate == "complete" then
     printf("We are Done, Going to Hand in Quest\n");
      __WPL:setForcedWaypointType("TRAVEL")
	 __WPL:setWaypointIndex(__WPL:findWaypointTag("turnin"))
elseif bqueststate == "not accepted" then
     printf("We Need to get the Quest First\n");
      __WPL:setForcedWaypointType("TRAVEL")
	 __WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
 end
end
</OnLoad>
	
	<!-- #  1 --><waypoint x="-613" z="-5812" y="24" tag="start">
		checkDQCount();	yrest(1000);
		<!--Get quests -->
		player:target_Object(110584); yrest(500);
		AcceptQuestByName("Collect Boar Tusks"); yrest(500);
		player:target_Object(110584); yrest(500);
		AcceptQuestByName("Sharp Bear Claw"); yrest(500);
		player:target_Object(110584); yrest(500);
		AcceptQuestByName("Annoying Beetles"); yrest(500);
		printf("Got the Quests\n");
		eggcheck(); yrest(1000);
	</waypoint>
	<!-- #  2 --><waypoint x="-604" z="-5884" y="25" tag="nomoney">
		dailyitemz(); yrest(1000);
	</waypoint>
<!-- Farmed Item Dailys -->	
	<!-- #  3 --><waypoint x="-627" z="-5957" y="26" tag="itemdailys">	</waypoint>
	<!-- #  4 --><waypoint x="-654" z="-6022" y="28">	
		player:target_NPC("Del"); yrest(1000);
		CompleteQuestByName("Collect Boar Tusks"); yrest(1000);
		player:update(); yrest(500);
		if 5>bearclaw then 
		 printf("Not enough Sharp Bear Claw!\n");
		 printf("Skipping Bear Turn Ins\n");
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("nobearskipit"))
		end
	</waypoint>
	<!-- # 5 --><waypoint x="-657" z="-6089" y="21">	</waypoint>
	<!-- # 6 --><waypoint x="-575" z="-6101" y="19" tag="noboarskipit">		
		player:target_NPC("Cid"); yrest(1000);
		sendMacro("OnClick_QuestListButton(3, 1)"); yrest(1000);
		sendMacro("CompleteQuest()"); yrest(1000); 
		</waypoint>
	<!-- # 7 --><waypoint x="-517" z="-6058" y="22" tag="nobearskipit">
	__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
	</waypoint>
	
<!-- Going to Sell Inventory and Mail Phats -->	
	<!-- #  10 --><waypoint x="-815" z="-5898" y="44" tag="dump">
		player:merchant("Dan"); yrest(3000);
		inventory:update(); yrest(2000);
	</waypoint>
	<!-- #  11 --><waypoint x="-450" z="-6018" y="21">	</waypoint>
	<!-- #  12 --><waypoint x="-420" z="-5987" y="21">		
<!-- Check the Mail and Dump Our Phats -->	
	 player:target_Object("Logar mailbox",1000);
	 RoMScript("ChoiceOption(1)"); yrest(2000);
		UMM_TakeMail(); yrest(4000);
		inventory:update(); yrest(2000);
		player:update(); yrest(1000);
     printf("Sending Gold, Eggs and Cakes\n");
	 <!-- Send Gold -->
	 cgold = RoMScript('GetPlayerMoney("copper");')
	  if (cgold >= 10000) then
	  UMM_SendMoney("MAILTO", "all"); yrest(3000);
	  end
     <!-- Send Golden Eggs and Cakes -->
	  UMM_SendByNameOrId("MAILTO", 204792); yrest(3000);
	  UMM_SendByNameOrId("MAILTO", 204791); yrest(3000);
	<!-- Send Other Junk -->
	 printf("Sending Any Other Junk we have in Bags\n");
	  UMM_SendAdvanced("MAILTO", nil,nil,nil,nil, "Cards"); yrest(3000);
	  UMM_SendByQuality("MAILTO", 3); yrest(3000);
	  UMM_SendByStatNumber("MAILTO", 2); yrest(3000);
	  <!-- Sending any Runes Left -->
	  if (player.Name ~= "MAILTORUNES") then
	  UMM_SendAdvanced("MAILTORUNES", nil,nil,nil,nil, "Runes"); yrest(3000);
	  end
	</waypoint>
	<!-- #  11 --><waypoint x="-501" z="-5958" y="21">	
	player:update(); yrest(1000);
	inventory:update(); yrest(1000);</waypoint>
	<!-- #  12 --><waypoint x="-660" z="-5916" y="27">
	printf("Done Selling and Mailing\n"); yrest(1000);
	 __WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
	</waypoint>
	
<!-- Beetle Killing Dailys -->
	<!-- #  13 --><waypoint x="-734" z="-5892" y="44" tag="beetles">	
		settings.profile.mobs = {"Beetle"};
	</waypoint>
	<!-- #  14 --><waypoint x="-905" z="-5972" y="33">	</waypoint>
	<!-- #  15 --><waypoint x="-1233" z="-6006" y="34">	
	if not (player.Current_waypoint_type == WPT_NORMAL) then
			__WPL:setForcedWaypointType("NORMAL")
	end
	</waypoint>
	<!-- #  16 --><waypoint x="-1337" z="-6017" y="31">	</waypoint>
	<!-- #  17 --><waypoint x="-1598" z="-6292" y="18">	</waypoint>
	<!-- #  18 --><waypoint x="-2003" z="-6317" y="26" tag="startbeetle">	</waypoint>
	<!-- #  19 --><waypoint x="-2057" z="-6484" y="37">bquest()	</waypoint>
	<!-- # 20 --><waypoint x="-2182" z="-6555" y="28">bquest() 	</waypoint>
	<!-- # 21 --><waypoint x="-2264" z="-6182" y="51">bquest()	</waypoint>
	<!-- # 22 --><waypoint x="-2385" z="-6144" y="32">bquest()	</waypoint>
	<!-- # 23 --><waypoint x="-2277" z="-5851" y="76">bquest()	</waypoint>
	<!-- # 24 --><waypoint x="-2318" z="-5560" y="92">bquest()	</waypoint>
	<!-- # 25 --><waypoint x="-2250" z="-5333" y="20">bquest()	</waypoint>
	<!-- # 26 --><waypoint x="-1914" z="-5341" y="37">bquest()	</waypoint>
	<!-- # 27 --><waypoint x="-1743" z="-5485" y="43">bquest()	</waypoint>
	<!-- # 28 --><waypoint x="-1943" z="-5572" y="60">bquest()	</waypoint>
	<!-- # 29 --><waypoint x="-2201" z="-5664" y="95">bquest()	</waypoint>
	<!-- # 30 --><waypoint x="-2092" z="-6045" y="72">bquest()	</waypoint>
	<!-- # 31 --><waypoint x="-1864" z="-6199" y="44">
		printf("We Need More Beetles to Kill\n");
		__WPL:setWaypointIndex(__WPL:findWaypointTag("startbeetle"))
	</waypoint>
	<!-- # 32 --><waypoint x="-1674" z="-6234" y="41" tag="turnin">	</waypoint>
	<!-- # 33 --><waypoint x="-1630" z="-6284" y="21">	</waypoint>
	<!-- # 34 --><waypoint x="-1368" z="-6058" y="34">	</waypoint>
	<!-- # 35 --><waypoint x="-1138" z="-6000" y="36">	</waypoint>
	<!-- # 36 --><waypoint x="-815" z="-5898" y="44">
	 printf("Cleaning Bags Real Quick.");
		player:merchant("Dan"); yrest(2000);
		inventory:update(); yrest(1000);
	</waypoint>
	<!-- # 37 --><waypoint x="-752" z="-5947" y="32">	</waypoint>
	<!-- # 38 --><waypoint x="-531" z="-6018" y="22">	</waypoint>
	<!-- # 39 --><waypoint x="-402" z="-6198" y="2">	</waypoint>
	<!-- # 40 --><waypoint x="-339" z="-6276" y="2">	</waypoint>
	<!-- # 41 --><waypoint x="-264" z="-6113" y="13">	
		player:target_NPC("George"); yrest(1000);
		CompleteQuestByName("Annoying Beetles"); yrest(1000);
	</waypoint>
	<!-- # 42 --><waypoint x="-401" z="-6198" y="2">	
		player:update(); yrest(500);
		printf("Starting Over ..\n");
		__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
	</waypoint>
</waypoints>

RooT
Posts: 12
Joined: Sun Aug 21, 2011 5:25 am

Re: Logar Token Farm and Turn in

#2 Post by RooT » Fri Oct 21, 2011 10:06 am

Hello. Firstly, really nice script!

But i got a problem. Why he kill only beetles and complete this quest but never complete dailys of boar tusks and bear claws?

Thank you for help.

madgamer
Posts: 18
Joined: Sat Oct 01, 2011 1:34 pm

Re: Logar Token Farm and Turn in

#3 Post by madgamer » Sat Oct 22, 2011 2:04 pm

i think you have to manually farm the boar tusks and bear claws and fill up your bots with them if you want them to turn it in.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-276" z="-3275" y="-53">	</waypoint>
	<!-- #  2 --><waypoint x="-208" z="-3556" y="-48">	</waypoint>
	<!-- #  3 --><waypoint x="-223" z="-3721" y="-34">	</waypoint>
	<!-- #  4 --><waypoint x="-95" z="-3869" y="-45">	</waypoint>
	<!-- #  5 --><waypoint x="-228" z="-4095" y="-41">	</waypoint>
	<!-- #  6 --><waypoint x="-97" z="-4299" y="-65">	</waypoint>
	<!-- #  7 --><waypoint x="47" z="-4399" y="-62">	</waypoint>
	<!-- #  8 --><waypoint x="-42" z="-4572" y="-30">	</waypoint>
	<!-- #  9 --><waypoint x="-185" z="-4477" y="-58">	</waypoint>
	<!-- # 10 --><waypoint x="-347" z="-4394" y="-43">	</waypoint>
	<!-- # 11 --><waypoint x="-562" z="-4519" y="-63">	</waypoint>
	<!-- # 12 --><waypoint x="-768" z="-4569" y="-64">	</waypoint>
	<!-- # 13 --><waypoint x="-1028" z="-4674" y="-55">	</waypoint>
	<!-- # 14 --><waypoint x="-1183" z="-4519" y="-45">	</waypoint>
	<!-- # 15 --><waypoint x="-1009" z="-4355" y="-33">	</waypoint>
	<!-- # 16 --><waypoint x="-785" z="-4515" y="-60">	</waypoint>
	<!-- # 17 --><waypoint x="-612" z="-4660" y="-67">	</waypoint>
	<!-- # 18 --><waypoint x="-413" z="-4658" y="-71">	</waypoint>
	<!-- # 19 --><waypoint x="-399" z="-4470" y="-59">	</waypoint>
	<!-- # 20 --><waypoint x="-254" z="-4348" y="-44">	</waypoint>
	<!-- # 21 --><waypoint x="-225" z="-4157" y="-47">	</waypoint>
	<!-- # 22 --><waypoint x="-162" z="-3928" y="-47">	</waypoint>
	<!-- # 23 --><waypoint x="-73" z="-3747" y="-38">	</waypoint>
	<!-- # 24 --><waypoint x="-148" z="-3600" y="-43">	</waypoint>
	<!-- # 25 --><waypoint x="-236" z="-3410" y="-54">	</waypoint>
</waypoints>
just run that and you should have bags full of both.

Marchewa
Posts: 2
Joined: Fri Jul 12, 2013 10:18 am

Re: Logar Token Farm and Turn in

#4 Post by Marchewa » Fri Jul 12, 2013 10:56 am

madgamer wrote:i think you have to manually farm the boar tusks and bear claws and fill up your bots with them if you want them to turn it in.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-276" z="-3275" y="-53">	</waypoint>
	<!-- #  2 --><waypoint x="-208" z="-3556" y="-48">	</waypoint>
	<!-- #  3 --><waypoint x="-223" z="-3721" y="-34">	</waypoint>
	<!-- #  4 --><waypoint x="-95" z="-3869" y="-45">	</waypoint>
	<!-- #  5 --><waypoint x="-228" z="-4095" y="-41">	</waypoint>
	<!-- #  6 --><waypoint x="-97" z="-4299" y="-65">	</waypoint>
	<!-- #  7 --><waypoint x="47" z="-4399" y="-62">	</waypoint>
	<!-- #  8 --><waypoint x="-42" z="-4572" y="-30">	</waypoint>
	<!-- #  9 --><waypoint x="-185" z="-4477" y="-58">	</waypoint>
	<!-- # 10 --><waypoint x="-347" z="-4394" y="-43">	</waypoint>
	<!-- # 11 --><waypoint x="-562" z="-4519" y="-63">	</waypoint>
	<!-- # 12 --><waypoint x="-768" z="-4569" y="-64">	</waypoint>
	<!-- # 13 --><waypoint x="-1028" z="-4674" y="-55">	</waypoint>
	<!-- # 14 --><waypoint x="-1183" z="-4519" y="-45">	</waypoint>
	<!-- # 15 --><waypoint x="-1009" z="-4355" y="-33">	</waypoint>
	<!-- # 16 --><waypoint x="-785" z="-4515" y="-60">	</waypoint>
	<!-- # 17 --><waypoint x="-612" z="-4660" y="-67">	</waypoint>
	<!-- # 18 --><waypoint x="-413" z="-4658" y="-71">	</waypoint>
	<!-- # 19 --><waypoint x="-399" z="-4470" y="-59">	</waypoint>
	<!-- # 20 --><waypoint x="-254" z="-4348" y="-44">	</waypoint>
	<!-- # 21 --><waypoint x="-225" z="-4157" y="-47">	</waypoint>
	<!-- # 22 --><waypoint x="-162" z="-3928" y="-47">	</waypoint>
	<!-- # 23 --><waypoint x="-73" z="-3747" y="-38">	</waypoint>
	<!-- # 24 --><waypoint x="-148" z="-3600" y="-43">	</waypoint>
	<!-- # 25 --><waypoint x="-236" z="-3410" y="-54">	</waypoint>
</waypoints>
just run that and you should have bags full of both.
Is this an working bear fangs farm script ? Because when i use it , the bot went away from the boars to the rotten tree cave ...

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

Re: Logar Token Farm and Turn in

#5 Post by rock5 » Fri Jul 12, 2013 12:51 pm

You must have made a mistake. Seems to work fine. Try again. Make sure you choose the right file name number. Make sure you aren't confusing it with another file.
  • 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

hubbabubba
Posts: 3
Joined: Wed Dec 04, 2013 10:47 am

Re: Logar Token Farm and Turn in

#6 Post by hubbabubba » Wed Dec 04, 2013 10:52 am

Hello. Good waypoint u did here. Im new to this side of playing RoM and i need some help with a part of this waypoint. I cant find how to edit this part of code :

Code: Select all

<!-- Multi accout code -->
function nextplease()
   local LogID = RoMScript("LogID")
   local numChars = RoMScript("fastLoginNumChars")
   local selectIndex = RoMScript("CHARACTER_SELECT.selectedIndex")
   if numChars - selectIndex ~= 0 then 
      printf("Loading next character on this account\n");
      sendMacro("}LoginNextToon=true a={");
      sendMacro("Logout()");
      waitForLoadingScreen(); yrest(2000);
      printf("Loading..\n");
   else
    if LogID == 1 then
        nextAccount = 5
      printf("Loading Account 5 ");
    elseif LogID == 5 then
        nextAccount = 8
        printf("Loading Account 8, ");
   elseif LogID == 8 then
        nextAccount = 7
        printf("Loading Account 7, ");
   elseif LogID == 7 then
        nextAccount = 4
        printf("Loading Account 4, ");
   elseif LogID == 4 then
        nextAccount = 3
        printf("Loading Account 3, ");
   elseif LogID == 3 then
      nextAccount = 2
      printf("Loading Account 2, ");
    end
      printf("Switching now\n");
      RoMScript("ChangeChar(1," .. nextAccount .. ")");
      waitForLoadingScreen(); yrest(4000);
      sendMacro("}fastLoginRelog=false;a={");
      printf("Loading..\n");
   end
   yrest(3000);
   loadPaths("token");
end
I want to use 3 accounts , i made it for 1st and 2nd account but after 2nd is done it keep logging and relogging on last character from 2nd account . Any help would be welcomed.

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

Re: Logar Token Farm and Turn in

#7 Post by rock5 » Wed Dec 04, 2013 11:25 am

I don't know why you are not using LoginNextChar() function instead but anyway, LoginNextToon is an old option and I don't think it works well with ChangeChar. To log into the next character in the account use ChangeChar with no arguments. Replace

Code: Select all

      sendMacro("}LoginNextToon=true a={");
      sendMacro("Logout()");
with

Code: Select all

sendMacro("ChangeChar()")
Also, if you are using my userfunction_LoginNextChar.lua file, you can further simplify it like this

Code: Select all

ChangeChar()
You can also simplify this

Code: Select all

RoMScript("ChangeChar(1," .. nextAccount .. ")");
to

Code: Select all

ChangeChar(1,nextAccount)
Note: If you use the userfunction ChangeChar, it includes a waitForLoadingScreen command so you don't need it in your code.
  • 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

hubbabubba
Posts: 3
Joined: Wed Dec 04, 2013 10:47 am

Re: Logar Token Farm and Turn in

#8 Post by hubbabubba » Wed Dec 04, 2013 11:56 am

Thnx , ill try it.

hubbabubba
Posts: 3
Joined: Wed Dec 04, 2013 10:47 am

Re: Logar Token Farm and Turn in

#9 Post by hubbabubba » Wed Dec 04, 2013 2:32 pm

ive tried and it seems it only change chars in account 2 , i need to change account 2 to account 3 . dont know why but from account 1 to account 2 no problem

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

Re: Logar Token Farm and Turn in

#10 Post by rock5 » Thu Dec 05, 2013 12:10 am

I don't understand that bit. Your codes goes from account 1 to 8 to 5 to 7 to 4 to 3 to 2. I don't understand how it could go from account 1 to 2. 2 is the last account. It should end at account 2. You don't have any code to deal with it reaching the last character which is probably why it's repeating the last character. You should add a final 'else'.

Code: Select all

    elseif LogID == 3 then
      nextAccount = 2
      printf("Loading Account 2, ");
    else
      error("Reached last character.")
    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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest