Page 6 of 6

Re: Secret Garden Ideas

Posted: Fri Mar 18, 2016 12:13 pm
by little_Fan
I got some probs with the `Golden Sheep` in the secret garden. It happens sometimes while opening the chests. When the Golden Sheep appears the bot focuses the Sheep, moves around the sheep and goes straight back to the npc and leaves the garden.
Can anyone help me pls to ignore the sheep?
thx fan

Re: Secret Garden Ideas

Posted: Mon Mar 21, 2016 1:21 am
by Testa
Add the sheep to friends in your profile:

Code: Select all

...
<friends>
	<friend name="Golden Sheep" /> <!-- Ignore Golden Sheep -->
</friends>
...

Re: Secret Garden Ideas

Posted: Mon Mar 21, 2016 9:44 pm
by beanybabe
add like this in your wp

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints>
 <onLoad> 	
	changeOptionFriendMob("friend", "Golden Sheep", "Add"); 
</onLoad>

Re: Secret Garden Ideas

Posted: Fri Mar 25, 2016 11:31 am
by beanybabe
I used some older version of this wp and added some of lisa ideas to it.
It had crashing problem inside now and then and one that seemed random. The inside one I fixed by changing the first loop for time from 60 to 59 seconds. it seemed it would get a nul error doing some check if the chest disappeared by cutting the 1 second stopped that error. The other crash was in the loop to move items to bank bag. I added a yrest(50) wait inside that loop where it moved the items to fix it. it was just to fast for the network.

I had also used lisa idea for her wp but then at end of opening chests it stopped so I replaced the last teleport with a waypoint near the exit npc.
it gets near same chests as lisa version now.

I would have tried lisa wp but had already customized this one to clean bag up and several other things. lisa wp looked like a version of this one if hers crashes inside it may need that timer change also. I am not sure who wrote this one I used it was named secretgarden v1.

It really needs code to get rid of the transformations and stat pots and fireworks
if you crash with lisa version I hope this info helps.

Re: Secret Garden Ideas

Posted: Fri Mar 25, 2016 12:03 pm
by beanybabe
a bit code to turn in the tickets

Code: Select all

for slotnumber = 1,40 do              ---      im not sure if this best way to get the count.
	local name, id, count, slot = bankItemBySlot(slotnumber)
	if id == 209561 then -- frog celibration certificate
		local frogcount = frogcount + count
	end
end	
if frogcount >= 7 
player:moveTo(CWaypoint(2646,1181), true)
player:target_NPC(114943) -- Anniversary Event Host
repeat
ChoiceOptionByName(getTEXT("SC_GE2_2011_REWARD02")) -- 'I want to exchange for gifts.'    -- this need loop till less than 7
frogcount == frogcount-1
until 1 >= frogcount /7

Re: Secret Garden Ideas

Posted: Sat Mar 26, 2016 4:14 am
by Onche
beanybabe wrote:The inside one I fixed by changing the first loop for time from 60 to 59 seconds.
Hi, can you tell us wich line you changed ? I don't remember who wrote the waypoint i'm currently using, but I have found this line twice:

Code: Select all

  if (os.time() - starttime) > 60 then break end
Is this the one you changed from 60 to 59 ?

thx