been using this site for years and other ppls scripts, so i decided to try and make my own from scratch. i went threw cervezas tutorials on this site which was fun.
current issue i am having is im stuck in a loop where it just wants to organize bag positions , i have made a sub to move containers to position and open them all, this works fine, i also made a sub to drop gold from a loot bag into a bank bag, this works fine, problem is when i combine them i get stuck only moving containers around and not advancing to dropoff sub.
any help appreciated
SET %weight 200
SET %restockbag FTQDSPD
SET %lootbag ZRBNPMD
SET %dropbag RPYCWND
SET %dropoff pof_ZLF_
loop:
if #weight > %weight
gosub opencontainers
gosub bankdrop
GoTo loop
;;;;;;;;;;;;;;;;;;;;;
sub bankdrop
findItem %dropoff C_ , %lootbag
wait 8
if #findkind = -1
halt
if #findkind = 1
{
wait 10
exevent drag #findid #findstack
wait 10
exevent dropc %dropbag
}
return
;;;;;;;;;;;;;;;;;;;;;;
sub opencontainers
event macro 8 1 ; paperdoll
wait 10
Contpos 1450 40
wait 10
event macro 8 7 ;backpack
wait 10
contpos 1050 200
wait 10
msg bank $ ;open bank
wait 10
contpos 850 200
wait 10
set #LObjectID %lootbag ;lootbag
event macro 17 0
wait 10
Contpos 1450 400
wait 10
set #LObjectID %restockbag ;lootbag
event macro 17 0
wait 10
Contpos 1050 400
return