Author Topic: Enhanced Bandage Collector  (Read 9940 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • 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
Enhanced Bandage Collector
« on: September 13, 2010, 07:58:11 PM »
0
Code: [Select]
set %secure N/A ; hardcode this if you want

set %fountain YCQ
set %bandage ZLF
set %FountainGumpSize 168_152
set %FountainGumpName container_gump
set %total_enhanced 0

if %secure = N/A
gosub set_secure

repeat
finditem %fountain G_2
if #findCnt = 0
{
  event ExMsg #charID 3 54 Finished, %total_enhanced Enhanced Bandages Collected
  halt
}
gosub open_fountain
gosub get_bandages
until #false


sub open_fountain
set %current_fountain #findId
set #lobjectID %current_fountain
event macro 17 0
gosub gumpwait %FountainGumpSize %FountainGumpName
return

sub get_bandages
_get_bandages:
finditem %bandage C_ , %current_fountain
if #findCnt > 0
{
set %current_bandages #findId
event property %current_bandages
if Enhanced notin #property
{
ignoreitem %current_bandages
goto _get_bandages
}
    wait 10
    exevent drag #findid #findstack
    wait 5
    exevent dropc %secure
    wait 20
    set %total_enhanced ( %total_enhanced + #findstack )
}
gosub offsetclick 10 10 r
wait 5
ignoreitem %current_fountain
return

sub set_secure
  display ok Click on your secure container
  set #targCurs 1
  while #targCurs = 1
    wait 1
  set %secure #ltargetID
  display ok Your secure ID is %secure $Write it down if you want to hardcode it
return

;-------------------------------------------------------------------------------
sub OffsetClick
  set %tempx %1 + #CONTPOSX
  set %tempy %2 + #CONTPOSY
  set %tempCondition %3
  click %tempx %tempy %tempCondition
return

;-------------------------------------------------------------------------------
; %1 = Gumpname 1
; %2 = Gumpname 2
sub GumpWait
  wait 10
  namespace push
  namespace GW
  set !timedelay #SCNT
  loopwait1:
    if #CONTNAME = %1 || #CONTNAME = %2
      goto GumpWait_skip1
    if #SCNT > !timedelay + 7
      goto GumpWait_skip1
    goto loopwait1
  GumpWait_skip1:
  namespace pop
return

Opens Fountains of Life and grabs enhanced bandages and stores them in a secure.

You can hardcode your secure container in the first line of the script so you don't have to go through the popups to find 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 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: +161
  • Referrals: 2
    • View Profile
Re: Enhanced Bandage Collector
« Reply #1 on: September 13, 2010, 08:28:28 PM »
0
Can't you just leave the bandages in the fountain indefinitely?  I think I've got several thousand in each of mine...

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: Enhanced Bandage Collector
« Reply #2 on: September 14, 2010, 01:12:15 AM »
0
ya.. I do the same thing.. I just add a few thousand to of normal bandages to my fountains and they keep adding up.

Offline CervezaTopic starter

  • 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: Enhanced Bandage Collector
« Reply #3 on: September 14, 2010, 03:51:39 AM »
0
Sure you can. Or you can have them all moved into a single container.

If you don't use that many just letting them stockpile in the fountain is an excellent way of storing them. I use quite a few, but I'm in Fel mostly ;)

I like pulling resources from one container, not jumping from fountain to fountain grabbing up 10 a shot. I'd rather grab up my 100 from a single point for all my chars, then roll out.
« Last Edit: September 14, 2010, 04:35:48 AM by Cerveza »
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 Dan123The123Man

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 1
  • Dan123The123Man has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Enhanced Bandage Collector
« Reply #4 on: March 06, 2020, 01:34:46 PM »
0
How would you set the Z axis on this script so if you have multiple floors of fountains of life its not trying to pull from the floors above, giving you the "I Can't reach that" message?

Tags: