Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - The Ghost

Pages: 1 2 [3] 4 5
31
Combat/Healing/Looting / Andros Utility Tool Bar
« on: April 15, 2015, 05:13:35 PM »
.I have written this simple script ( Andros UTB) to assist me while doing Andros. It will attempt to disco the Wips and attack Wips casting. spell.   While training your pet, you can heal him and your self.  
 
Code: [Select]
; ==================================
    ; Script Name: Andros Utility Tool Bar
    ; Author: The Ghost
    ; Version: 1.6
    ; Client Tested with: 7.0.45.0 (build 286)
    ; Shard OSI / FS: OSI tested
    ; Revision Date: 2015 Mar 11
    ; Public Release:
    ; Purpose: Help you disco Monster, heal your pet & you
    ; Special Thanks:
    ;        manwinc for helping finding issue.
    ;        C_2 & TM for some of their snippet
    ; ==================================
Revisions
 1.0  Build Menu
 1.2  Add Disco.  Not working properly
 1.2a  Utilize C_2 disco
 1.4 add heal Pet owner ( Sagittarri)
 1.6 Add Generic Disco on Target
 

32
Script Debug / Menu Button not working right
« on: January 15, 2015, 09:54:41 PM »
I have make a quick menu, so I can disco target and kill target.    Right now if I disco target and try to kill it after,( hit the wips bottom the script select disco button.   If I hit the kill first if work but the second time I hit wips it will try to disco.     Can't figure out what I did work on the menu side of the house.  Can anyone shed some light plx.

The Event macro was to help me see when it exit the loop

Code: [Select]

set %monsterkill XI_EG_TG_ZF ;
set %discomonster XI_EG_TG_ZF
gosub menu1

set #menuButton N/A
Repeat
  If #MenuButton <> N/A
     {
     gosub #menuButton
     set #menuButton N/A
     }
until #false

Sub button1
menu Font Style b
menu Font Color Black
Menu Font Bgcolor White
menu font size 8
menu button button1 0 0 80 30 In.Used Disco
gosub disco
gosub reset
return

Sub button2 ;  Attach Wips
menu Font Style b
Menu Font Bgcolor White
menu Font Color red
menu font size 8
menu button button2 0 30 80 30 In.Used Wips
 repeat
finditem %monsterkill G_10
if #findkind = -1
{
  goSub button2menu
  return
}
if #findcnt > 0
{
  set #ltargetkind 1
  set #ltargetid #findid
  event macro 15 17   ; 36  mb
  target 3s
  event macro 22
  wait 2s
}
; until #CLICNT = 0
until #false

Sub button2menu
  menu Font Style b
  Menu Font Bgcolor black
  menu Font Color red
  menu font size 12
  menu button button1 0 30 80 30 Wips
  return


;  =====================Disco Component ==================================
; ========================================================================
sub disco
finditem %discomonster G_10
if #findkind = -1
   return
set %targeted #findid
set #ltargetid %targeted
set #ltargetkind 1
event macro 13 15 ; disco
target
event macro 22
wait 30
gosub TM_AdvJournalScan disco NONE play_jarring already_in_discord
if #result = #true
   {
   gosub TM_AdvJournalSync disco
   Event macro 3 0 Disco
   return
   }
if #result = #false
   {
   gosub TM_AdvJournalSync disco
   wait 6s
   Event macro 3 0 Fail
   return
   }
Event macro 3 0 exit. last
return

sub reset
menu Font Style b
menu Font Color Yellow
Menu Font Bgcolor green
menu font size 12
menu button button1 0 0 80 30 Disco
return

;=================================================================
; ========================  Menu ========================================
sub menu1
menu clear
wait 15
menu show 160 37
wait 10
menu show 0 770
menu window size 404 60
menu Font Style b
menu Font Color Yellow
Menu Font Bgcolor green
menu font size 12
menu button button1 0 0 80 30 Disco 
;
menu Font Style b
Menu Font Bgcolor black
menu Font Color red
menu font size 12
menu button button2 0 30 80 30 Wips
return
;=================================================================

33
Script Debug / Exiting a button within a loop
« on: January 09, 2015, 09:59:36 PM »
Been hunting some little monster and I'm tired to hitting play/stop from window every time.  So I decide to make a menu,  I find out that I can perform one action at the time. Heal my self, recall, invis.   Now I'm trying to attack a monster with spell  and keep casting until dead.

I try this but it doesn't exit after the monster is dead.  What do I'm missing
Code: [Select]
gosub menu1

set #menuButton N/A
set %EndScript #false
Repeat
  If #MenuButton <> N/A
     {
     gosub #menuButton
     set #menuButton N/A
     }
until #menubutton = closed

Sub button1 ;  kill monster
 repeat
finditem xxx G_10
if #findcnt > 0
{
  set #ltargetkind 1
  set #ltargetid #findid
  event macro 15 17   
  target 3s
  event macro 22
  wait 2s
}
set #RESULT #FALSE
until #FALSE
event macro 3 0  Return_out
return #RESULT


34
Jokes! / This man though his wife had it really easy
« on: December 10, 2014, 03:20:42 PM »

A man was sick and tired of going to work every day while his wife stayed home.  He wanted her to see what he went through so he prayed.  "Dear Lord, I go to work every day and put in 8 hours while my wife merely stays at home.  I want her to know what I go through, so please allow her body to switch with mine for a day."

God, in his infinite wisdom, granted the man's wish.  The next morning, sure enough, the man awoke as a woman.  He arose, cooked breakfast for his mate, awakened the kids, set out their school clothes, fed them breakfast, packed their lunches drove them to school, come home and picked up the dry cleaning and stopped at the bank to make a deposit, went grocery shopping, then drove home to put away the groceries, paid the bills and balance the check book.  He cleaned the cat's litter box and bathed the dog.  Then it was already 1 p.M. and he hurried to make the beds, do the laundry, vacuum dust, and sweep and mop the kitchen floor; ran to the school to pick up the kids and got into an argument with then on the way home.  Set out cookies and milk and got the kids organized to do their homework, then set up the ironing board and watched TV while he did the ironing.

At 4:30 he began peeling potatoes and washing vegetables for salad, breaded the pork chops and snapped fresh beans for supper.  After supper he cleaned the kitchen, ran the dishwasher, folder laundry, bathed the kids, and pit them to bed.  At 9 P.M. he was exhausted and thought his daily chores weren't finished, he went to bed where he was expected to make love which he managed to get through without complaint.

The next morning he awoke and immediately knelt by the bed and said,

"Lord, I don't know what I was thinking.  I was so wrong to envy my wife's being able to stay home all day..
 Please, oh please, let us trade back."

The Lord, in his infinite wisdom, replied, "My son, I feel you have learned your lesson and I will be happy to change things back to the way they were.  You'll just have to wait nine months, thought.  You got pregnant last night"


35
General UO Chat / QOS router
« on: November 15, 2014, 10:43:17 AM »
I had started to upgrade some of my tech gear and notice that QOS can be set for gaming and even Video card can be get up for game.  Since UO is so old, I can't seen to fine a match.   Did you guy figure a way to use QOS

36
Script Debug / Scan Paperdoll and main pack together
« on: November 11, 2014, 12:29:48 PM »
I know that I can scan those two separate.  and it work  Now I will like to scan for both  #CHARID &   #backpackid . This will allow me to check all my weapon if needed.  Right now I need to run two separate script to to it.  can that be done scan for weapon in my hand and pack.


This work fine
Code: [Select]
set %weaponbag #CHARID  ;  This will scan my paperdoll
or
set %weaponbag #backpackid  ; this will scan my pack.  


finditem %weapon C_ , %weaponbag


This doesn't work.
Code: [Select]
set %weaponbag #CHARID_#backpackid


finditem %weapon C_ , %weaponbag

37
Script Debug / Menu turn log in black
« on: October 17, 2014, 10:04:39 PM »
I have been playing with building menu. and some of them turn my log in window black    If the script is running  and I need to log off. the window turn black. I need to close main UO and restarted it.   I have look into some build and can't find any reason why this happen. Any inside on that.

38
Script Debug / Event macro 58
« on: October 04, 2014, 03:45:51 PM »
Any of you guy using this Event macro 58 ( bandage self).  With my Gargoyle it work fine but with an elf it doesn't.   I was working before. build 270 I believe.   

39
Script Debug / issue setup a runebook via #property
« on: October 01, 2014, 08:53:01 AM »

I know that this work if I hard code the book ID

Code: [Select]
set %book XXXXXXXXX   ; runobook to recall home
while #true
{
   onHotKey f alt
gosub recallhome
}

sub recallhome
; set #LPC 1000
     set %runebookID %book     ; book to recall home
     finditem %runebookID C_ , %backpackid
     set #ltargetID %runebookID
     set #ltargetkind 1
     wait 40
     event macro 15 31  ; 31 Recall Spell    210 Sj
     wait 1s
     target
     event macro 22 0  ; Last target
     wait 20
;     set #LPC 10
Return

I'm trying to detect the book so I don't required to change book ID so all my toon can use the same build.
Since it not working, I guest I'm not using the property correctely.

Code: [Select]
finditem ZBN C_ , #backpackid
if #findcnt > 0
wait 10
if home in #property  
set %homebook #findid

while #true
{
   onHotKey f alt
gosub recallhome

}

sub recallhome
set %book %homebook
; set #LPC 1000
     set %runebookID %book     ; book to recall home
     finditem %runebookID C_ , %backpackid
     set #ltargetID %runebookID
     set #ltargetkind 1
     wait 40
     event macro 15 31  ; 31 Recall Spell    210 Sj
     wait 1s
     target
     event macro 22 0  ; Last target
     wait 20
;     set #LPC 10
Return

40
General UO Chat / Item decay
« on: September 26, 2014, 03:20:25 PM »
Did you guy notice that the item on the ground seen to decay faster. I was able to hunt in dungeon and leave a bag on the ground until it was full.. now some of my bag decay in 10 min.   

41
Scripting Chat / Alliance msg sending
« on: August 19, 2014, 08:08:42 AM »
I had look  and can't seen to found how to get this to work. does someone  can tell me how I would send an alliance message?
 
that work for guild
Code: [Select]
msg \ (insert text)  

I have try does for alliance without result
Code: [Select]
msg  \shift
msg    shift \

Thanks for all your help

42
Script Debug / Adding #findrep issue
« on: May 11, 2014, 08:27:32 AM »
Hello
I try to post under the original forum but since it be inactive I will here as well.  
(http://www.scriptuo.com/index.php?topic=7538.150)

Required some assistance with a small addition.  While some of my guild mate are hunting with Pet, so I decided to add a #FindRep .  I no lounger attack guild mate pet, but the attack monster part doesn't work as well anymore.  it since to ignore a few from time to time.  I can do Riktor ok but Baracoon won't work.   I have try multiple version and this was the best working build.  Dis I miss something or my logic isn't there.  THx the help.

Code: [Select]
set %monster AV_EN_JD_VGB_CB_IS_HS_AB_GJ_CD_DF_AE_AAB_DN_HBB_UAB_TAB_XO_ZO_SO_NO_VC_DB_Q_ED_UM_IAB_CAB_AAB_OI_JZ_XZ_QGB_BD_KQB_CJ_FZ_DN_II_WI_TI_YD_WD_NI_EB_VI_R_XF_VE_IE_OE_HE_LD_BI_RB_UB_GB_LB_FB_CI_QE_AE_DE_FE_AB_QF_XE_YE_X_DI_GJ_W_BE_UC_UD_YH_N_HI_UE_SD_K_J_U_HD_PD_EJ_UI_QO_EAB_TO_PO_XI_UZ_KH_KAB_SZ_FD_MB_AC_IZ_DD_NE_VE_MO_TZ_LD_OE_WH_XI_SH_SC_EF_NB_RC_PB_KHB_UGB_T_CHB_BHB_NE_FD_YO_OTB
set %friend 2 ; What #Findreps to spare.



sub attackMob
set %target %monster

finditem %target G_1
if #findCnt > 0
{
{
if #findCnt > 1 && ( %useLS = #true ) && ( #mana < 25 ) && ( %spellTimer < #scnt2 )
   gosub execMS
;
if #findCnt < 2 && ( %useLS = #true ) && ( #mana < 25 ) && ( %spellTimer < #scnt2 )
   gosub execLS
;
if ( %useLS = #true ) && ( #mana > 25 ) && ( %spellTimer < #scnt2 )
   gosub execLS
if #findCnt = 2 && ( %useMS = #true ) && ( #mana > 25 ) && ( %spellTimer < #scnt2 )
   gosub execMS
if ( %usePrimary = #true ) &&  ( #mana > 25 ) && ( %spellTimer < #scnt2 )
   gosub execPrim
if ( %useSecondary = #true ) && ( #mana > 25 ) && ( %spellTimer < #scnt2 )
   gosub execSec
Call ScanBuffBar
set %ConWep _ConsecrateWeapon_ in %BuffBarIconNames
if ( %castConWep = #true ) && ( %ConWep = #false ) &&  ( #mana > 10 ) && ( %spellTimer < #scnt2 )
   gosub castCon
set %EOO _EnemyOfOne_ in %BuffBarIconNames
if ( %castEOO = #true ) && ( %EOO = #false ) &&  ( #mana > 10 ) && ( %spellTimer < #scnt2 )
   gosub enemyOfOne
}
if #FindRep notin %friend  ; Only attack if it is not a "bad one".
 {
    if #FINDKIND = -1 4
     finditem %target
     set %attack #findid
     set #LTARGETID %attack
     event macro 27 0

    if #findid <> %attack
     {
     set %attack #findid
     set #LTARGETID %attack
     event macro 27 0
     }
 }
else ; If it a bad one then i ignore it for further run
  {
   ignoreitem #FindRep
  }
  }
return

43
Script Debug / clent crach on drop sub
« on: January 13, 2014, 12:35:27 PM »
It seen that this sub make my client crash sometime.  it could be find for a few day and other it will crash a few time in a day.     any reason for it.  The flow seen to make seen to me.   Should I increase the wait time.

Code: [Select]
sub organize
 namespace push
  namespace local ORG
FindItem %TurnIN C_ , %itembox
if #FINDCNT =  100
   return
finditem %TurnIN C_ , #backpackid
  for #FINDINDEX 1 #FINDCNT
  {
  exEvent Drag #findID
  exevent dropc %itembox
  wait 21
  }
  namespace pop
return #true

44
General UO Chat / Toggle bewteen two icons
« on: October 29, 2013, 09:40:48 AM »
I'm trying to alternate between two icons.    I'm trying to use Primary and LS  one after another.    The icon are save as red and just keep swapping  even if the special wasn't use.   I'm doing this with a thrower.  Is there a way to scan to keep the Icon red on Primary if not use before it change to LS.   

45
Script Debug / Reading #Hits with a Gargoyles
« on: October 18, 2013, 03:10:37 PM »
Ok  I have a snippet that I use to heal my mage (elves)  if the #hits go under number.  Now I just run the same snippet on my gargoyle and it won't stop casting heal on him self event it max heal.    Look like I miss to add something that will work on Gargoyles., anyone have a clue.   thx

Edits.   Look like the cast Heal over and over on my mage too. 

Here the main loop
Code: [Select]
Repeat
if #charName = N/A
   event macro 8 2
if #CHARSTATUS = CB    ; Poison Gargoyle
{
 gosub cure
}
if #hits < ( #maxhits - 30 )
(
gosub heal
 }
gosub Invis
until #CHARGHOST = yes
 }

sub heal
        {
       event macro 15 28
       target
       wait 20
       event macro 23 0
       set %spelltimer #scnt2 + %safety
       }
    wait 5
return


Pages: 1 2 [3] 4 5