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
46
Script Debug / FindItem timer
« on: August 31, 2013, 03:54:34 PM »
Good day
  I'm trying fixing a snippet of mine  Do i need to add a wait in between those finditem  or this is how is should be. 
Code: [Select]
if if #weight >= %mxwt
   return #true
FindItem %item C_ , #backpackid
if #FINDCNT > 0
   gosub moveitem
FindItem %item C_ , %itembox
if #FINDCNT > 0
   gosub makeitem

47
Script Debug / Exent property issue
« on: August 15, 2013, 05:20:59 PM »
I have a sub that suppose to only trash the blackrock, but for some reason the one that have the same ID of the Diamond don't get pick up 100% of the time.  Did my sub missing something are it just a matter of timing.

Code: [Select]
Sub Clearblackrock
finditem UVF_EWF_FWF_GWF C_ , #backpackid
    for #findindex 1 #findcnt
        {
        event property #findid
        if Blackrock in #property
        set %blackrock #findid    ; Finds only Blackrock, not the Diamonds.
        }
    wait 10
    if #findcnt > 0
       {
       for %i 1 #findcnt
           {
           finditem %blackrock C_ , #backpackid
           exevent Drag #findid #findstack
           exevent Dropc %TrashBarrel 
            wait 20
           }
       }
    return

48
Off Topic / Rebuild my PC
« on: July 16, 2013, 09:48:06 PM »
Seen like I might need to rebuild my PC.   Blow up a few capacitor in my old MB.  So I'm look at this for replacement   UO is my Biggest gaming addiction, so I don't required much.

Intel I3-3220 Processor (2 Cores, 4 Threads, 3.3GHz, 3MB Smart Cache)     http://ark.intel.com/products/65693/

 ASUS P8B75-M LX Plus Motherboard, 2x DDR3 sockets, PCI Express, and USB3   http://www.asus.com/Motherboards/P8B75M_LX_PLUS/



49
Script Debug / Journal Scanning problem
« on: July 14, 2013, 02:50:56 PM »
Good day Folks

TM ( like always thx)  have try to help me but I don't want to fill up is page about this problem, so I have started a new page in this section and I'm seeking ur help.

 I'm trying to insert TM_AdvJournalScan to improve my script. It seen that the more I try to fix it, the worst it get.  any suggestion will be more them welcome.

The event SysMessage  and Pause are only their to help troubleshooting.
The major problem result with
1) Someone_else_is_already_taming_this     <-----  that don't seen to get pick up by the journal.


Code: [Select]
.
; ver 1.3d  _Someone_else_is_already_taming_this. don't work in journal
;==================================
 gosub Setup
;---------------------------------- Main Loop --------
repeat
gosub targethole
gosub HuntEgg
until #charghost = yes
; *********************************
sub Setup
   ; set %nest PBN
    set %flute RGP_PGP   ; Charmer Flute
    set %snakes QE_JD_FB
    gosub TM_AdvJournalSync snake 100
return
;==================================
; Sub Taget Hole
;===================================
sub targethole
; event SysMessage Target the hole
    display Hover mouse over Nest
    wait 3s
    set %lootx #cursorx
    set %looty #cursory
return
;======================================================
;  Sub Find Charmer Flute  and Snake
;======================================================
sub HuntEgg
UseFlute:
gosub TM_AdvJournalScan snake VALID _Someone_else_is_already_taming_this. ; where_it_was_instructed_to
  if #RESULT = #TRUE
   {
    event SysMessage SERPENT new one
    pause
    gosub TM_AdvJournalSync snake
    ignoreitem %snake
;   pause
   wait 6s
    goto UseFlute
   }
gosub TM_AdvJournalScan snake VALID the_nest_collapses Target_cannot_be_seen
  if #RESULT = #TRUE
   {
   event SysMessage perdu trou
   gosub TM_AdvJournalSync snake
;    pause
    gosub ignore
   Return  ;  go back to beginning to target a new hole
   }
;======================================================
; Goto Target Snake
;======================================================
FindSnake:
  finditem %snakes G_8
  set #ltargetid #findid
  set #ltargetkind 1
  set %snake #findid
  target
  event macro 22    ;  Last Target
  wait 5
  click %lootx %looty d
  wait 1s
gosub TM_AdvJournalScan snake VALID to_persuade_that_to_move moment_for_it_to_recharge
   if #RESULT = #TRUE
   {
   event SysMessage refuse de bouger
   gosub TM_AdvJournalSync snake
;    pause
   wait 6s
   goto UseFlute
   }
event SysMessage back to Flute
goto UseFlute
;======================================================
; Sub Ignore snake
;======================================================
sub ignore
  ignoreitem reset  ;Reset all snake
return
;=================================================================
; Script Name: TrailMyx's Advanced Journal Scanner
; Author: TrailMyx
; Version: 1.2


50
Scripting Chat / Help with Menu setup
« on: July 04, 2013, 09:20:07 PM »
I have this on menu to help me clean my backpack after Fishing and  hunting.   My question is there a way to get the menu to return to false after the pack is clean.   I'm trying to clean up a few of my snippet and learning menu at the same time.   


menu check packcheck 10 90 130 15 #false Clean Backpack

Quote
sub updatemenu
        menu get packcheck
        if #menures = #true
        {
           gosub packcheck
        }
return

Thx

51
Scripting Chat / System Variable
« on: June 27, 2013, 08:25:32 PM »
I have run into little problem because I uses the wrong variable sometime.   I'm trying to understand why.  I have read the tutorial and start cleaning and rebuild my old script.


1) finditem %itemA C_ , #BACKPACKID    ( this work every time)

2) finditem %itemA C_ , %BACKPACKID   ( this one to so good)

This work great for casting spell
Code: [Select]
checkHP:
if #hits < 120
{
    wait 20
    event macro 15 28 ; greather heal
    target 3s
    event macro 23 0
    goto checkPH
   }

this doesn't work
Code: [Select]
sub recallhome
    set %runebookID %book     ; book to recall home
    finditem %runebookID C_ , %backpackid
    set #ltargetID %runebookID
    set #ltargetkind 1
    wait 2s
    event macro 15 31  ; Recall Spell
    target 1s
    event macro 22 0  ; Last target
    wait 5s
Return


But if I do this, it work perfectly to recall of a book.   
Code: [Select]
sub recallhome
    set %runebookID %book     ; book to recall home
    finditem %runebookID C_ , %backpackid
    set #ltargetID %runebookID
    set #ltargetkind 1
    wait 2s
    event macro 15 31  ; Recall Spell
    wait 1s
    target
    event macro 22 0  ; Last target
    wait 5s
Return


So what the difference between those target wait.


and is this proper coding
Code: [Select]
sub unloadmainpack
repeat
finditem %leather C_ , #backpackid
    IF #findkind <> -1
       {
        exevent drag #findid #findstack
       exevent dropc %secure
        wait %lwait   ; 1s  wait
        }
     until #findkind = -1
Return

Thx

52
Scripting Chat / Troubling question
« on: June 25, 2013, 05:22:36 PM »
I have a few questions that I can't seen to find answer for. 

1) Why is the Crafting menu change location even if I'm not touching the mouse while running script.  It happen with s7BodFiller for example and some of mine.

2) sometime tool are still appear on screen ( in backpack) but if I refresh my backpack, the are gone. still cause script to assume that I still have tools.   I notice with this one, XIIxOveR's Cartography Trainer 3.0   Do ai required to DC the pack at regular interval. 

3) thx answer.

53
Script Debug / Scan Journal and Sysmsg
« on: February 13, 2013, 11:08:48 AM »
Been trying all morning to have this to work .   can't seen my mistake, so I'm sure one of you will point it out :)   thx     Right I remove the Scan and add a wait 25s to have it to work.  :)
 
Code: [Select]
sub SecretJournal
again:
for %1 %journalindex #jindex
{
   scanjournal %i
       if *_The_sand_collapses,_revealing_a_dark_hole._* in #Journal
               {
        return
        }
        if *_You_must_wait_a_while_before_planting_another_thorn._* in #Journal
       {
        goto plant
        }
else
 {
 goto again
 }
}


here is the sub part that is part of
Code: [Select]
; ---------  set up target self
wait %wait
set %ClickX #clixres / 2
set %ClickY ( #cliyres / 2 ) + 50
event macro 23 0  ;  Target self
wait %wait
;
;plant:
finditem GSF C_ , #backpackid
wait 5
if #findcnt = 0
{
  gosub bank
}
set #lobjectid #findid
event macro 17
wait 5
click %ClickX %ClickY f d
gosub SecretJournal
wait 25s
; looking for hole
finditem %hole G_3
set #lobjectid #findid
event macro 17 0
wait 1s

54
Resource Farming / Garden Bed Gathering
« on: February 13, 2013, 06:03:07 AM »
 Raised Garden Bed Gathering
Code: [Select]
;=======================================;
; Script Name: Raised Garden Bed Gathering
; Author: The Ghost
; Version: 1.25( Clipping)
; Shard OSI/FS: OSI
; Revision Date: 11 Oct 2013
; Publish : 13 Feb 1013
; Purpose: Gathering Seed and Resources form Raised Garden Bed
; Mods: By EN
; URL: http://www.scriptuo.com/index.php?topic=10887.0
;===========================================================
;===========================================================
; Warning:  All your plants need to be 100% mature
;                At the moment it doesn't check for maturity level.
;                

Since I wasn't able to find a simple script that will gather the resources from Raised Bed, so I put this together.   Since I only have 2 beds,  this is limited right now to only get seed and resources to your main pack.

 To-DO-List (Working in progress)
- want to add trash  option
- drop items into secure
- want to add option to replants

Warning:  All your plants need to be 100% mature  At the moment it doesn't check for maturity level.

Had to revert to version 1.25  -  work better with Human/elf and  Gargoyles Char.  
                                             -  No menu, just hit play.

Updated Ver 2.2 Beta   -  I have test this Ver. and it work better
                                   -  Fix a few typo mistake causing to loot
                                    - Add Clipping only. When you are done harvesting, just select clipping.
           Known problem
                                     - Still have problem with Harvest only,  Won't ignore the last plant harvested .
                                    - Still can't replant

Updated Ver. 2.0 Beta  - Rebuild the Menu with 2 modes. This should fix the problem of not                                             all the plants mature.
                                   - Remove the Replants option, wasn't fully tested.

Updated Ver. 1.3 :  Added a menu
                             Added a Replant Sub
                             Added all Plants Types  
Updated Ver. 1.1 (change goto to gosub)  Thx EN's

This is a beta release, so please post any feedback, bugs, etc.

55
Scripting Chat / target scanning
« on: January 18, 2013, 10:14:06 PM »
I has been looking around any can't seen to find an answer to my question. so Let see if you guy can shed some light.  I'm trying to have one my script to scan for a target range.    I use this often
findItem %monster G_2 . so I can kill animals  from range  1 to 12 tile.  Or if I step up G_12 I will kill anything in that radius.    thx

56
Crafting / Runic reforging Helper
« on: January 13, 2013, 08:59:26 AM »
This is a little helper to  reforged some items.   It did me good for some time now and it time to share with you guy and maybe  make it better.  
 
This is not an automated script and may required that you add some of the items that you required.

Code: [Select]
;=======================================;
; Script Name: Reforged Items           ;
; Author: The Ghost                         ;
; Version: 2.8                             ;
; Shard OSI/FS: OSI                     ;
; Revision Date: 23 Dec 2012            ;
; Purpose: Reforged    Smith, Tailor Flectching and Carpentry  ;
;================================================================
;


Code: [Select]
;Directions and script info!!!
; Make items that u want to reforged ur main pack.
; Have a salvage bag to salvage what you don't want to keep
; Have runic on your main pack and pre-selected the option.  this script only target and reforged.
; Script will move non-Exceptional and reforged items to salvage bag.


57
Script Debug / Using two different type of tools.
« on: February 21, 2012, 08:18:33 PM »
I have run into a little snag,  I'm able to craft an item using
Code: [Select]
finditem CGG C   ;  hammer
if #findkind = -1 2
display ok put more Hammer in your backpack and hit play
halt
set #lobjectid #findid
event macro 17 0

I have try to add a sub to make more hammer when I run out. If I use the same line of though can't seen to ignore the tinker menu.

I have play with those set up
Code: [Select]
finditem CGG C   ;  Hammer
if #findkind = -1 2
gosub makehammer
set %hammer #findid
set #LOBJECTID %hammer
event macro 17 0

This is a script that I use to craft multiple items. it will run better if I didn't have to make crafting tool all the time.
thx for help

58
Script Debug / Rare Serpent Egg "Medusa"
« on: November 06, 2011, 08:23:35 PM »
I have been working on a script to help me collect egg for Medusa.  for some reason,  my " event SysMessage Target your Hold " work find and other time it just get stuck in a loop.  I wrote this to remove s few clicking.  The only think I required to target is the Nest hold.  Can you guy have a look at this Plx and provide any feedback.

Code: [Select]


set %nest PBN
set %flute RGP   ; Charmer Flute
set %snakes QE_JD_FB
; *********************************
start:
event SysMessage Target your Hold
  set #targcurs 1
  while #targcurs = 1
   wait
  set %nest #ltargetid


    if #findkind = -1
    goto start


; **************************************
flute:
finditem RGP C_ , #Backpackid
set #lobjectID #findID
set #ltargetkind 1
  wait 5
  event macro 17
  wait 5
; ***********************************
repeat
finditem %snakes G_8
if #findkind = -1
until #charghost = yes
{
    wait 1s
    set %snake #findid
    wait 1s
    set #ltargetid #findid
    set #ltargetkind 1
    event macro 22
}
ignoreitem %snakes

;halt

; *************************************
; repeat
; finditem %nest G_4
; if #findkind <> -1
; until #charghost = yes
{
    wait 1s
    set %nest #findid
    set #ltargetid #findid
    set #ltargetkind 2
    event macro 22
    wait 10
}
{
       scanjournal %i
       if You_don't_seem_to_be_able_to_persuade_that_to_move. in #journal || Someone_else_is_already_taming_this. in #journal || The_animal_walks_where_it_was_instructed_to.
       {
          goto flute
           }
}
goto start

  

59
Scripting Chat / Trageting ground for spell
« on: October 25, 2011, 11:57:34 PM »
While i cast EV's i need to target the ground,  I'm using the click xxxx yyy, for now,  but if a corpse and anything is on the way, I can't cast.  Here what I have so far can anyone help  thx

This is what I 'm using right now
Code: [Select]
 
if #followers < 5
goto cast

if #followers = 5
gosub invisible
gosub cure
goto scan

cast:
{
event macro 15 57  ; EV's
click 450 370
wait 1s
}
goto scan 

Here what  I'm attempting to do and going  nowhere.    I just what to be able to walk in and cast a few title from myself.
Code: [Select]

sub cast
set %tx #charposx
set %ty #charposy
event macro 15 57
target 3s
set %tx #findx -2
set %ty #findy -2
set #LTargetx %tx
set #LTargety %ty
set #LTargetKind 2
event macro 22
wait 20
return




60
Scripting Chat / Ship Movement
« on: October 07, 2011, 01:30:56 PM »
Is there a way to move ship to a x and y spot like you do on land using the move command or pathfinding ?

Pages: 1 2 3 [4] 5