ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: VicVega on May 21, 2009, 08:50:55 AM
-
;=================================================================
; Script Name: Bushido
; Author: VicVega
; Version: 0.1
; Shard OSI / FS: UO Legends
; Revision Date: 20/5/2009
; Purpose: Trains Bushido to GM
; Globals: None
;=================================================================
; Instructions: You need to setup your fcr in %userFcr variable
; It's 0 by default
;
;************************ Setup **********************************
gosub setup
;*********************** Main Loop *******************************
repeat
gosub chooseBushidoSpell
while #mana >= %minManaToCast
gosub castBushidoSpell
gosub meditate
while #mana < #maxMana
gosub checkMeditateStatus
until #charGhost = yes
return
;************************* Subs **********************************
sub setup
set %userFcr 0
chooseskill bush real
set %startingskill #skill
str len %startingskill
str ins %startingskill #dot #strRes
set %startingskill #strres
set %successMessageTrance you_enter_a_meditative
set %successMessagePeace you_are_at_peace
set %failFocus cannot_Focus
set %failWait you_must_wait
return
sub checkskill
if #skill = #skillcap
halt
set %currentskill #skill
str len %currentskill
str ins %currentskill #dot #strRes
set %currentskill #strres
setuotitle SS %startingskill | CS %currentskill
return
sub castBushidoSpell
event Macro 15 %spell
target
event Macro 23 0
wait 2s
gosub checkskill
return
sub meditate
wait 1s
event macro 13 46
gosub scan %failFocus %failWait %successMessageTrance %successMessagePeace
set %scanResult #result
return
sub checkMeditateStatus
if %scanResult = %failWait
{
wait 1s
event macro 13 46
gosub scan %failFocus %failWait %successMessageTrance %successMessagePeace
set %scanResult #result
}
if %scanResult = %failFocus
{
wait 10s
event macro 13 46
gosub scan %failFocus %failWait %successMessageTrance %successMessagePeace
set %scanResult #result
}
return
sub scan
set %maxTimeOutScan 15
set %timeout #scnt + %maxTimeOutScan
set %jrnl #jindex
scanjournal %jrnl
while #scnt < %timeout
{
if %jrnl < #jindex
{
set %jrnl %jrnl + 1
scanjournal %jrnl
}
for %journalCounter 1 %0
{
if % . %journalCounter in #journal
return % . %journalCounter
}
}
return
Sub chooseBushidoSpell
set %skill #skill
if %skill < 600 && %skill > 250
{
set %spell 146 ; Confidence
set %minManaToCast 10
}
if %skill < 750 && %skill > 600
{
set %spell 148 ; Counter Atack
set %minManaToCast 5
}
if %skill < 1050 && %skill > 750
{
set %spell 147 ; Evasion
set %minManaToCast 10
}
if %skill < 1200 && %skill > 1050
{
set %spell 150 ; Momentum Strike
set %minManaToCast 10
}
return
-
I love it! Unlike "super bob" this script does NOT require you to be at 50 skill before it will run. As I sit here right now it is casting confidence and raising the skill nicely!
Forget superbob guys..no more looking for bushido jewls to raise the skill then not have bob even recognize you are wearing them, this scrip is running great with a starting skill of 27.7!
Ok...one problem....after running this for a few minutes and just casting confidence..there is nothing to defete the anti-macro code. I just got the msg that if I did not do something I would be logged out. I am sure that is no problem if I was casting lightning strike...but using it for more of a "starting skill" it wants to time out.
Thanks!
Toptwo
-
Script is working GREAT now. I think the time-out problem is this: If you have to low a starting skill you miss to many tmes...you keep attempting to cast confidence, and either you fail to much, or you dont cast enough times to run your char out of mana so he tries to meditate (which beats the macro code of course) Once your skill is high enough that you fail far less then the script works like a million bucks!!
Thanks!
Toptwo
-
Vic, for some reason when this script moved from confidance to counterstrike it started disarming me when I was out of mana...it would disarm, use meditate, then try to resume without ever re-equiping sword, so game would time me out for inactivity
-
Does this happen alot, Toptwo? Was about to move this one to public scripts otherwise.
-
you have to have a weapon armed to use counterstrike, and when you meditate you are disarmed, and the script does not rearm the weapon..happened every time to me.
-
...when you meditate you are disarmed...
Whoa, I didn't realize that. Active meditation disarms you? I guess I've never noticed that probably because I always have a spellchanneling weapon.
-
I actually had no clue either, I am like you, always had a spellchanneling also, but in this case was just using a fast dagger...I have not tried running it with a spellchanneling weap however..but usually for this kind of training you are just gonna use your newb dagger