Author Topic: Harvest Script  (Read 4541 times)

0 Members and 1 Guest are viewing this topic.

Offline alaskanTopic starter

  • Jr. Member
  • **
  • Posts: 29
  • Activity:
    0%
  • Reputation Power: 1
  • alaskan has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Harvest Script
« on: November 01, 2013, 05:25:11 AM »
0
Hey guys this is just a simple harvest script that I put together and it'll work 90% of the time, however it gets caught up before it actually finishes harvesting. Can someone help me out, maybe tell me what I need to add/remove thanks guys in advanced :D
Code: [Select]
;Harvest Flax
finditem VEK G_0
{
  if #findcnt < 1
    return
  set #lobjectid #findid
  set #ltargetkind 1
  event macro 17 0
  wait 80
}
else
{
  finditem WEK G_0
  if #findcnt < 1
  return
set #lobjectid #findid
set #ltargetkind 2
event macro 17 0
wait 80
}
"You miss 100% of the shots you don't take" - Wayne Gretzky

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Harvest Script
« Reply #1 on: November 01, 2013, 06:17:16 AM »
0
I whipped this up real quick, it's completely untested but should theoretically work. And if it doesn't then sorry, I don't use EUO anymore :X

Code: [Select]
;Harvesting Stuff
FindItem VEK G_0
if #FindCnt >=1
{
  for %i 1 #FindCnt
  {
    set #LObjectID #FindID
    set #LTargetKind 1
    Event Macro 17 0
    IgnoreItem #FindID
    set #FindIndex #FindIndex + 1
    Wait 20
  }
}

FindItem WEK G_0
if #FindCnt >=1
{
  for %i 1 #FindCnt
  {
    set #LObjectID #FindID
    set #LTargetKind 1
    Event Macro 17 0
    IgnoreItem #FindID
    set #FindIndex #FindIndex + 1
    Wait 20
  }
}

If that doesn't work, you might try out this:

Code: [Select]
;Harvesting Stuff
FindItem VEK G_0
for #FindIndex 1 #FindCnt
{
  set #LObjectID #FindID
  set #LTargetKind 1
  Event Macro 17 0
  Wait 20
}

FindItem WEK G_0
for #FindIndex 1 #FindCnt
{
  set #LObjectID #FindID
  set #LTargetKind 1
  Event Macro 17 0
  Wait 20
}

They should technically both do the same thing.



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline alaskanTopic starter

  • Jr. Member
  • **
  • Posts: 29
  • Activity:
    0%
  • Reputation Power: 1
  • alaskan has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Harvest Script
« Reply #2 on: November 01, 2013, 06:22:14 AM »
0
Ok thanks I'll give them a try and let you know, thanks for the help :D

Post Merge: November 01, 2013, 06:59:47 AM
Thanks dxrom :D, the first one didn't work but the second one works like a charm :). Yeah I need to convert that to c# now so I can start using stealth :), now I just need to learn how to implement moving of my char  :-[..................
« Last Edit: November 01, 2013, 06:59:47 AM by alaskan »
"You miss 100% of the shots you don't take" - Wayne Gretzky

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Harvest Script
« Reply #3 on: November 01, 2013, 07:34:04 AM »
0
Ok thanks I'll give them a try and let you know, thanks for the help :D

Post Merge: November 01, 2013, 06:59:47 AM
Thanks dxrom :D, the first one didn't work but the second one works like a charm :). Yeah I need to convert that to c# now so I can start using stealth :), now I just need to learn how to implement moving of my char  :-[..................

The wiki is your friend  http://wiki.easyuo.com/index.php?title=Event_Macro#Movement 

eg event macro 5 1  = move one step north.

You can also use these 2 commands for longer movements

event pathfind  blabla
move  x y Z

look them up.  good luck
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Harvest Script
« Reply #4 on: November 01, 2013, 07:46:13 AM »
0
Yeah... I don't know much of anything about C#.

However there is also this: http://wiki.easyuo.com/index.php?title=Move

I've never used it, so I don't even know how or if it works.



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline alaskanTopic starter

  • Jr. Member
  • **
  • Posts: 29
  • Activity:
    0%
  • Reputation Power: 1
  • alaskan has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Harvest Script
« Reply #5 on: November 01, 2013, 07:49:24 AM »
0
Thanks Endless, would you say the event movement is more efficient or path finding for movement of your char, or does it just boil down to preference? :D
"You miss 100% of the shots you don't take" - Wayne Gretzky

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Harvest Script
« Reply #6 on: November 01, 2013, 07:55:01 AM »
0
Thanks Endless, would you say the event movement is more efficient or path finding for movement of your char, or does it just boil down to preference? :D

If you want presice movement .. ie  3 steps north 2 east 1 south .. etc   Like you are moving around a house then use the single step method event macro 5 1 etc

If you want to just move to spot  bla bla on your screen and you dont care how you get their and there no real obstacles use MOVE

If you want to move to a spot thats dynamically changing and you want to it figure-out how to get theier on the fly use event pathfind  (event pathfind is the same as double clicking a spot on your screen and your char moves thier best it can)  You have to use a loop or a wait in your code   something like
repeat
  event pathfind blabla
  wait 5
until  #charposx = ??  && #charposy= ??  etc


So pick and choose .. all these same options are available in stealth as well.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline alaskanTopic starter

  • Jr. Member
  • **
  • Posts: 29
  • Activity:
    0%
  • Reputation Power: 1
  • alaskan has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Harvest Script
« Reply #7 on: November 01, 2013, 08:01:35 AM »
0
Ok thanks for the great info and yeah trying to get stealth working but can't get the latest version for some reason :(. Now I know which to use in which situation though :D, thanks again for the help :D
"You miss 100% of the shots you don't take" - Wayne Gretzky

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Harvest Script
« Reply #8 on: November 01, 2013, 09:59:49 AM »
0
Ok thanks for the great info and yeah trying to get stealth working but can't get the latest version for some reason :(. Now I know which to use in which situation though :D, thanks again for the help :D

I dunno but if you're interested I have such walking to items in my trinsic petal harvester script which is written in Pascal.

I know it's not C# but looking over it helps to analyze the context structure, etc.

http://www.scriptuo.com/index.php?topic=11635.0


It is as easy as passing cardinal value (ItemID) to MoveTo function.

Code: [Select]
procedure MoveTo(Item:Cardinal);
var
  X,Y,Z : Integer;

begin
  X:=GetX(Item);
  Y:=GetY(Item);
  Z:=GetZ(Item);
  MoveXYZ(X,Y,Z,1,10,False);
end;

o7



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline alaskanTopic starter

  • Jr. Member
  • **
  • Posts: 29
  • Activity:
    0%
  • Reputation Power: 1
  • alaskan has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Harvest Script
« Reply #9 on: November 01, 2013, 10:16:24 AM »
0
Thank you dxrom :D, helpful as always and I'll give this a look over and hopefully it can help me some more :)
"You miss 100% of the shots you don't take" - Wayne Gretzky

Tags: