ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: gruntman on June 29, 2016, 08:53:07 PM

Title: assistance with occurrence I cannot overcome
Post by: gruntman on June 29, 2016, 08:53:07 PM
I made a menu with a couple button that work with healing myself as well as a few defensive spells.  I have been to many areas and have had no issue with the buttons working until now. I enter the gate into tyballs area and hit my Natures Fury or my EV button and i constantly keep getting the cannot be seen message. I have tried adjusting the target kind but that does not seem to be the issue. Can anyone point me in the direction i should be looking.  Thank you!!

Gruntman
Title: Re: assistance with occurrence I cannot overcome
Post by: The Ghost on June 30, 2016, 04:30:52 AM
hehe   I have the same isssue,   it seen that you can't use the #CHARPOS as target.   U can try to target the ground and record the location. 
Title: Re: assistance with occurrence I cannot overcome
Post by: gruntman on June 30, 2016, 06:11:10 PM
hehe   I have the same isssue,   it seen that you can't use the #CHARPOS as target.   U can try to target the ground and record the location. 
Ghost,

Thanks for your response! I am rather new to writing my own script and well could you give me an idea on how to do what you suggested please.
Title: Re: assistance with occurrence I cannot overcome
Post by: The Ghost on June 30, 2016, 08:49:18 PM
short text before bed :) 

try to play around this .    no idea if that will work.
Code: [Select]
display ok Please click ok and move cursor over your loot bag $ and hold it there, you have 2 seconds to do so $
wait 1s
set %targetx #cursorx
set %targety #cursory
display ok Please click ok to start the script $

sub Summon
  event macro 15 57 ; energy vortex
  target 4s

  set #LTARGETX %targetx
  set #LTARGETY %targety
  set #LTARGETKIND 2
 ;  event macro 22 0
    click %targetx %targety p
 
return

Title: Re: assistance with occurrence I cannot overcome
Post by: gruntman on June 30, 2016, 10:17:15 PM
set #LTARGETKIND 3 worked but only when on the blue tile area.....hrm
Title: Re: assistance with occurrence I cannot overcome
Post by: The Ghost on July 01, 2016, 05:11:04 AM
I just test that one and it work.

Had to dust this one of the closet last night and polish it a bit.    Here my first snippet as a Elite. 

Code: [Select]
display ok Please click ok and move cursor over your casting location $ and hold it there, you have 2 seconds to do so $
wait 1s
set %targetx #cursorx
set %targety #cursory
display ok Please click ok to start the script $

repeat
  if #FOLLOWERS < 5
    gosub Summon
until #FALSE

sub Summon

  event macro 15 57
  target 5s
  set #LTARGETKIND 2
  set #LTARGETX %targetx
  set #LTARGETY %targety
  click %targetx %targety d
  wait 40
return
Title: Re: assistance with occurrence I cannot overcome
Post by: gruntman on July 01, 2016, 10:38:49 AM
Thanks Ghost for your help!
Yes it works!!
only issue I have is the way everything is setup the target cursor popping up gets taken away by other parts of the script....ugh lol
Title: Re: assistance with occurrence I cannot overcome
Post by: The Ghost on July 01, 2016, 03:20:22 PM
I give you the fish.   Now it up to you to cook it :)   

I add the display so you can see what going on,  you can removed them and add  a wait or a event system msg. 
Title: Re: assistance with occurrence I cannot overcome
Post by: gruntman on July 01, 2016, 04:57:39 PM
I get it!! hope I do not burn it!!
lol
Title: Re: assistance with occurrence I cannot overcome
Post by: Endless Night on August 20, 2016, 07:55:51 AM

only issue I have is the way everything is setup the target cursor popping up gets taken away by other parts of the script....ugh lol

instead of
Code: [Select]
display ok Please click ok and move cursor over your casting location $ and hold it there, you have 2 seconds to do so $
wait 1s
set %targetx #cursorx
set %targety #cursory
display ok Please click ok to start the script $

try
Code: [Select]
display ok Please click ok and move cursor over your casting location $ and click the spot$
  set #targcurs 1
  while #targcurs = 1
    wait 1
set %targetx #cursorx
set %targety #cursory