Author Topic: Dropg tutorial help  (Read 4304 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
Dropg tutorial help
« on: May 26, 2010, 07:43:10 PM »
0
Been working a very tiny script, and reading the wiki. I am having a problem with exevent dropg. I looked at other scripts that use this command, and cannot figure out what i am doing wrong. I can get it to drag #findid and #findstack, but it sticks on cursor. Using dropc to debug.

Code: [Select]
Finditem EEG C_ , #backpackid ; hides in pack
exevent Drag #findid #findstack
wait 10
exevent Dropg #charposx #charposy #charposz ;put on ground from easyuo wiki
wait 10
exevent Dropc C_ ; clears cursor as debug
halt

Scrripty

  • Guest
Re: Dropg tutorial help
« Reply #1 on: May 26, 2010, 07:47:07 PM »
0
baldie there's some issues with the exevent dropc commands atm.  Not sure if dropg is affected or not...  CEO over at EUO is looking into it I believe.

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: Dropg tutorial help
« Reply #2 on: May 26, 2010, 08:15:38 PM »
0
dropg has been busted for ages

Scrripty

  • Guest
Re: Dropg tutorial help
« Reply #3 on: May 26, 2010, 08:43:58 PM »
0
dropg has been busted for ages

Heh I've never even tried to use it. :)

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: +144
  • Referrals: 1
    • View Profile
Re: Dropg tutorial help
« Reply #4 on: May 27, 2010, 05:37:32 AM »
0
Is dropg to drop to the ground?  I have forgotten :)

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: Dropg tutorial help
« Reply #5 on: May 27, 2010, 05:43:11 AM »
0
dropg  works (ignoring any recent patch issues).... The problem is you cannot drop under your feet on OSI.  The example on EUO only works on freeshards.

You must drop on a possition other than charpox/y   ie +1

2nd problem you will encounter is that you dont know the z axis at any spot other than your feet you also dont know if any of the surrounding are squares terrian features such as walls etc

In my scripts i have gotten arround this by looping though  x-1 y-1 to x+1 y+1 attempting to drop as long as the item keeps rebounding to pack.
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 baldielocksTopic starter

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: Dropg tutorial help
« Reply #6 on: May 27, 2010, 03:11:51 PM »
0
thanks endless. How would you accomplish that? I assume find kind greater than one, but cannot see a way to increment it.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Dropg tutorial help
« Reply #7 on: May 27, 2010, 03:22:00 PM »
0
The dropg method from the EUO wiki DOES work on RunUO shards so it makes it really easy to drop things at your feet.  OSI is a different story.
Please read the ScriptUO site RULES
Come play RIFT with me!

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: Dropg tutorial help
« Reply #8 on: June 08, 2010, 08:13:57 PM »
0
dropg has been working.  Just remember: You can't stack items higher than 15 on the ground.  If you stay in one place, that can be an issue.

 :)

Offline Paulonius

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +162
  • Referrals: 1
    • View Profile
Re: Dropg tutorial help
« Reply #9 on: June 09, 2010, 06:25:07 AM »
0
Take a look at this script that I use to drop blackrock.  Since blackrock doesn't ever go away, you don't have to use lockdowns to store it.  I used the attached script to create the mess in the picture.  The script is buggy and needs some refinement, but it works on DropG.

-P

There are 2 attachment(s) in this post. You must register and post an acceptable introduction to download
Blackrock Garden.png
Blackrock Spreader.txt
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

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: Dropg tutorial help
« Reply #10 on: June 09, 2010, 08:59:55 AM »
0
I like to put my blackrock in a box, then hatchet it.  Much neater.

Just don't accidentally hit your old Armageddon spell macro when you're nearby.  Ouchy.

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: Dropg tutorial help
« Reply #11 on: June 11, 2010, 08:32:43 PM »
0
*EDIT* most problems resolved, see debug request thread
Okay, got most of my subs working for this. Object is to drop leather in a single stack on ground. If no current stack on ground, create new stack. At 58 K (15 in script for testing), it will cut leather and drop in pack. Once I get that smooth, will put in a BOS sub to send to bank.

Problem right now, the last sub cut_hides wont stop running. I have been putting in some if #finditem < 0 checks, but it is not helping. Could I get some guidance please?
A semi- problem is that it is grabbing leather from corpses and putting it on ground. I like this, but I think it might interefer with looters.
*script inspired by tm_logstoboards and S7's cut large leather stack (http://www.easyuo.com/forum/viewtopic.php?p=148691#148691)
main code source is EUO wiki.
Code: [Select]
mainloop
finditem EEG_ C_
{
 if #FindKind > 0
    gosub scan_hides_onground
 if #FindKind < 0
    goto mainloop
    }

;start subs
;-------------------------------

Sub scan_hides_onground
finditem EEG_ G_
   {
   if #findstack > 14
      gosub cut_hides
   if #findkind > 0
      gosub Drop_hides_in_stack
   if #findkind < 0
      gosub Drop_hides_new_pile
      }

;-------------------------------

Sub Drop_hides_in_stack
findid EEG_ G_
         if #findkind < 0
            gosub Drop_hides_new_pile
wait 5
ExEvent Drag #findid #findstack
wait 10
ExEvent Dropc !Hides_on_ground !number_on_ground

;-------------------------------

Sub Drop_hides_new_pile
Set %Xpos ( #CharposX - 1 )
Set %Ypos ( #CharPosY - 1 )
finditem EEG_ C_
if #FINDkind > 0
wait3
ExEvent Drag #findid #findstack
wait 10
ExEvent Dropg %Xpos %Ypos
wait 10

;-------------------------------
Sub cut_hides
Finditem KAG_
         if #findkind < 0
            halt
Set %scissors #FINDID
finditem EEG_ G_
         if #findkind < 0
            go mainloop
set !Hides_on_ground #findID
set !number_on_ground #findstack
Set #lobjectID %scissors
Set #ltargetID !Hides_on_ground
event macro 17 0
      target 5s
      wait 15
      exevent drag !Hides_on_ground !number_on_ground
      wait 15
      event macro 22 0
      wait 15
      exevent dropc #BACKPACKID
      wait 10
go mainloop

« Last Edit: June 12, 2010, 09:31:43 AM by baldielocks »

Tags: