Page 21 of 21

Re: Malatina's survival

Posted: Mon Mar 24, 2014 2:21 am
by ZZZZZ
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.

Re: Malatina's survival

Posted: Mon Mar 24, 2014 3:43 am
by lisa

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.

Re: Malatina's survival

Posted: Mon Mar 24, 2014 4:18 am
by ZZZZZ
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.

Re: Malatina's survival

Posted: Sun Apr 20, 2014 2:59 am
by Elektronica
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...

Re: Malatina's survival

Posted: Sun Apr 20, 2014 3:20 am
by lisa
make sure you have bot version 758 or later, the getcurrency was added in version 758.

Re: Malatina's survival

Posted: Sun Apr 20, 2014 5:34 pm
by lisa

Re: Malatina's survival

Posted: Thu Jul 17, 2014 6:54 am
by sauhard
Does this automatocally switch to your next waypoint of COT_Tele?

Re: Malatina's survival

Posted: Thu Jul 17, 2014 7:57 am
by noobbotter
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"

Re: Malatina's survival

Posted: Fri Nov 27, 2015 7:36 am
by zargophian
Hi

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

Re: Malatina's survival

Posted: Fri Nov 27, 2015 5:08 pm
by lisa
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 =)