ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: luv2luvlong on February 14, 2010, 09:36:43 AM
-
Here is a little sub I wrote that uses EN's buff bar scanner to return simple true false statements on icons in buff bar.
( EN's scanner can be found here http://www.scriptuo.com/index.php?topic=1508.0 (http://www.scriptuo.com/index.php?topic=1508.0) )
my main use has been for replacing the timer in Twinkle McNugget pvm dexter
( Twinkle McNugget's dexter can be found here http://www.scriptuo.com/index.php?topic=2658.0 (http://www.scriptuo.com/index.php?topic=2658.0) )
in line 2154
replace
!EOOTimer > #sysTime
with
!enemyofone #false
Then after monster dead in eoo sub ad this
gosub buffbarscanner
then paste sub at end of script
I went ahead and added all of the icons in this sub so I wouldn't have to write another one.
enjoy
-
The short answer is no. And I like what you're thinking with the buff bar sub, but I've written it 1000 times 1000 ways. It just doesn't work how I'd like. The problem with the pvm dexer is that everything works in a certain way, and at a certain time. I've tried my best to come up with an alternative to EV's buff bar scanner. Because I don't want to use a called script. That's the ONLY reason I don't want to use it. :)
-
You might like my script that I'm working on that constantly scans the buffbar and return global settings, so that global settings are either true or false that can then be called in a global namespace. this would probably be the quickest method. Now that I am begining to under stand global stuff I like it a lot.
One script for combat, one for looting, one for deciding what to do i.e. recal here until this then do that. for example that thing I pm'd you about uses your dexer and TM's claw to perform a routine task in game. I keep thinking a script that just returns certain variables constantly that can be pluged into any script. current health, poisoned, etc.
-
The short answer is no. And I like what you're thinking with the buff bar sub, but I've written it 1000 times 1000 ways. It just doesn't work how I'd like. The problem with the pvm dexer is that everything works in a certain way, and at a certain time. I've tried my best to come up with an alternative to EV's buff bar scanner. Because I don't want to use a called script. That's the ONLY reason I don't want to use it. :)
Called scripts are as fast as in built code. Do some testing you will see.
Interesting idea using global vars i can see having globals vars turned on and off according to the buffbar status.
-
Interesting idea using global vars i can see having globals vars turned on and off according to the buffbar status.
yea thats part of the reason i wrote this sub, and your scanner made part of what i want a script to do, one script to do thinking ( ie poison level is what, is health below level, etc and simple return true false statements in a series of globals, theoretically no waits would be needed in this script), one script for looting, one for combat operations, and one controling location and current actions.
-
This reminds me that I still need to put the Buff bar in the WIT script. It'll only be used for 'Protection' detection status atm, but probably more later on.
-
The short answer is no. And I like what you're thinking with the buff bar sub, but I've written it 1000 times 1000 ways. It just doesn't work how I'd like. The problem with the pvm dexer is that everything works in a certain way, and at a certain time. I've tried my best to come up with an alternative to EV's buff bar scanner. Because I don't want to use a called script. That's the ONLY reason I don't want to use it. :)
Called scripts are as fast as in built code. Do some testing you will see.
Interesting idea using global vars i can see having globals vars turned on and off according to the buffbar status.
Yes I know. I just don't want that extra dependancy. Nothing to do with your script at all brother. I love the buff bar scanner. It's saved my hiney quite a few times from oath. :)
Edit: Also it's a bit of a challenge that's pretty fun to wrack your brain on. Finding a way around a problem that needs to be solved... Make it nice and easy with a #karma variable and a journal message... :)