Author Topic: In Search of Script that cuts Bolts of cloth to bandages  (Read 2491 times)

0 Members and 1 Guest are viewing this topic.

Offline Hobo420Topic starter

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 1
  • Hobo420 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
In Search of Script that cuts Bolts of cloth to bandages
« on: February 20, 2017, 12:13:34 PM »
0
hello ive searched and searced but havent came up with anything. Its a pretty simple task that im surprised no one has written a script for this lol its such a boring task to do. i have 300 fountains of and im tried of hand cutting bandages! please and thanks  in advance!

-Hobo

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 489
  • Activity:
    0.6%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: In Search of Script that cuts Bolts of cloth to bandages
« Reply #1 on: February 24, 2017, 01:31:38 AM »
0
Here is something that I used to cut lots of bolts into bandages. You may need to adjust some types if the bolts don't match. I used 109 bolts as my amount. I can't remember why right now, but it probably weighs in just under the 550 pack limit. As long as you are not moving, you can fill your back to it's max capacity regardless of your strength.

Basically, I had a secure filled with bolts, nothing in my pack but scissors. It will load from your selected secure as many bolts as the code is hardcoded to allow (109 bolts - you would need to adjust that manually in the script if you want a different amount) and cut these into folded cloth, then the cloth into bandages. The bandages will drop to the floor of the house (left over UO code from when bandages weighed more than the cloth). The script will search the floor next to you for any stacks of bandages to drag and drop back into the secure.

Code: [Select]
; cut bandages from secure
set %bolt_type CAG_ZZF
set %cloth_type CKF_CUI
set %bandage_type ZLF
finditem KAG C_ , #backpackid
if #findkind = -1
 {
 display ok You need scissors in your pack... halting
 halt
 }
set %scissors_id #findid
display ok Choose Secure
set #targcurs 1
target 5s
while #targcurs <> 0
 wait 1
wait 5
set %secure #ltargetid
set #lobjectid %secure
event macro 17 0
wait 20
event macro 22 0
wait 20
set #contposx 0
set #contposy 0

finditem %bolt_type C_ , %secure
if #findkind = -1
 {
 display ok no bolts found to make bandages - halting
 halt
 }
while #findcnt > 0
 {
 if #findstack < 109 ; 46 stays in pack
  set %bolt_qty #findstack
 else
  set %bolt_qty 109 ; 46  stays in pack
 exevent drag #findid %bolt_qty
 exevent dropc #backpackid
 wait 30
 finditem %bolt_type C_ , #backpackid
 set #ltargetid #findid
 set #lobjectid %scissors_id
 event macro 17 0
 wait 20
 event macro 22 0
 wait 40
 finditem %cloth_type C_ , #backpackid
 set #ltargetid #findid
 set #lobjectid %scissors_id
 event macro 17 0
 wait 20
 event macro 22 0
 wait 40
 finditem %bandage_type G_2
 if #findcnt < 1
  {
  display ok bandages not found in back after cut... halting
  halt
  }
 exevent drag #findid #findstack
 exevent dropc %secure
 wait 30
 finditem %bolt_type C_ , %secure
 }

Hopefully you can use this or it is a good starting point if you need to make any adjustments.

Enjoy!

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: In Search of Script that cuts Bolts of cloth to bandages
« Reply #2 on: February 24, 2017, 02:45:39 AM »
0
you can try this one,  Not sure if Bolt is support can remember.   If not it was on my To-do-list.  that I might forget to look at :)

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

Tags: