Mana Stone Tier Production Factory Now V2.5 06/08/2014

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
darkjack
Posts: 19
Joined: Tue Dec 29, 2009 1:44 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#121 Post by darkjack » Wed Jul 09, 2014 6:05 pm

Hi after buying belts i got error: - ... acro/scripts/rom/userfuctions/userfunction_travelTo.lua:419: No path to "VaranasWest" found current location. bot buy belts in fijord.

User avatar
Eggman1414
Posts: 111
Joined: Sun Jun 17, 2012 2:27 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#122 Post by Eggman1414 » Thu Jul 10, 2014 5:38 am

Do you have the required userfunctions installed? (In the first post)

darkjack
Posts: 19
Joined: Tue Dec 29, 2009 1:44 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#123 Post by darkjack » Thu Jul 10, 2014 6:52 am

Now i have this problem: ....micromacro/scripts/rom/classes/waypointlist.lua:25: XML Parse Error.
Files:....micriomacro/scripts/rom/waypoints/Buy_Fusion.xml
Line: 113
Column: 60
Pos: 4357
Message: not well-formed <invalid token>

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#124 Post by buchaneer » Fri Aug 01, 2014 4:33 am

I had noticed that the AT charge ID was changing weekly which is a pain but easily sorted however, as of yesterday the Game shuts down when buying AT charges. I thought this might be a standalone issue with the problems RoM was having with its Servers. Today the problem continues. I get the following MM message:

trying to buy 1 10x arcane transmutor charges packs
The game client did not crash.
2014-08-01 10:23:43 - ..._eng/Runes Of Magic/micromacro/scripts/rom/functions.lu
a:1515: bad argument #1 to 'memoryReadBytePtr' ((null))

Nothing has been changed other than the AT charge ID which currently = 80553.

Any Ideas? :)
Tradition and Dogma are the killers of Innovation. challenge them and change them!

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

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#125 Post by rock5 » Fri Aug 01, 2014 5:29 am

Seeing as different servers use different GUIDs it'd not a stretch to believe that a certain server might keep changing the GUID of charges to put off botters. Maybe I should try to find some way to purchase based on name. Of course it would also have to take into account number and currency.
  • 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
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#126 Post by buchaneer » Fri Aug 01, 2014 7:20 am

That would be great!

You might want to test the game shutdown while buying AT charges during the Daily.xml on the Isiltir Server..I do not know if other Servers are affected. :?
Tradition and Dogma are the killers of Innovation. challenge them and change them!

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

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#127 Post by rock5 » Fri Aug 01, 2014 12:50 pm

It's taken me a few hours to find all the functions I need to make it work. The itemmall files are very confusing. I'll make the actual function tomorrow. I expect it will be a new function that will accept the complete correct name or id, number and currency. It will then use that info to find the guid and then buy the item. On second thought I think it will just be a function for finding the guid. Then you can use the existing commands to buy the item. Eg.

Code: Select all

guid = FindItemShopGUID(_nameOrId, _number, _currency )
if guid then
    BuyFromItemShop(guid, "secondaryPassword", number )
end
As to your client closing down, it's another issue and could be anything. It may even be an issue with this topics script and not the userfunction. I'll just create the this function and go from there.
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#128 Post by rock5 » Sat Aug 02, 2014 1:16 am

Ok, test this out and let me know how it goes.
userfunction_BuyFromItemShop.lua
Version 1.4 b2
(5.5 KiB) Downloaded 174 times
The new function is;
  • guid = FindItemShopGUID(_nameOrId, _currency [,_number] )


Example;

Code: Select all

guid = FindItemShopGUID(202928,"coin",1) -- "10 Arcane Transmutor Charges"
BuyFromItemShop(guid, "secpass', 1)
  • 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
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#129 Post by buchaneer » Sat Aug 02, 2014 5:22 am

Hi Rock5,

This is the insertion I made into Daily.xml (password modified for obvious reasons)

Code: Select all

function buycharges()
		guid = FindItemShopGUID(202928,"coin",1) -- "10 Arcane Transmutor Charges"
		BuyFromItemShop(guid, "romiscool")
and this is the error message as a result

Quest completed: Helping Them Grow
We have 100 phirius coins
trying to buy 1 10x arcane transmutor charges packs
Invalid third argument used in 'FindItemShopGUID' function. Expected type 'numbe
r' or nil.
The game client did not crash.
2014-08-02 11:03:19 - ...ripts/rom/userfunctions/userfunction_BuyFromItemShop.lu
a:32: attempt to concatenate global 'func' (a nil value)

On the plus side: It did not shut the game down :)
Tradition and Dogma are the killers of Innovation. challenge them and change them!

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

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#130 Post by rock5 » Sat Aug 02, 2014 12:48 pm

Sorry, about that. It was actually correct but then, when I was looking over the code 1 last time before I uploaded it, I saw that line and thought that it was supposed to be "or" instead of "and" so I changed it. But it was right in the first time. It's not the first time I introduced a bug just before posting a file. :oops:

I updated the file in the previous post. I also noticed it often failed the first time it ran because it takes so long for the item shop data to be loaded. So I found a variable that gets updated when it's finished loading the item shop data and use that to wait. It doesn't fail the first time anymore. :D
  • 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
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#131 Post by buchaneer » Sat Aug 02, 2014 1:53 pm

"To err is Human" just goes to show you are human and a good man. It works perfectly and has fixed the game closure issue to boot. Many thbnks Rock5 :D
Tradition and Dogma are the killers of Innovation. challenge them and change them!

Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#132 Post by Braziliano » Tue Aug 26, 2014 10:36 am

We use the normal waypoint path Buy_Fusion.xml now.
The game client did not crash.
2014-08-26 17:35:08 - ...es (x86)/micromacro/scripts/rom/classes/waypointlist.lu
a:83: Failed to compile and run Lua code for waypointlist onLoad event.

i tried updating the waypointlist that rock posted , but still no fix .. does anyone know how?

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#133 Post by Sasuke » Sun May 17, 2015 10:58 am

i all i have problem with buy charge from item shop with phirius:
i click on buy manually and i see in the game chat the id of my server ,862665.
i add this number in 4 line of script daily.xml but game say me "ITEMSHOP BACKPACK IS FULL"...ANYONE HELP ME?

Code: Select all

	  function buycharges()
         BuyFromItemShop(862665, "sec pass") <!--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=7 , chars= {2,3,4,5,6,7,8}},
        })
         ChangeChar()
         yrest(3000)
         player:update()
         loadPaths("Daily.xml");
	end
</onLoad>
<!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
      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(862665)
         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(862665) >0 do
            inventory:useItem(862665)
			end
			end

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

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#134 Post by rock5 » Sun May 17, 2015 11:24 am

Read the top of userfunctions_buyfromitemshop.lua file for instructions on how to use the BuyFromItemShop function or go to the userfunctions topic http://solarstrike.net/phpBB3/viewtopic ... 281#p28281
  • 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

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#135 Post by Sasuke » Sun May 17, 2015 11:49 am

i resolve for buy from item shop but character don't use it from backpackitem for ability charges

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

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#136 Post by rock5 » Mon May 18, 2015 3:12 am

I think you have messed up your waypoint file. You use the number 862665 in 3 different places; you use it as the item number of the item you are buying from the shop, you use it as the id of Phirius Coins and you use it as the id of the item you want to use. They can't all be the same.

From what I can tell 862665 is not a valid id. Plus it sounds like you are saying you are successfully buying the item. So I assume 862665 is the guid of the item in the item shop.

So it looks like to fix it you need to fix the phirius coin id which should be 203038.

Code: Select all

         phirCoins = inventory:itemTotalCount(203038)
and change the item id. If the item you are buying is the 10x arcane transmutor charges then the id should be 202928 or 208778. I'm not sure which one it is.

Code: Select all

         while inventory:itemTotalCount(202928) >0 do
            inventory:useItem(202928)
         end
If 202928 doesn't work, use 208778.
  • 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
Aron009
Posts: 16
Joined: Fri Jan 09, 2015 8:09 am

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#137 Post by Aron009 » Sun May 24, 2015 3:34 am

I tried modifying the makefusion file such that it can be run in 3 simultaneous clients with 4 characters each.

1. The 1st and 2nd characters create 20 T5 stones each and mail it to the 3rd character.
2. The third character creates as many higher tier stones it can and mails all of tier stones to the 4th character.
3. The fourth character creates a T8 stone and sends it back to the Main character.

Modified the buyBelt and buyFusion files too so that the 1st and 2nd characters receive 20 belts and fusion stones each while the 3rd receives 7 belts and fusion stones. Also I delinked the daily and makefusion files. Alas they don't work! :roll: I've just cobbled these together by looking at other files so please forgive the mess. So, I need some help to figure this out!! :mrgreen:

The files are:

Fusion10 and Fusion7 - Purchasing Fusion Stones
Belt10 and Belt7 - Purchasing T5 Belts
FusionA, FusionB and FusionC - Manastone creation sequence
Daily - Elven Island Daily quest and Charge purchase (mostly untouched)
ATAct - Activation of Transmutator (mostly untouched)
Attachments
Blank.zip
(16.63 KiB) Downloaded 139 times

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#138 Post by Sasuke » Mon May 25, 2015 11:16 am

aron i check your xml but i have the same problem.character have phirius in backpack ,mm ssay"using charge" but don't buy from item shop...at the end mm say sleep and i must press "cancel"buttom for wake up and continue to do dailies,after come back to the same npc and try to reuse charge without success....i don't want press cancel because "go to slepp" and i try to resolve the problem for use phirius in backpack for buy charge ty.can you help me pls?rocks can you too? game still say"item backpack is full"
Attachments
Daily.xml
(2.83 KiB) Downloaded 131 times

User avatar
Aron009
Posts: 16
Joined: Fri Jan 09, 2015 8:09 am

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#139 Post by Aron009 » Mon May 25, 2015 1:12 pm

Item shop function isn't working for me either. I tried the fix where the item shop is opened and closed but that didn't work either :\

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: Mana Stone Tier Production Factory Now V2.5 06/08/2014

#140 Post by Sasuke » Mon May 25, 2015 6:06 pm

rock pls help :):):):):):)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests