ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: VicVega on January 24, 2010, 07:23:56 AM
-
Si I've started to play again and I have some problems with my fishing script (wich worked fine before).
Droping boots of fishes in particular. So drops fishes and boots fine till a moment when it drops the fishes or the boots, and they go right back to the backpack.
So it enters in an infinite loop.
sub dropBoots
set %bootsType TVI_ZVI_ZVI_PVI_NVI
finditem %bootsType C_ , #backpackID
while #findKind <> -1
{
exevent drag #findID #findStack
wait 1s
exevent dropg #charPosX #charPosY #charPosZ
wait 1s
finditem %bootsType C_ , #backpackID
}
return
So now I've made a change in this part and it generates a random number (0 or 1) in order to drop the items right at my feet or a tile before:
sub dropBoots
set %bootsType TVI_ZVI_ZVI_PVI_NVI
finditem %bootsType C_ , #backpackID
while #findKind <> -1
{
set %dropPosY #charPosY - #random % 2
exevent drag #findID #findStack
wait 1s
exevent dropg #charPosX %dropPosY #charPosZ
wait 1s
finditem %bootsType C_ , #backpackID
}
return
That works better but still it gets stuck droping fishes or boots, but much less times.
When this happens I've tried stoping the script and write a little one in order to drop the items and it happens the same, unless I change the tile I'm droping them.
Any idea why this could be happening?
I've stop playing for almost a year and I'm playing in the same server.
-
APparently there is an issue at the moment with dropping on the same tile you are standing on. The suggested workaround is to drop to a tile next to you instead.
PITA but unfortunately I believe it is an issue out of our control at the moment.
X
-
Do you mean that you can drop items in a tile distance from the character without problems?
I've tested it with only a tile back and it has the same problem.
-
Try my dropon ground sub located here.... (it trys ever spot around you)
http://www.scriptuo.com/index.php?topic=2454.msg33436#msg33436