Author Topic: Gorgon lens charge scanner / charger  (Read 14962 times)

0 Members and 1 Guest are viewing this topic.

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #15 on: July 22, 2010, 11:23:18 AM »
0
thanks c!. drag from PD is not the best solution, if you are actively fighting. That might be bad. Will try container option later today

Scrripty

  • Guest
Re: Gorgon lens charge scanner / charger
« Reply #16 on: July 22, 2010, 12:20:03 PM »
0
Search for the id of your arms/gorget inside the paperdoll container and set it's id to #ltarget and target it?  I don't know if that would work or not, I don't do anything that needs that kind of functionality and haven't read your script to see.  Too much other code to look at. :)  I'm starting to feel TM's pain when people ask him to look at stuff. hah

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #17 on: July 22, 2010, 01:24:23 PM »
0
I had the targetting right, but not the container to search in. Will fix after work. Got three days of scripting ahead! Yay!

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #18 on: July 22, 2010, 04:52:53 PM »
0
Here's a clue... Your paperdoll is a container. ;)
Pretending I aint sherlock, what if I need more than one clue? I think i need a trail of freaking breadcrumbs. I understand what you infer, but have no CLUE ( :P ) as to how to target it still. been reading up in documentation. That is hit or miss, because there is sooo much.

The finditem is working well, and accurately detecting charge state. Should I use #findbag to detect the paperdoll?(still at work, so cant check on my own).

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #19 on: July 22, 2010, 04:58:48 PM »
0
It's not what you look for, it's where you look for it....
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #20 on: July 22, 2010, 05:01:59 PM »
0
It's not what you look for, it's where you look for it....

 >:( . To quote my kidz. MEANIE HEAD. *looks under paperdoll* Hey, ummm, did you know they are VERY anatomically correct?

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #21 on: July 22, 2010, 05:24:08 PM »
0
Certainly you are getting close to discovering what is
Hidden in the clues.
Are you getting tired of my posts?
Really?
I think if you just paid some attention it would all become
Deliciously clear.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #22 on: July 22, 2010, 05:32:07 PM »
0
too broke to pay attention.  :P

seriously, considering all options and thinking out of the box though.

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #23 on: July 22, 2010, 05:50:24 PM »
0
Okay, I get this part
Code: [Select]
finditem %gorget , #charid
 gosub scan %gorget
 finditem %helmet , #charid
 gosub scan %helmet
goto gorgonlens

But still stumped on this part. I can FIND it there, but how do you make it TARGET there? is there a variable associated with it? (runs off to documentation)
Code: [Select]
}
 set #lobjectid #findid
 set #ltargetid %chargeditem
 event macro 17 0
  set #targcurs = 1
  repeat
    wait 10
  event macro 22 0
  until #targcurs = 0
  }

Orrr, change to click location?
« Last Edit: July 22, 2010, 06:06:15 PM by baldielocks »

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #24 on: July 22, 2010, 07:57:42 PM »
0
EUO is pretty picky about what types of items it deals with ;)
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Scrripty

  • Guest
Re: Gorgon lens charge scanner / charger
« Reply #25 on: July 22, 2010, 08:28:07 PM »
0
One thing:  event macro 17 is last object.  If you're using a scale, I'm assuming that you're getting a cursor to use on the item.  You don't set the cursor to 1, you wait for the cursor to become 1 after using the object with event macro 17.  And there's a command for that. :)

Offline JustAnotherFace

  • Hero Member
  • *
  • Posts: 530
  • Activity:
    0%
  • Reputation Power: 8
  • JustAnotherFace has no influence.
  • Gender: Male
  • My new toy....
  • Respect: +24
  • Referrals: 4
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #26 on: July 22, 2010, 08:42:54 PM »
0
Here's a clue... Your paperdoll is a container. ;)

You seem to be having some problems wrapping this idea around your head........ think about it... how do we deal with containers?  If you had a container on the floor, how would you drop something in it?  Stumble onto one little tiny tiny piece of code, and listen to Twinkle McNugget's last suggestion and your most of the way to your destination :)

JaF
All that tyranny needs to gain a foothold is for people of good conscience to remain silent.
Thomas Jefferson

Offline baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #27 on: July 22, 2010, 08:59:16 PM »
0
I am having a problem, but not in the way you imply JAF. Thanks for stepping in to try to pull my head out of the sand though! Might need more than three it seems at this rate.

Since this is a combat situation, removing items from PD is dangerous (you only need to recharge gorgon lens because you are currently fighting medusa). I need another way around that, as I cant see myself releasing a script that could get you killed. I currently use 3-4 charges per medusa, and suspect that others do as well. This and a companion script will greatly reduce the danger of statues.

As to handling containers, I think I finally got a decent handle on that:
find and set %stuff in pack
find and set %boxonground G_ ,
findcnt || findkind to verify in G_ radius.
If true,
then drag %stuff
dropc %stuff in pack to %boxonground.

Since the items I want to charge are in a container, and I get that, the only way to directly target something in it SHOULD be target last (like when we used to steal from paperdolls), or a click with target cursor = 1 at contposX Y or finditem X Y. Thats where I am having issues.

@Twinkle McNugget. Thanks for the reminder. I guess I should be using the target command then? default is 2 seconds, unless an argument (is that the right term?) is added (3-5 being the most common)? target 5s (5s is argument, correct?)

There's also event macro 25 0, wait for target, that could be used as well. Not sure if you would have to use event macro 28 0 (wait) in conjunction though. I never coud get that to work right in the client.


« Last Edit: July 22, 2010, 09:28:56 PM by baldielocks »

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Gorgon lens charge scanner / charger
« Reply #28 on: July 23, 2010, 02:38:33 AM »
0
All of that typeing and you didn't catch it.... hmmm
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Scrripty

  • Guest
Re: Gorgon lens charge scanner / charger
« Reply #29 on: July 23, 2010, 05:44:34 AM »
0
Waits for targets are all pretty much personal preferfence just remember that euo forces you to wait that amount of time before the script will continue so having long target waits like 5s isnt always a good thing, it depends on the situation really.

Tags: