Malatina's survival

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
ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Re: Malatina's survival

#401 Post by ZZZZZ » Mon Mar 24, 2014 2:21 am

Just got a question about the chests. How do you get the address to know if they are clickable or not? Trying to adjust this for the Garden Event with the 110 chests but its not the same address, can get it to keep clicking chests seeing as they vanish but its not particularly fast.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina's survival

#402 Post by lisa » Mon Mar 24, 2014 3:43 am

Code: Select all

function clicktile(address)
	local tmp = memoryReadRepeat("int", getProc(), address + addresses.pawnAttackable_offset) or 0;
	if bitAnd(tmp,0x8) then
		return true
	else
		return false
	end
end

	repeat
	local tile = player:findNearestNameOrId("Treasure Tile", nil, clicktile)
		if tile then
			if player.Battling then
				local _enemy = player:findEnemy(true,nil)
				if _enemy then
					player:target(_enemy.Address);
					player:fight()
				end
			end		
			teleport(tile.X,tile.Z,14)
			player:target_Object({111811,111812}, nil, false, true, clicktile);
		end
	until tile == nil
Or some variation of that, important thing is the function clicktile and using it as 3rd arg for findNearestNameOrId or 5th arg for target_Object.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Re: Malatina's survival

#403 Post by ZZZZZ » Mon Mar 24, 2014 4:18 am

How do you actually come up with that address though? It doesn't work for the chests in the Garden event, still keeps targeting until the chest disappears.

Elektronica
Posts: 2
Joined: Thu Jan 23, 2014 3:39 am

Re: Malatina's survival

#404 Post by Elektronica » Sun Apr 20, 2014 2:59 am

hey i try the skript survivalR5 2.74 but he says:
.../survivalR5onload.lua:19: attempt to call global 'getCurrency' <a nil value>

can someone help me to fix my mistake? :S
I have copy both files in des waypoint order...

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina's survival

#405 Post by lisa » Sun Apr 20, 2014 3:20 am

make sure you have bot version 758 or later, the getcurrency was added in version 758.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina's survival

#406 Post by lisa » Sun Apr 20, 2014 5:34 pm

Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
sauhard
Posts: 130
Joined: Wed Mar 05, 2014 10:30 am

Re: Malatina's survival

#407 Post by sauhard » Thu Jul 17, 2014 6:54 am

Does this automatocally switch to your next waypoint of COT_Tele?
Satisfaction is the end of desire!!

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

Re: Malatina's survival

#408 Post by noobbotter » Thu Jul 17, 2014 7:57 am

No, not automatically. All you have to do is change this line which is near the very top:

Code: Select all

When_Finished = "end"
to this:

Code: Select all

When_Finished = "cot_tele"

zargophian
Posts: 4
Joined: Thu Nov 26, 2015 3:52 pm

Re: Malatina's survival

#409 Post by zargophian » Fri Nov 27, 2015 7:36 am

Hi

How can I use "Malatina Event Repeat Ticket" in Rocks script ?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina's survival

#410 Post by lisa » Fri Nov 27, 2015 5:08 pm

zargophian wrote:Hi

How can I use "Malatina Event Repeat Ticket" in Rocks script ?
This code checks if you have any repeat tickets and if you do then uses it and loads the next path, in this case "surv"

Code: Select all

				if inventory:itemTotalCount(205814) >= 1 and 800 > getCurrency("shell") then
					inventory:useItem(205814);
					yrest(500)
					loadPaths("surv")     
				end	
You can work out where it needs to go in your waypoints =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests