ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: roadrunner on May 30, 2013, 06:13:26 AM
-
:D ok, the apple sub worked out so nicely i thought i'd write a utility script for my miner toons to get rid of them pesky little blackrocks. this script does "work" but only when the character is moving. i can't find a page that details how to set a coordinate beside the character, so it would drop the rocks on the same tile over & over while standing still. if someone can link me the info source i'd be very thankful!!
repeat
findItem UVF_GWF_EWF C_ , #backpackID
if #findcnt > 0
{
exevent Drag #findid
wait 10
exevent Dropg #charposx #charposy #charposz
wait 10
}
until #findcnt < 1
halt
-
Dropg doesn't work on OSI shards. You need to give the #CHARPOSX or #CHARPOSY a bump by +1
repeat
findItem UVF_GWF_EWF C_ , #backpackID
if #findcnt > 0
{
set %dropx #charposx + 1
exevent Drag #findid
wait 10
exevent Dropg %dropx #charposy #charposz
wait 10
}
until #findcnt < 1
halt
This code should be smarter because there might be a chance that it won't drop for other reasons, so you'll need to move the drop position. This example just adds +1 to the "X" position.
Dropg work fine on RunUO servers....
-
thank you TM, i'll give that a try. it works great as is as long as i hit play and take off walking but when i've got 40-50 pcs in backpack, i'd rather just stand still and let them form a little "line" pile, granted after 15 or so i'll have to take a step to start a new pile.
-
Yeh, OSI seems to check and see if there's something at the dropg location. RunUO doesn't care. So it does work when you are moving most of the time because your character doesn't actually exist in the spot by the time the check of the spot is made by the server (since EasyUO is really slow)
-
They give cleanup points! Trashcan em
-
my ultimate goal for this little utility is to walk inside my house, stop, click play, let it empty'em to the floor. on OSI shards the tiny blackrocks do not decay, in houses, nor on open ground. being in a private home keeps looters from stealing your stash. (i keep a few on hand for the emergency Exodus dagger need, rest get trashed for points)
-
Most of the mining scripts here deal with blackrock by trashing it in a trashcan. Works great, set a trash can on your steps and dump them every second or third run.
-
He's Probably Saving them for the Exodus Keys.
-
I wanted to make an amendment to my Rock Dropper. there are actually 4 types (maybe even more, who knows for sure??) of the tiny blackrock pieces. the 4th item type ID is "FWF" and below is an amended snippet for those on OSI using it.
repeat
findItem UVF_GWF_EWF_FWF C_ , #backpackID
if #findcnt > 0
{
exevent Drag #findid
wait 10
exevent Dropg #charposx #charposy #charposz
wait 10
}
until #findcnt < 1
halt
like i said at the beginning of this thread, the script only drops the rocks while character is moving. can be mounted or on foot, doesn't matter. i am working on getting it to drop them on a ground tile, beside the character, and i'll post that when it's finished.
-
If you put them in wood create,u can break it ans stack them all. I have 6 boxes I believe and u only see 5 or 6 rock :)
-
If you put them in wood create,u can break it ans stack them all. I have 6 boxes I believe and u only see 5 or 6 rock :)
No kidding? I'll test this out. Would be an interesting bug if this were the case.
Also, just to confirm, yes there are 4 item types for the small blackrock you get while mining.
X
-
keep in mind that one of the BR types is the same as diamonds. If you don't use an additional check you will be pitching diamonds as well as BR.
FYI, I have used the broken crate thing a lot of times. It indeed works to dump a huge pile of BR in a small space. BR does not decay, so you don't need to store it in anything.
-
Good point on the diamond item type Paulo, forgot to mention that.
I figured the crate idea would work to dump a bunch on the ground at once, I thought The Ghost was saying that the blackrock would actually stack which is somehting they wouldn't normally do. Maybe I misunderstood.
X
-
I am not sure they stack per-se. Using the busted crate trick seems to place the contents outside of the usual stacking process. If you drop them they stack up to a certain point and you can't place any more in that spot. When you break a crate they drop in such a way that you generally can't see them in the same tile locations you normally would -- but they still show up in an object search and can be manipulated. I have stored thousands of blackrock this way and then moved them by running a script to pick them up again.
-
That what I was trying to said. You load the create with BR ,place the create is a good location, you break it. It the principal as the plant stacking:)
-
Ahhh ok, now I get you guys. Thanks for explaining.