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.


Messages - tonysonoma

Pages: [1]
1
New member introductions / Re: Hello
« on: May 28, 2018, 11:23:49 PM »
Welcome Lkatana good to see you around haven't seen you online in awhile.

2
Gold Farming / Re: Auto Honor and Attack
« on: May 27, 2018, 11:30:07 PM »
Great script! I end up coming back to this one over and over and even often use it when training a new character. Well with a looter of course. In fact this one lead me to the uoXL swap bot which taught me ton.

3
Hey guys long time lurker.  I am looking for some help with a recent mini project.

Goals for script
1. work onhotkey
2. Attack found target
3. Attack nearest arget
4. attack targets based upon being Red, orange, blue (non-npc), Grey, not guilded
5. cycle through available targets

I have pieced together a start but could use some direction. Thanks

Code: [Select]
;===========================================================================;
; Script Name: On hotkey attack targets based upon rep guild and distance   ;
; Author: Tony                                                              ;
; Version: 1.01                                                             ;
; Shard OSI/FS: OSI                                                         ;
; Revision Date: 05/22/2018                                                 ;
; Purpose: Attack nearest character that is blue, grey, orange, or red.     ;
; while not attacking NPCs or guild mates                                   ;
; Attributions: Based on a part of JaF's Player alert script.               ;
;===========================================================================;
;=========USER VARIABLE SETUP==========;

set %hotkey 1 ; hotkey to attack
set %modifierkey ctrl ; hotkey modifier change to one of the following : ctrl shift alt
set %guild STI ; set guilds you dont want to attack
set %guild2 GE ; set another guild you dont want to attack

;=====Variable Setup======;
set #lpc 200
set %AllForms IS_HS_OCB_NCB_XU_AV_SH_SC_EH_VD_EG_JG_BB_JD_HG_RF_WG_NF_FN_HN_GN_IN_LAB_MAB_SAB_NN_OGB_OAB_QAB_PAB_RAB_;%HumanForm , %ElfForm , %NinjaForm , %TalismanForm , %NecoForm , %SpellWeavingForm , %SavagePaintForm , %GargForm

;=============MAIN===========;
while #true
  onhotkey %hotkey %modifierkey
    {
      gosub findNextTarget
    }
 
;===========SUBS=============;
;===sub findNextTarget===;
sub findNextTarget
set %searchradius 10
for %searchradius 1 10
  {
    finditem %AllForms G_12 , %searchradius
    if #findcnt <> -1
      {
        for %i 1 #findCnt
          {
            set #findIndex %i
            if ( #findRep = 1 || #findrep = 4 || #findrep = 5 || #findrep = 6 ) && ( #findId <> #charID )
              {
                event property #findid
                wait 10
                  if guard in #property || healer in #property || quest in #property || priest in #property || mondain in #property || merchant in #property || gypsy in #property || sailor in #property || sculptor in #property || Pillar in #property || Stone in #property || sewer in #property || noble in #property
                    {
                      ignoreitem #findid  npcs
                    }
                  if %guild in #property || %guildTwo in #property
                    {
                      ignoreitem #findid guilds
                     
                    }
                  break
              }
          }
        gosub attack
      }
  }

;===sub attack===;   
sub attack
set #LTargetID #Findid
set #ltargetkind 1
event macro 27 0  ; mount
wait 20
return

4
New member introductions / Hello All
« on: July 17, 2016, 04:34:24 PM »
Hi everyone!

If you couldn't guess by my name "tonysonoma" I originally started playing UO in 2001 on Sonoma.

I recently got the bug to come back and have some fun with some old friends. I have been enjoying the changes as the last time I quit was before Stygian Abyss.

Of course with the new changes comes lots of new stuff. I actually found this site after looking up posts on how to reforge for luck. It seems there is a lively community here that is actually active. I look forward to contributing where I can.

I am currently training a few new characters as I sold my old accounts the last time I quit.
Nox Parry mage
Sampire
Bard
Crafter

As for scripting I am still on the learning curve :P

Tony

Pages: [1]