Author Topic: Bushido 0.1 for Public Testing  (Read 4012 times)

0 Members and 1 Guest are viewing this topic.

Offline VicVegaTopic starter

  • Jr. Member
  • **
  • Posts: 71
  • Activity:
    0%
  • Reputation Power: 0
  • VicVega has no influence.
  • Respect: +8
  • Referrals: 0
    • View Profile
Bushido 0.1 for Public Testing
« on: May 21, 2009, 08:50:55 AM »
0
Code: [Select]
;=================================================================
; 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
To learn, read.
To know, write.
To master, teach.

Offline Toptwo

  • SunTigress's Hero!
  • Global Moderator
  • *
  • *
  • Posts: 2087
  • Activity:
    0%
  • Reputation Power: 21
  • Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...
  • Gender: Male
  • Respect: +131
  • Referrals: 1
    • View Profile
Re: Bushido 0.1 for Public Testing
« Reply #1 on: May 22, 2009, 02:17:30 PM »
0
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
« Last Edit: May 22, 2009, 02:26:34 PM by Toptwo »
The final weapon is the brain. All else is supplemental.....  If you find yourself in a fair fight, your tactics suck.

Offline Toptwo

  • SunTigress's Hero!
  • Global Moderator
  • *
  • *
  • Posts: 2087
  • Activity:
    0%
  • Reputation Power: 21
  • Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...
  • Gender: Male
  • Respect: +131
  • Referrals: 1
    • View Profile
Re: Bushido 0.1 for Public Testing
« Reply #2 on: May 22, 2009, 03:23:42 PM »
0
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
The final weapon is the brain. All else is supplemental.....  If you find yourself in a fair fight, your tactics suck.

Offline Toptwo

  • SunTigress's Hero!
  • Global Moderator
  • *
  • *
  • Posts: 2087
  • Activity:
    0%
  • Reputation Power: 21
  • Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...
  • Gender: Male
  • Respect: +131
  • Referrals: 1
    • View Profile
Re: Bushido 0.1 for Public Testing
« Reply #3 on: June 21, 2009, 05:33:08 AM »
0
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
The final weapon is the brain. All else is supplemental.....  If you find yourself in a fair fight, your tactics suck.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Bushido 0.1 for Public Testing
« Reply #4 on: June 24, 2009, 10:51:22 AM »
0
Does this happen alot, Toptwo?  Was about to move this one to public scripts otherwise.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Toptwo

  • SunTigress's Hero!
  • Global Moderator
  • *
  • *
  • Posts: 2087
  • Activity:
    0%
  • Reputation Power: 21
  • Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...
  • Gender: Male
  • Respect: +131
  • Referrals: 1
    • View Profile
Re: Bushido 0.1 for Public Testing
« Reply #5 on: June 24, 2009, 10:55:56 AM »
0
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.
The final weapon is the brain. All else is supplemental.....  If you find yourself in a fair fight, your tactics suck.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Bushido 0.1 for Public Testing
« Reply #6 on: June 24, 2009, 10:59:03 AM »
0
...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.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Toptwo

  • SunTigress's Hero!
  • Global Moderator
  • *
  • *
  • Posts: 2087
  • Activity:
    0%
  • Reputation Power: 21
  • Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...Toptwo might someday be someone...
  • Gender: Male
  • Respect: +131
  • Referrals: 1
    • View Profile
Re: Bushido 0.1 for Public Testing
« Reply #7 on: June 24, 2009, 11:02:03 AM »
0
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
The final weapon is the brain. All else is supplemental.....  If you find yourself in a fair fight, your tactics suck.

Tags: