Subscribe to RSS feeds from ScriptUO with this LINK
0 Members and 1 Guest are viewing this topic.
;=================================================================; 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 checkMeditateStatusuntil #charGhost = yesreturn;************************* 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_waitreturnsub checkskill if #skill = #skillcap halt set %currentskill #skill str len %currentskill str ins %currentskill #dot #strRes set %currentskill #strres setuotitle SS %startingskill | CS %currentskillreturnsub castBushidoSpell event Macro 15 %spell target event Macro 23 0 wait 2s gosub checkskillreturnsub meditate wait 1s event macro 13 46 gosub scan %failFocus %failWait %successMessageTrance %successMessagePeace set %scanResult #resultreturnsub checkMeditateStatusif %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}returnsub 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 } }returnSub 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
...when you meditate you are disarmed...