Hi, so I've been searching the forums unable to find how to logout when you run low on UHs and/or low cap, mayby I'm a idiot but I really cant find it, help would be appreciated.
provocate
04-15-2012, 13:24
Hi, so I've been searching the forums unable to find how to logout when you run low on UHs and/or low cap, mayby I'm a idiot but I really cant find it, help would be appreciated.
I presume you're cavebotting and when cap drops under desired amount you want character to logout, right?
Create a new label somewhere in the script, preferably at the end~ ... For example :logoff
IfTrue ($mycap$#number<=#50) Goto $nlineoflabel:logoff$
..... <other stuff in script, like wpts and other actions>
:logoff
sayMessage exiva close
You might put 'IfTrue ($mcap$#number<=#50) Goto $nlineoflabel:logoff$' several times in your script, like after few waypoints, so it'll log exactly like you wished it would.
EDIT: You can forget about cavebot, I've created a contitional event for your case which is easier to use:
Low UHs:
$countitems:58 0C$
#number<#
10
0
1000
0
exiva close
Low Cap:
$mycap$
#number<=#
2000
0
1000
0
exiva close
Now we combine these two:
$countitems:58 0C$
#number<#
10
0
1000
0
exiva close
$mycap$
#number<=#
2000
0
1000
0
exiva close
58 0C = ID of UH rune, I've tested this on OT so you wanna check ID of the UH on every different OT you'll be using this, or of course real Tibia.
10 = amount of UHs
1000 = timer (1000ms = 1 second)
exiva close = action to take if conditional is true
2000 = amount of cap (2000 = 20.00 oz., 1000 = 10.00 oz., etc.)
This conditional event will log you off if you have less than 10 UHs left or if you have less than 20 cap left. (I know it says 2000 under the cap section in the script, but it's supposed to be like that)
Of course you can change amounts of UHs and cap to your desired amount, no problem. And instead of 'exiva close' you can put 'exiva testding' at the end of each conditional, so when either of conditionals is true it will ding every second (turn up the speakers :D)
Save this as .txt document in 'conds' folder inside BlackD Proxy folder. Open Conditional events, reload the list and search for the saved script, load it and you're good to go.
I hope I've helped! :D Of course, post back any issues occuring or further questions.
Powered by vBulletin® Version 4.2.5 Copyright © 2021 vBulletin Solutions Inc. All rights reserved.