Page 3 of 9

Re: Mana Stone Tier Production Factory V2.4

Posted: Sat Mar 08, 2014 10:26 pm
by Supergala
ty i try

Re: Mana Stone Tier Production Factory V2.4

Posted: Mon Mar 24, 2014 3:27 am
by SouthernLights
Ok I have dl'd all the userfunctions and all waypoints and everything is where it should be.. I believe lol I keep getting the error Failed to compile and run Lua code for waypointlist onLoad event. I have read through the posts but have not seen how to fix this. Any help?

Re: Mana Stone Tier Production Factory V2.4

Posted: Tue Mar 25, 2014 3:54 am
by Eggman1414
What waypoint did you run that gave that error?

Re: Mana Stone Tier Production Factory V2.4

Posted: Tue Mar 25, 2014 4:53 am
by SouthernLights
The Daily one in Elven Island

Re: Mana Stone Tier Production Factory V2.4

Posted: Tue Mar 25, 2014 6:45 am
by Eggman1414
post the error.

I have been using the daily with no problems, maybe just a syntax error or something small.

Re: Mana Stone Tier Production Factory V2.4

Posted: Tue Mar 25, 2014 8:01 am
by SouthernLights
desktop/micromacro/scripts/rom/classes/waypointlist.lua:83: Failed to compile and run Lua code for waypointlist onLoad event. That might be a 0 instead of an 8.

Re: Mana Stone Tier Production Factory V2.4

Posted: Thu Mar 27, 2014 12:54 am
by SouthernLights

Code: Select all

	table.insert(self.Waypoints, tmp);
		elseif( string.lower(name) == "onload" ) then
			if( string.len(action) > 0 and string.find(action, "%w") ) then
				self.onLoadEvent = loadstring(action);
				assert(self.onLoadEvent, sprintf(language[152]));

				if( _G.type(self.onLoadEvent) ~= "function" ) then
					self.onLoadEvent = nil;
				end;
Im guessing its saying something is wrong here at the line assert(self.onLoadEvent.......but what I don't have the foggiest.

Re: Mana Stone Tier Production Factory V2.4

Posted: Thu Mar 27, 2014 2:04 am
by Eggman1414
ok quickest way to solve this issue. Copy the onLoad section of daily.xml and make a new file but has a .lua extension, and paste that code. It should show you where the error is. Maybe its 2 commas somewhere.

Re: Mana Stone Tier Production Factory V2.4

Posted: Thu Mar 27, 2014 5:56 pm
by SouthernLights
so i copied the onload code from daily pasted in its own file and saved it as a lua. still not sure what i should be looking for mistake wise. i am noob to writing code :(

Re: Mana Stone Tier Production Factory V2.4

Posted: Fri Mar 28, 2014 3:05 am
by Eggman1414
well the only way to really know what is causing the errors, we need to see the waypoint file. Unfortunately you will have to remove all the personal data.

Re: Mana Stone Tier Production Factory V2.4

Posted: Fri Mar 28, 2014 4:06 am
by SouthernLights

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
<!-- Eggman1414's Mana Stone Production Script      -->
<!--                   V2.4                         -->
<!--                01/26/2014                      -->
<!--       Two User options need changed            -->
<!--            line 11 and line 18                 --> 
	  
	  
	  function buycharges()
         BuyFromItemShop(896, ""*********"") <!--Insert your secondary password inside the quotes. ex: BuyFromItemShop(896, "romiscool")-->
      end

      NpcID = 112794
      QName = "Helping Them Grow" 
	  
	function relog()						<!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
         SetCharList({{
            {account=1 , chars= {}},
            {account=2 , chars= {1}},
		},{
			{account=3 , chars= {}},
			{account=4 , chars= {}},
		},{
			{account=5 , chars= {}},
        }})
         LoginNextChar()
         yrest(3000)
         player:update()
         loadProfile()
         loadPaths("Daily.xml");
	end
											<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->
		function kill_stupid_newbie_pet()
			if player:findNearestNameOrId(113199) then  -- search vicinity for Newbie Pet
				inventory:update()
				if (inventory:itemTotalCount(207051) > 0) then
					inventory:useItem(207051)
					local newbEgg = inventory:findItem(207051); -- Newbie Pet Egg
					if newbEgg ~= nil then
						inventory:deleteItemInSlot(newbEgg.SlotNumber)
					end
				end
			end
		end
											<!-- Uses botje's cleanbag functions, see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=2849 for more info -->		
		function delete_atonement_voucher()
			if (inventory:itemTotalCount(207082) > 0) then
				local voucher = inventory:findItem(207082); -- Atonement Voucher
				if voucher ~= nil then
						inventory:deleteItemInSlot(voucher.SlotNumber)
				end
			end
		end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
	kill_stupid_newbie_pet();
	delete_atonement_voucher();
      if player.Level == 1 then
	  loadPaths("Pre_Daily.xml");
	  end
	  
	  local queststate = getQuestStatus(QName);
      if queststate == "complete" then
         player:target_NPC(NpcID);
         CompleteQuestByName(QName);
         yrest(300);
      end
      
      local dqCount, dqPerDay = RoMScript("Daily_count()");
      if dqPerDay == dqCount then      
         phirCoins = inventory:itemTotalCount(203038)
         print("We have "..phirCoins.." phirius coins")
         amountToBuy = phirCoins / 100
         print("trying to buy "..amountToBuy.." 10x arcane transmutor charges packs")
         repeat 
            buycharges()
            yrest(1000);
            amountToBuy = amountToBuy - 1
			if RoMScript("IsMagicBoxEnable()") then
			while inventory:itemTotalCount(202928) >0 do
            inventory:useItem(202928)
			end
			end
            yrest(10);
            print("Using 10x arcane transmutor pack")
         until 1 > amountToBuy
		 loadPaths("makefusion.xml");
      else
         player:target_NPC(NpcID);
         AcceptQuestByName(QName,NpcID);
         yrest(300);
      end
   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33" tag = "Item">   
      queststate = getQuestStatus(QName)
      if queststate == "incomplete" then
         player:target_Object(112976,300);
         yrest(2500);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
      end
    </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  4 --><waypoint x="31847" z="4583" y="9">   </waypoint>
</waypoints>

It should be exactly as yours as it is the one I downloaded. I took out the secondary password.

Re: Mana Stone Tier Production Factory V2.4

Posted: Fri Mar 28, 2014 5:37 am
by Eggman1414
hmm I'm not seeing anything out of the ordinary. You said you get the error when you run daily.xml?

Try this: http://www.solarstrike.net/phpBB3/viewt ... 867#p54867

I had the same problem awhile back and haven't had it since.

Re: Mana Stone Tier Production Factory V2.4

Posted: Fri Mar 28, 2014 9:36 am
by rock5
I believe those changes are part of the bot now.

From changelog 771;
- Added feature to __WPL:getNearestWaypoint. Now you can specify a range of waypoints to look in.

Re: Mana Stone Tier Production Factory V2.4

Posted: Fri Mar 28, 2014 7:39 pm
by Eggman1414
ahhhh did not know that. Well if it is part of the bot, I'm out of ideas now.

Re: Mana Stone Tier Production Factory V2.4

Posted: Sat Mar 29, 2014 3:15 am
by SouthernLights
Well fooey. Was hoping I could use this to make some tier stones with all the garden alts I created. But alas, it seems it is not to be.

Re: Mana Stone Tier Production Factory V2.4

Posted: Sat Mar 29, 2014 3:19 am
by Eggman1414
Ive been using this for a couple of months so I know it works, aside from the mailbox bug....

Re: Mana Stone Tier Production Factory V2.4

Posted: Sat Mar 29, 2014 4:16 am
by SouthernLights
Yea I see other people's post so I know it works, just wish it did for me lol

Re: Mana Stone Tier Production Factory V2.4

Posted: Sat Mar 29, 2014 6:07 am
by Eggman1414
you have the bot updated to latest version right?

Re: Mana Stone Tier Production Factory V2.4

Posted: Mon Mar 31, 2014 5:36 am
by SouthernLights
I assume so. How would I check? I mean I know I've updated to revision 772 as of now, and continue to have the same issue with the small exception that the error says line 84 instead of 83.

Re: Mana Stone Tier Production Factory V2.4

Posted: Thu Apr 24, 2014 9:26 am
by cowbot7
I log into first character and run Daily.xml waypoint it did the dailies and bought 10 AT tokens, then it walked to the mailbox on Elf Island and MicroMacro got a error.

The game client did not crash.
10:3am - ...cripts/rom/userfunctions/addon_Rock5s_Mail_Functions.lua:66: The UMM
mail interface needs to be open first before using the UMM_TakeMail() function.

What can i do to fix this?