Page 1 of 1

Cow in Logar event

Posted: Sun Feb 19, 2012 4:29 pm
by Sota
I have an idea to make a bot to feed a cow in Logar (event) and do not know how to do this script. Can anyone do this?

Re: Cow in Logar event

Posted: Sun Feb 19, 2012 6:41 pm
by Germangold

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints><onload>
while inventory:getItemCount(200338) > 0  do 
	player:target_NPC(112151);
	sendMacro("ChoiceOption(3);");  
	yrest(7777);
end break;</onload></waypoints>

Re: Cow in Logar event

Posted: Tue Feb 21, 2012 11:48 pm
by Sithlord512589
Sorry, i am the dumb here.

I can“t get the code to work neither as profile in onLoad nor as waypoint-file.

it gives an error somewhere between
end break;
and
</onload>

someone please enlight me with this issue

thanks in advance

Re: Cow in Logar event

Posted: Wed Feb 22, 2012 12:08 am
by lisa
code if for a WP file

instead of break I would probably use player:sleep() or even error(") to stop MM

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
while inventory:getItemCount(200338) > 0  do 
   player:target_NPC(112151);
   sendMacro("ChoiceOption(3);");  
   yrest(7777);
end 
player:sleep()
</onload>
</waypoints>

Re: Cow in Logar event

Posted: Wed Feb 22, 2012 5:00 am
by Germangold
sorry didnt testet my code