Author Topic: IS this findcolor and pick sub correct?  (Read 4857 times)

0 Members and 1 Guest are viewing this topic.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
IS this findcolor and pick sub correct?
« on: October 11, 2009, 07:15:34 AM »
0
Heres what I got, which one is more correct?

Code: [Select]
set %ashboards TLK 1191
Sub getash
  finditem %ashboards C_ , %resource
  for #findindex 1 #findcnt
    exevent drag #findid 100
  exevent dropc %backpack
  wait 30
return

or is this one correct?

Code: [Select]
set %ashboards TLK
Sub getash
  finditem %ashboards C_ , %resource
  #Findcol 1191
  for #findindex 1 #findcnt
    exevent drag #findid 100
  exevent dropc %backpack
  wait 30
return

Or finally...

Code: [Select]
set %ashboards TLK
Sub getash
  finditem %ashboards && #Findcol 1191 C_ , %resource
  for #findindex 1 #findcnt
    exevent drag #findid 100
  exevent dropc %backpack
  wait 30
return

Ugh, comfusing lol.
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +390
  • Referrals: 1
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #1 on: October 11, 2009, 07:22:54 AM »
0
I am no expert but I would say go with number 1.  Number 2 will not work because of the sentence structure and I am thinking number 3 want either but i am not sure.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #2 on: October 11, 2009, 07:35:30 AM »
0
ok thanks, i will keep it with 1 for now, im done for now, neeed to lay down, damn flu!
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

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: +786
  • Referrals: 1
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #3 on: October 11, 2009, 08:21:17 AM »
0
ALL ARE INCORRECT

But number 1 is the easiest to mod to be correct.. see below

Code: [Select]
set %boards TLK
set %AshColor 1191

Sub getash
  finditem %boards C_ , %resource
  for #findindex 1 #findcnt
    {
     IF  #Findcol = %AshColor
       {
       exevent drag #findid 100
       exevent dropc %backpack
       wait 30
       }
   }
return
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 CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #4 on: October 11, 2009, 08:40:55 AM »
0
Thanks EN, now all I have to do is figure out how to get all the gump buttons.  This is hard for me cause none of the x/y coordinates in other scripts match with the coordinates that show in easyuo or scriptuo.

But I am learning a lot.  But all them x/y are always off by 25 or more....:(
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Scrripty

  • Guest
Re: IS this findcolor and pick sub correct?
« Reply #5 on: October 11, 2009, 09:36:40 AM »
0
Thanks EN, now all I have to do is figure out how to get all the gump buttons.  This is hard for me cause none of the x/y coordinates in other scripts match with the coordinates that show in easyuo or scriptuo.

But I am learning a lot.  But all them x/y are always off by 25 or more....:(

I don't really know what you are looking at, but a lot of the gump locations you are going to find in scripts aren't going to match exact positions on the screen.  There's ways to click a gump no matter where it pops up on your screen, and you're probly looking at that.  Not exact locations.

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: +786
  • Referrals: 1
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #6 on: October 11, 2009, 12:54:29 PM »
0
Open the gump you want to find the postion of then run this code below.

Code: [Select]
contpos 0 0
halt

Now look at the cursor x/y values when you move the cursor over a button.  That will be the gump offsets.

in your code you would
Code: [Select]
set !clickx #conposx + %XoffsetCalcedabove
set !clicky #conposy + %yoffsetCalcedabove

click !clickx !clicky
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 NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +325
  • Referrals: 2
    • View Profile
Re: IS this findcolor and pick sub correct?
« Reply #7 on: October 21, 2009, 03:41:00 PM »
0
EN just taught me that trick.  Works like a charm.

 :)


Tags: