Page 6 of 12

Re: Eggs

Posted: Thu Jul 08, 2010 12:55 pm
by gloover
I have updated the bot with SVN, but there're nowere "ingamfunctions" folder or file?

Whats wrong?

Re: Eggs

Posted: Thu Jul 08, 2010 12:57 pm
by rock5
gloover wrote:I have updated the bot with SVN, but there're nowere "ingamfunctions" folder or file?

Whats wrong?
Sorry misspelt it.

rom\devtools\ingamefunctions

Re: Eggs

Posted: Thu Jul 08, 2010 1:08 pm
by Bekki
i did ingamefunktions alrdy putted in the right file...

it dont loot the gold eqqs with the normal file, just the other ones.
and the rock5 file dont SOLVE the quest

Re: Eggs

Posted: Thu Jul 08, 2010 1:45 pm
by rock5
Bekki wrote:i did ingamefunktions alrdy putted in the right file...

it dont loot the gold eqqs with the normal file, just the other ones.
and the rock5 file dont SOLVE the quest
You forgot to say, did you check the name of the quest? It's on line 3.

Re: Eggs

Posted: Thu Jul 08, 2010 2:01 pm
by Bekki

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="3981" z="3110" tag="Main">
		queststate = getQuestStatus("Eine einfache Aufgabe?")
		if queststate == "complete" then
			-- Complete quest
			player:target_NPC("Jenna Miller");
			sendMacro("CompleteQuest();"); yrest(2000);
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("test"));	
		elseif queststate == "incomplete" then
			-- Collect eggs
			if 1 > inventory:getItemCount(204789) then -- Get more feed
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Feed"));	
			else
				if player:target_Object(112955,8000) then
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"))
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Eggs"))
				end
			end
		else
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
		end
yes

queststate = getQuestStatus("Eine einfache Aufgabe?")

Re: Eggs

Posted: Thu Jul 08, 2010 2:52 pm
by rock5
Bekki wrote:yes

queststate = getQuestStatus("Eine einfache Aufgabe?")
Try typing this in the game and tell me what it displays;

Code: Select all

/script DEFAULT_CHAT_FRAME:AddMessage(igf_questStatus("Eine einfache Aufgabe?"))

Re: Eggs

Posted: Thu Jul 08, 2010 4:23 pm
by Bekki
rock5 wrote:
Bekki wrote:yes

queststate = getQuestStatus("Eine einfache Aufgabe?")
Try typing this in the game and tell me what it displays;

Code: Select all

/script DEFAULT_CHAT_FRAME:AddMessage(igf_questStatus("Eine einfache Aufgabe?"))

2

@Macrowindow:

It wants to Accept, then delete Target, Search it, and it try to accept again. this works. only solve NOT
and why it dont loot the gold eqqs?^^

Re: Eggs

Posted: Fri Jul 09, 2010 12:36 am
by rock5
Bekki wrote:
rock5 wrote:
Bekki wrote:yes

queststate = getQuestStatus("Eine einfache Aufgabe?")
Try typing this in the game and tell me what it displays;

Code: Select all

/script DEFAULT_CHAT_FRAME:AddMessage(igf_questStatus("Eine einfache Aufgabe?"))
2

@Macrowindow:

It wants to Accept, then delete Target, Search it, and it try to accept again. this works. only solve NOT
and why it dont loot the gold eqqs?^^
'2' means you have the 469 version of ingamefunctions in your game addon folder. Make sure you have updated your bot to 470 then copy the ingamefunctions folder to the game addon folder.

I thought you said my file loots the gold eggs? Does it or doesn't it? It should. If you are talking about someone elses file I'll need to see the command used to collect the eggs for me to help.

Re: Eggs

Posted: Fri Jul 09, 2010 12:57 am
by rock5
From now on can anyone having problems with my chicken eggs script, please read the instructions I've added to the file post before asking for help.
http://www.solarstrike.net/phpBB3/viewt ... 383#p11383

Thank you.

Re: Eggs

Posted: Fri Jul 09, 2010 2:25 am
by Bekki
rock5 wrote:From now on can anyone having problems with my chicken eggs script, please read the instructions I've added to the file post before asking for help.
http://www.solarstrike.net/phpBB3/viewt ... 383#p11383

Thank you.
At revision: 471
Devtools File @ 471

I try to copy it again in my gamefolder and resatrt game.



I see the problem maybe: I load the waypoint and it says that IngameF is not installed.

But i copied it to runesofmagic/Interface/Addons/ingamefunctions

wheres the prob?

Re: Eggs

Posted: Fri Jul 09, 2010 6:02 am
by rock5
Bekki wrote:
rock5 wrote:From now on can anyone having problems with my chicken eggs script, please read the instructions I've added to the file post before asking for help.
http://www.solarstrike.net/phpBB3/viewt ... 383#p11383

Thank you.
At revision: 471
Devtools File @ 471

I try to copy it again in my gamefolder and resatrt game.



I see the problem maybe: I load the waypoint and it says that IngameF is not installed.

But i copied it to runesofmagic/Interface/Addons/ingamefunctions

wheres the prob?
That's strange. You didn't put the ingamefunctions folder inside the ingamefuctions folder did you? Seems unlikely. Should be
Interface/Addons/ingamefunctions/ingamefunctions.lua
and
Interface/Addons/ingamefunctions/ingamefunctions.toc

To check manually if it installed, display the value of 'IGF_INSTALLED'.

Code: Select all

/script DEFAULT_CHAT_FRAME:AddMessage(IGF_INSTALLED)
It should return 'true'.

Re: Eggs

Posted: Fri Jul 09, 2010 9:01 am
by Bekki
It says "true"

ingamefunctions is there: Runesofmagic/Interface/Addons/Ingamefunctions/Ingamefunctions.lua

Same Problem, -> Waypoint 1 -> search NPC -> Accept Quest works -> Search, and it wanns to Accepts again.

When its went to Hens it says: Attempt to call method target_objekt <a nil valure>

could u post a file for doing quest until eggs empty only farming eggs.

iam using profil: Default
and this for farming EGGS (gold eggs it cant loot??!)

Code: Select all

<waypoints>
   <!-- #  1 --><waypoint x="4029" z="3168">   </waypoint>
   <!-- #  2 --><waypoint x="4079" z="3172">   </waypoint>
   <!-- #  3 --><waypoint x="4110" z="3121">   </waypoint>
   <!-- #  4 --><waypoint x="4114" z="3113">
   player:harvest(112956)
               while player:harvest(112956) do
                yrest(8000);
            end

   </waypoint>
   <!-- #  5 --><waypoint x="4079" z="3170">   </waypoint>
   <!-- #  6 --><waypoint x="4040" z="3162">   </waypoint>
   <!-- #  7 --><waypoint x="3950" z="3004">   </waypoint>
   <!-- #  9 --><waypoint x="3936" z="2968">
   player:harvest(112956)
               while player:harvest(112956) do
                yrest(8000);
            end

   </waypoint>



<waypoint x="3935" z="3039">
      player:harvest(112955, 1800,114931)
      while player:harvest(112955,1800,114931) do
               yrest(6000)
            end
      
      </waypoint>
<waypoint x="3947" z="3107">
      player:harvest(112955,1800,114931)
      while player:harvest(112955,1800,114931) do
               yrest(6000)
            end
</waypoint>
<waypoint x="3958" z="3136">
      player:harvest(112955,1800,114931)
      while player:harvest(112955,1800,114931) do
               yrest(6000)
            end
</waypoint>


<!-- #  1 --><waypoint x="3946" z="3264">
      yrest(1000)
   player:harvest(112955,114931,1800)
         yrest(500)
         if player:harvest(112955,1800,114931) then
               yrest(5000)
            end
   
while player:harvest(112958,1800) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end

while player:harvest(112958,1800,114931) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end
      </waypoint>
   <!-- #  2 --><waypoint x="3929" z="3265">   
      yrest(1000)
   player:harvest(112955,1800,114931)
         yrest(500)
         if player:harvest(112955,1800,114931) then
               yrest(5000)
            end
   
while player:harvest(112958,1800,114931) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end

while player:harvest(112958,1800,114931) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end
      
      </waypoint>   
   <!-- #  2 --><waypoint x="3920" z="3265">   
   yrest(1000)
   player:harvest(112955,1800,114931)
         yrest(500)
         if player:harvest(112955,1800,114931) then
               yrest(5000)
            end
         
   player:harvest(112955,1800)
         yrest(500)
         if player:harvest(112955,1800,114931) then
               yrest(5000)
            end
   
while player:harvest(112958,1800,114931) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end
         
while player:harvest(112958,1800,114931) do
         yrest(1850)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(40)
         sendMacro("UseSkill(1,1)") yrest(1000)
      end
            </waypoint>
   <!-- #  4 --><waypoint x="3912" z="3199">   </waypoint>
</waypoints>
and your file:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="3981" z="3110" tag="Main">
		queststate = getQuestStatus("Eine einfache Aufgabe?")
		if queststate == "complete" then
			-- Complete quest
			player:target_NPC("Jenna Miller");
			sendMacro("CompleteQuest();"); yrest(2000);
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
		elseif queststate == "incomplete" then
			-- Collect eggs
			if 1 > inventory:getItemCount(204789) then -- Get more feed
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Feed"));	
			else
				if player:target_Object(112955,8000) then
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"))
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Eggs"))
				end
			end
		else
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
		end
	</waypoint>
	<!-- #  2 --><waypoint x="3940" z="3055" tag="Get Feed">	</waypoint>
	<!-- #  4 --><waypoint x="3937" z="2978">
	player:target_Object(112956,7000,true)
	</waypoint>
	<!-- #  5 --><waypoint x="3935" z="3051">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
	<!-- #  6 --><waypoint x="3928" z="3185" tag="Get Eggs">	</waypoint>
	<!-- #  8 --><waypoint x="3929" z="3261">
		changeProfileOption("HARVEST_DISTANCE", 60)
		while player:target_Object(112955,8500) do -- Check for hens
			while player:target_Object(112958,1800) do
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(4000)
			end
		end
		while player:target_Object(112958,1800) do -- Check for any missed eggs
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		while player:target_Object(114931,1800) do
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		changeProfileOption("HARVEST_DISTANCE", 75)
	</waypoint>
	<!-- #  9 --><waypoint x="3926" z="3198">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
</waypoints>

IT WORKS NOW
there were a "+" @ all files, know its a "green ok" there.
update was wrong

thx

rock

but still the prob: when it trys to loot HENS or Harvest etc
-> attempt to call method target_objects <a nil valure >
and if quest incomplete: same -> attempt to call method target_objects <a nil valure >

there some helps? or why the other file dont loot goldeggs?

Re: Eggs

Posted: Fri Jul 09, 2010 9:59 am
by rock5
Bekki wrote:but still the prob: when it trys to loot HENS or Harvest etc
-> attempt to call method target_objects <a nil valure >
target_Objects is in player.lua in classes folder. Please make sure that it is updated correctly and has a green tick next to it.
Bekki wrote:there some helps? or why the other file dont loot goldeggs?
I don't even want to start commenting on this file as it is totally and completely screwed up. All the commands seem to be used wrong. I'm surprised any part of it works at all. If you want help with that ask the person who wrote it to fix it.

Re: Eggs

Posted: Fri Jul 09, 2010 10:48 am
by somberland
Little hint for Bot-Updates:
make a new empty folder, than do a SVN-Checkout on that Folder and it will load the newest Stuff inside, so than you only have to copy ur profile-file and maybe the settings/waypoints and don't have any problems with old versions, loolks like the header-files arent 100% right so Tortoise mess up (sometimes).

Re: Eggs

Posted: Fri Jul 09, 2010 1:42 pm
by Bekki
Its a green okay there. @ player.lua @ rock.


maybe in this lines:

player:harvest(112955,1800,114931)

the numbers are the "hens, egg, goldegg" ?

---

Re: Eggs

Posted: Fri Jul 09, 2010 3:18 pm
by gloover
Thanks rock5, your script works fine.
Does anyone have a script to milk the crummies?

Re: Eggs

Posted: Fri Jul 09, 2010 3:58 pm
by qcalex
gloover wrote:Thanks rock5, your script works fine.
Does anyone have a script to milk the crummies?
yeah just use the rock waypoint for eggs and change the npc name, the position and the ID of the Fresh Herb 204788, the quest name etc... and it will work great :P

Re: Eggs

Posted: Fri Jul 09, 2010 4:47 pm
by gloover
qcalex wrote:
gloover wrote:Thanks rock5, your script works fine.
Does anyone have a script to milk the crummies?
yeah just use the rock waypoint for eggs and change the npc name, the position and the ID of the Fresh Herb 204788, the quest name etc... and it will work great :P
Sorry, I'not an expert in creating scripts. Qcalex, could u upload your script, please?

Re: Eggs

Posted: Fri Jul 09, 2010 4:56 pm
by qcalex
sorry stil en progresse but it is simple as abc all the info to change it to cow insted of chiken is in the topics.
and btw in nub in codding so if i could make it so you ;) you just need motivation

Re: Eggs

Posted: Fri Jul 09, 2010 5:07 pm
by gloover
qcalex wrote:sorry stil en progresse but it is simple as abc all the info to change it to cow insted of chiken is in the topics.
and btw in nub in codding so if i could make it so you ;) you just need motivation
Ok, :? I'll try my best.
I don't have the coordinates of herbs, cows etc. Could you give these at least? Furthermore, I don't need to check for missed eggs, so can I skip this part of the script?