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 - noonehome

Pages: [1] 2
1
Script Debug / Move With Pet Help
« on: July 07, 2009, 07:16:01 AM »
i was wondering if someone could help me fix a issue im having... i think im going about it too complicated so feel free to give me ideas for easier ways... the problem im having is that on the option 6 the dragon halfling i want to make sure my player char stays with my pet to keep it healed while its fighting but i want to make sure i always keep the pet between me and the monster so the monster doesnt switch targets... would someone mind looking over the code and tell me where ive went wrong... btw this is a afk monstertargetter that uses pets to kill... the shard i play on we have pets that do not need to be fed and thus i didnt include any pet feeding subs i also use outside healing for the pet so just needed this script to stay close to the pet when said monster is in the area

Code: [Select]
set %corpse YFM

Begin:
gosub petsetup
gosub menuinit
;ignoreitem reset
set #menubutton N/A
menu delete EUOLabel3
menu text EUOLabel3 85 148 Status: Paused                   


hotkeyloop:
if #menubutton = Start
goto Start
goto hotkeyloop

Start:

menu set EUOLabel3 Status: Working...   

gosub monsterpick
gosub moveback
gosub findtarget

if #Menubutton = Pause1
menu set EUOLabel3 Status: Paused
goto HotKeyLoop


sub petsetup
display Target Your Pet
  wait 1
  set #targcurs 1
  target
  while #targcurs = 1
    wait 0
  set %petid #ltargetid
  set %pettype #findtype
  wait 5
return
sub moveback
move %startx %starty 0
return

sub findtarget
if #menures != 6
{
finditem %monster G_8
}
else {
finditem %monster G_25
}
if #findkind > -1
{
if #menures = 6
{
event Property #findid
if Halfling notin #property
{
ignoreitem #findid
gosub findtarget
}
}
if #findid = UCSE
{
ignoreitem #findid
gosub findtarget
}
set #ltargetid #findid
if %music = 1
{
gosub discordswoop
gosub peace
}
;ignoreitem reset
msg all kill $
target 5s
event macro 22 0
wait 10s
time:
if #menures != 6
{
finditem %monster G_8
} else {
finditem %monster G_25
}
if #findkind > -1
{
if %healpet = 1
{
gosub followpet
}
if %music = 1
{
gosub peaceagain
}
goto time
}

gosub findcorpse  ;use if looting corpse
}
;goto start
return


sub followpet
;ignoreitem reset
finditem %pettype G_25
if #findid = %petid
{
set %petx #findx
set %pety #findy

finditem %monster G_25
event Property #findid
if Halfling notin #property
{
ignoreitem #findid
goto time
}
set %monsterx #findx
set %monstery #findy

if %petx >= %monsterx
{
set %stepx %petx + 1
}
if %petx =< %monsterx
{
set %stepx %petx - 1
}
if %pety >= %monstery
{
set %stepy %pety + 1
}
if %pety =< %monstery
{
set %stepy %pety - 1
}
if ( ( ( #charposx = %petx + 2 ) || ( #charposx = %petx - 2 ) || ( #charposy = %pety - 2 ) || ( #charposy = %pety + 2 ) && ( ( #charposx >= %monsterx + 1 ) || ( #charposx <= %monsterx - 1 ) || ( #charposy >= %monstery + 1 ) || ( #charposy <= %monstery - 1 ) ) )
{
goto time
}
;event pathfind %stepx %stepy 0
move %stepx %stepy 0
}
goto time
;ignoreitem reset
return

sub findcorpse

redo:
finditem %corpse G_12
if #findkind = -1
{
goto time
}
if #findkind > -1
{
msg all guard me $
wait 2s
ignoreitem #findid
set %corpsex #findx
set %corpsey #findy
move %corpsex %corpsey 0

if %loot = 1
{
wait 20s
}
gosub moveback
goto redo
}
return

sub peaceagain
event macro 13 9
target 5s
event macro 22 0
return

sub peace
event macro 13 9
target 5s
event macro 22 0
wait 10
scanjournal 1
if You_play_hypnotic notin #journal
{

wait 10s
gosub peace
}

wait 10

return

sub discordswoop
event macro 13 15
target 5s
event macro 22 0
wait 2s
return


sub monsterpick

menu get combo

if #menures = 1  ;Swoops in Twisted Weald
{
Set %startx 2225
Set %starty 1222
Set %music 1
set %loot 1
set %healpet 0
Set %monster TC
;Set %distance 8
return
}

if #menures = 2 ;Daemons in Wind NorthWest of Exit
{
Set %startx 5131
Set %starty 158
Set %music 0
set %loot 1
set %healpet 0
;Set %distance 12
Set %monster FD
return
}

if #menures = 3 ;Daemons in Wind South of Bank
{
Set %startx 5307
Set %starty 139
Set %music 0
Set %monster FD
set %healpet 0
set %loot 1
;Set %distance 12
return
}

if #menures = 4 ;BloodElementals in Shame Lvl 4
{
Set %startx 5720
Set %starty 11
Set %music 0
Set %monster RI
set %healpet 0
set %loot 1
;Set %distance 12
return
}
if #menures = 5
{
return
}
if #menures = 6 ; Dragon Halfling Laz Lair End Room
{
set %startx 6113
set %starty 359
set %monster XU_AV_GJ
set %music 0
set %healpet 1
;set %pettype CE
;set %petid KZMB
set %loot 0
return
}

;--------- EasyUO Menu Designer Code Begin ---------
sub menuinit
  menu Clear
  menu Window Title DuckFarm v1.0
  menu Window Color Black
  menu Window Size 230 170
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Size 8
  menu Font Style
  menu Font Color Red
  menu Font Transparent #false
  menu Font Align Left
  menu Font BGColor Black
  menu Text EUOLabel1 60 34 Monster to farm
  menu Font Size 9
  menu Font Size 8
  menu Font Color WindowText
  menu Font BGColor Window
  menu Combo Create combo 10 10 210
  menu Combo Add combo Swoops(TwistedWeald)Disco&Peace REQ
  menu Combo Add combo Daemons(Wind NW of Exit)
  menu Combo Add combo Daemons(Wind S of Bank)
  menu Combo Add combo Blood Elementals(Shame 4th LvL)
  menu Combo Add combo Covetous Harpy PlaceHolder
  menu Combo Add combo Dragon Halfling(Lazlair End)
  menu Font BGColor BtnFace
  menu Button Start 64 70 109 25 Start!
  menu Button Pause1 10 140 50 25 Pause
  menu Font BGColor Black
  menu Font Color White
  menu Font Align Center
  menu Show 800 10
return
;--------- EasyUO Menu Designer Code End ---------

2
Off Topic / Re: So who missed me???
« on: March 12, 2009, 09:56:20 AM »
the moose is on the loose long live the moose!

3
Off Topic / Re: I think I'm gonna become a "Moat Person"
« on: February 26, 2009, 02:31:26 PM »
there is a world outside of my walls? who would have thunk it

4
Cool Links! / Re: Visual Tracert tool.
« on: February 18, 2009, 03:53:22 AM »
ive got 17 hops host and 33 hops proxy and it bounces around between east coast and west coast about 5 or 6 times on both what on earth were they thinking


actual results:

Host 19 Hops / 2.0 seconds / 2,856 miles
Proxy 36 Hops / 16.9 seconds / 6,092 miles


my route keeps changing so results may vary i guess


5
Site News / Re: Site slowness
« on: February 17, 2009, 03:39:14 AM »
yea same here i thought it was on my side hehe

6
New member introductions / Re: Hail Thee!
« on: February 17, 2009, 03:38:27 AM »
welcome to the land of scripting

7
New member introductions / Re: HALLO
« on: February 16, 2009, 08:56:12 AM »
huh?

8
New member introductions / Re: Hail and well met
« on: February 12, 2009, 07:23:40 AM »
scriptuo isnt a easyuo clone... script uo has alot of nice features that easyuo doesnt...

9
i heard they made windows 7 everything vista was supposed to be... glad to see they finally got something right... now if only they offer a free or inexpensive upgrade for us vista users

10
Television/Movies / Re: Anyone else a fan of Red Dwarf?
« on: February 05, 2009, 02:35:40 PM »
whooooo lives in a pineapple under the sea spongebob ftw! me and my daughter watch spongebob every weekend all weekend long :)

11
General UO Chat / Re: Who else does things like this?
« on: February 04, 2009, 09:17:11 AM »
i do alot of my scripting while im at work now days so i am unable to use scriptuo usually :) but yea autosave would save alot of time sometimes hehe

12
General UO Chat / Re: Who else does things like this?
« on: February 04, 2009, 05:13:57 AM »
ive done that before but i was updating windows at the time and it asked to restart and i forgot i hadnt saved :)

13
Off Topic / Re: Guns
« on: January 26, 2009, 03:19:09 PM »
yea? u know the piece of plastic that is issued by the dmv that keeps the police from arresting u for carrying a handgun :) altho completely stupid to need one but id rather take the time to go thru the course and get the permit than to go thru the court system and get probation or fines or jail time

14
Off Topic / Re: Just because I'm an ass.... :)
« on: January 26, 2009, 01:20:59 PM »
my eyes my eyes and ears they are melting melting!

15
Off Topic / Re: Money isn't everything...
« on: January 26, 2009, 12:34:08 PM »
money might not be everything but its a start  ;)

Pages: [1] 2