local mainbp = getlootingdestination('mainbp')
local lootbp = getlootingdestination('lootbp')
local goldbp = getlootingdestination('goldbp')
auto(200)
if not $pzone then
if (windowcount(mainbp) ~= 1 or windowcount(goldbp) ~= 1 or windowcount(lootbp) ~= 1) then
if windowcount(mainbp) ~= 1 then
listas("BP Opener - Opening mainbp")
pausewalking(2000)
openitem(mainbp,'back')
waitping() waitping()
resizewindows(0,mainbp)
waitping() waitping()
end
if windowcount(lootbp) ~= 1 then
listas("BP Opener - Opening lootbp")
pausewalking(2000)
openitem(lootbp,mainbp,true)
waitping() waitping()
resizewindows(0,lootbp)
waitping() waitping()
end
if windowcount(goldbp) ~= 1 then
listas("BP Opener - Opening goldbp")
pausewalking(2000)
openitem(goldbp,mainbp,true)
waitping() waitping()
resizewindows(0,goldbp)
waitping() waitping()
end
else
listas("BP Opener - BPs Opened")
end
else
listas("Disabled For Depositer")
end
01-01-2017, 12:34 AM
Cisco
Quote:
Originally Posted by andado
Hello;
Can you check this action please
Is it right?
thanks
Code:
local mainbp = getlootingdestination('mainbp')
local lootbp = getlootingdestination('lootbp')
local goldbp = getlootingdestination('goldbp')
auto(200)
if not $pzone then
if (windowcount(mainbp) ~= 1 or windowcount(goldbp) ~= 1 or windowcount(lootbp) ~= 1) then
if windowcount(mainbp) ~= 1 then
listas("BP Opener - Opening mainbp")
pausewalking(2000)
openitem(mainbp,'back')
waitping() waitping()
resizewindows(0,mainbp)
waitping() waitping()
end
if windowcount(lootbp) ~= 1 then
listas("BP Opener - Opening lootbp")
pausewalking(2000)
openitem(lootbp,mainbp,true)
waitping() waitping()
resizewindows(0,lootbp)
waitping() waitping()
end
if windowcount(goldbp) ~= 1 then
listas("BP Opener - Opening goldbp")
pausewalking(2000)
openitem(goldbp,mainbp,true)
waitping() waitping()
resizewindows(0,goldbp)
waitping() waitping()
end
else
listas("BP Opener - BPs Opened")
end
else
listas("Disabled For Depositer")
end
1 - Wrong area > Request post
2 - Is correct. From what I can remember it looks like it's from a script of salamander
01-01-2017, 06:51 AM
andado
Quote:
Originally Posted by Cisco
1 - Wrong area > Request post
2 - Is correct. From what I can remember it looks like it's from a script of salamander
Sorry you understand me in wrong way i saw that there lots of threads that want pb opener and this is working for me well so i put it and want to check if it works with the other :D
01-01-2017, 02:01 PM
Cisco
Quote:
Originally Posted by andado
Sorry you understand me in wrong way i saw that there lots of threads that want pb opener and this is working for me well so i put it and want to check if it works with the other :D
Quote Originally Posted by andado View Post
Hello;
Can you check this action please
Is it right?
thanks
Yesterday, 09:57 PM ==> You asked to verify that it was correct...Asked, requested ==> Resquests: Lua Scripts > Requests > Post
Last edited by andado; Today at 04:52 AM ==> "Hello; If it works just tell me. thanks" ==> ...
...Then the action was verified and only communicated (I am not God of truth) that was posted in the wrong area. You 4:52 AM, change your argument to "Hello; If it works just tell me. thanks". Understand that I did not question the fact that you help others in the forum. But ask to check an action, put it in the wrong place and 5h later you change the description of the post to use the action and then comment and then questions why be wrong area, are entirely different arguments.
=============================
As I see it ...
- Yesterday, 09:57 PM ==> Request action check to see if it is correct. // Wrong are (Yesterday, 09:57 PM)
- Last edited by andado; Today at 04:52 AM. ==> Post, after action checked and [ questioning why wrong area (Today at 04:52 AM) ]
=============
And for the action to be more complete...
Note:
- Client 10: best wait(), example: wait(200,400), mainly for high ping
- Client 11: best waitping(), example: waitping() or waitping(2,3) etc...good for any ping
--AutoOpenBP
auto(1000)
local useAutoBP = true --check, if use auto open bp
--Checks
local useSupBP = true --check, if use supbp
local useExtraBP = true --check, if use extrabp
local useExtraBP2 = false --check, if use extrabp2
local useLootBP = true --check, if use lootbp
local useGoldBP = true --check, if use goldbp
--Destination
local mainbp = itemname($back.id)
local supplybp = getlootingdestination('supplybp') --check you looting destination, name supbp
local extrabp = getlootingdestination('extrabp') --check you looting destination, name extrabp
local extrabp2 = getlootingdestination('extrabp2') --check you looting destination, name extrabp2
local lootbp = getlootingdestination('lootbp') --check you looting destination, name lootbp
local goldbp = getlootingdestination('goldbp') --check you looting destination, name goldbp
if $connected then
if useAutoBP then
if not $pzone then
while windowcount(mainbp) == 0 do
pausewalking(2000)
closewindows()
openitem(0,'back')
wait(200,400)
pausewalking(0)
resizewindows()
end
if useSupBP then
while windowcount(supplybp) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(supplybp,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
if useExtraBP then
while windowcount(extrabp) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(extrabp,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
if useExtraBP2 then
while windowcount(extrabp2) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(extrabp2,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
if useLootBP then
while windowcount(lootbp) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(lootbp,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
if useGoldBP then
while windowcount(goldbp) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(goldbp,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
end
end
end
==========
Happy New Year
01-01-2017, 03:50 PM
andado
LOL the one i posted is already works anyway thanks for yours :D
and happy new year