Author Topic: Blackrock in the trash.  (Read 6079 times)

0 Members and 1 Guest are viewing this topic.

Offline UltimaTopic starter

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Blackrock in the trash.
« on: September 23, 2011, 06:24:42 PM »
0
Trying to code a script to pick Blackrock off the ground into a trash barrel but it will only pick it up not toss in the trashcan. As you can tell by the looks of it this is a very complicated script:

Code: [Select]
set %trashcan BKF
finditem UVF_GWF_FWF_EWF G_2
if #FINDCNT > 0
{
  event Drag #FINDID
  wait 15
  exevent dropc %trashcan
  wait 15

What am I missing? Something very simple I imagine. ???

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: Blackrock in the trash.
« Reply #1 on: September 23, 2011, 06:46:38 PM »
0
set %trashcan XXXXXXX
finditem UVF_GWF_FWF_EWF_ G_2
    if #findkind <> -1
      {
      exevent drag #findid #findstack
      wait 13
      exevent dropc %trashcan
      wait 13
      }

You don't want to be using event and exevent together.

If you want to vacuum up everything in range, perhaps:

finditem UVF_GWF_FWF_EWF_ G_2
if #findkind <> -1
set %blackrockcount #findcnt
for !u 1 %blackrockcount
  {
  exevent drag #findid #findstack
  wait 13
  exevent dropc %trashcan
  wait 13
  }  


« Last Edit: September 23, 2011, 07:12:50 PM by NObama »

Offline Dixie Wrecked

  • Full Member
  • ***
  • Posts: 124
  • Activity:
    0%
  • Reputation Power: 3
  • Dixie Wrecked has no influence.
  • Gender: Male
  • Respect: +31
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #2 on: September 23, 2011, 06:52:37 PM »
0
Trying to code a script to pick Blackrock off the ground into a trash barrel but it will only pick it up not toss in the trashcan. As you can tell by the looks of it this is a very complicated script:

Code: [Select]
set %trashcan BKF
finditem UVF_GWF_FWF_EWF G_2
if #FINDCNT > 0
{
  event Drag #FINDID
  wait 15
  exevent dropc %trashcan
  wait 15

What am I missing? Something very simple I imagine. ???

It looks like %trashcan is only set to the itemtype, not the actual ID of the trashcan that you want the blackrock thrown into?
"hmm, theres no examples and directions sticky in new member intros.  you have to admit script library would have been a good place to put it"
- karrde

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Blackrock in the trash.
« Reply #3 on: September 23, 2011, 06:58:50 PM »
0
Have you ever used Whisp's Master of Loot

really a great program to do this and any moving!

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: Blackrock in the trash.
« Reply #4 on: September 24, 2011, 01:35:22 AM »
0
if you want to do this with a trash type, you could do this following
Code: [Select]
set %trash BKF
set %blackrock UVF_GWF_FWF_EWF

finditem %blackrock G_2 ; looking for some blackrock
if #findcnt > 0         ; if found more than 0 %blackrock
{                       ; open statement found more than 0 %blackrock
  set %current_blackrock #findid ; set found item id as %current_blackrock
  finditem %trash G_2   ; looking for trash
  if #findcnt > 0       ; if found more than 0 %trash
  {                     ; open statement found more than 0 trash
    exevent drag %current_blackrock #findstack ; drag found blackrock
    exevent dropc #findid ; drop in to found trash id
    wait 20              
  }                     ; close statement found more than 0 %trash
}                       ; close statement found more than 0 blackrock
What you witness -- is whatver..
uogamers hybrid.

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: Blackrock in the trash.
« Reply #5 on: September 24, 2011, 05:58:36 AM »
0
id recommend you do it this way round less finditems,  2 vs #blackrock+1 finditems. but otherwise good code  camotbik

Code: [Select]
set %trash BKF
set %blackrock UVF_GWF_FWF_EWF

finditem %trash G_2   ; looking for trash
if #findcnt > 0       ; if found more than 0 %trash
  {                     ; open statement found more than 0 trash
  set %trashid #findid
  finditem %blackrock G_2 ; looking for some blackrock
  if #findcnt > 0         ; if found more than 0 %blackrock    
    {                       ; open statement found more than 0 %blackrock
    for #findindex 1 #findcnt
       {
       exevent drag  #findid #findstack ; drag found blackrock
       exevent dropc %trashid ; drop in to found trash id
       wait 20        
       }      
    }                   ; close statement found more than 0 blackrock
  }                     ; close statement found more than 0 %trash

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 UltimaTopic starter

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Re: Blackrock in the trash.
« Reply #6 on: September 24, 2011, 09:58:57 AM »
0
Thanks guys for the feedback!

This little script will help me in as a learning experience understanding the code functions a bit more. I know I'll be looking it over and referring to it again in the future.

Good little lesson for me here.

Now hopefully my accounts won't free up  for 5 seconds at a time when I recall into my Keep that has BR stored. God only knows how much is there....time to turn it in.

@Gimlet I've never heard of Whispers I'll have to check it out. I'm not sure if you can edit that to loot from the ground or not. Usually I use Jake's Mass Item mover for moving items from A to B. I'll check out Whispers though thanks.

Thanks to all who provided feedback here on the code. I do appreciate it and learned something along the way. :)

Offline UltimaTopic starter

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Re: Blackrock in the trash.
« Reply #7 on: September 24, 2011, 09:38:42 PM »
0
Final thanks guys!

There was a huge difference when logging or recalling into my Keep where all the blackrock was stored since tossing all the blackrock in the trash.  My UO screen used to freeze for 5-6 seconds before it was able to load the contents of my keep when it was littered with blackrock.

With all the BR in the trash no more locking up or freezing when getting near the keep. Much better this way and some clean up points to boot.

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Blackrock in the trash.
« Reply #8 on: September 25, 2011, 08:16:06 AM »
0
That's why I kept all my blackrock stored in bugged secures

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: Blackrock in the trash.
« Reply #9 on: September 25, 2011, 09:42:30 AM »
0
That's why I kept all my blackrock stored in bugged secures

And you do this, how?  Details, man!

Offline D

  • Full Member
  • ***
  • Posts: 175
  • Activity:
    0%
  • Reputation Power: 2
  • D has no influence.
  • Respect: +24
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #10 on: September 25, 2011, 12:35:04 PM »
0
This script worked great, cleaned up my house nicely :) it was just what i was after

Offline freddy

  • Sr. Member
  • *
  • Posts: 271
  • Activity:
    0%
  • Reputation Power: 4
  • freddy has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #11 on: September 29, 2011, 03:54:50 PM »
0
this is what i use:

Code: [Select]
set %secure BTTKRTD ; #backpackid ;BTTKRTD
set %trash  RNNAZMD

while #true
{
finditem UVF_FWF_EWF_GWF C_ , %secure
wait 5
for #findindex 1 #findcnt
{
exevent drag #findid
wait 15
exevent dropc %trash
wait 15
}
break
}
halt

I hate blackrock

Offline UltimaTopic starter

  • Insane Scripter
  • *
  • Posts: 1580
  • Activity:
    0%
  • Reputation Power: 26
  • Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.Ultima is on the verge of being accepted.
  • Gender: Male
  • Respect: +160
  • Referrals: 4
    • View Profile
Re: Blackrock in the trash.
« Reply #12 on: September 29, 2011, 09:20:22 PM »
0
Freddy where were you when I needed you? You disappeared on us!

I'm all out of blackrock for the time being.

Your code looks the most of what I was trying to accomplish. I wouldn't take that as a compliment! :-\ :P

This was a good learning lesson for me. Albeit very basic...baby steps. It will help next time I try and edit something or trying and create a small sub of some kind.

Offline freddy

  • Sr. Member
  • *
  • Posts: 271
  • Activity:
    0%
  • Reputation Power: 4
  • freddy has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 1
    • View Profile
Re: Blackrock in the trash.
« Reply #13 on: September 29, 2011, 09:37:40 PM »
0
haha yea i was kind of late to the party


I've been moving for the last week and a half, just got internet yesterday :P

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: Blackrock in the trash.
« Reply #14 on: September 30, 2011, 05:13:06 AM »
0
Freddy where were you when I needed you? You disappeared on us!

I'm all out of blackrock for the time being.

Your code looks the most of what I was trying to accomplish. I wouldn't take that as a compliment! :-\ :P

This was a good learning lesson for me. Albeit very basic...baby steps. It will help next time I try and edit something or trying and create a small sub of some kind.

For pure learning experience  I would have to say that Freddy code is not as good as camotbik or my modified camotbik.   Why because ?
(1) camotbik code auto detects the trash can for you
(2) camotbik pulls the blackrock off the floor as was requested not a secure
(3) Freddys code has a redundant  while loop and break.

Who new some much could be discuseed on such a simple task :)

But probably what you really needed was something that pulled from floor to backpack walked to trash then dumped ;)

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."

Tags: