ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Piller on April 08, 2023, 03:26:46 PM

Title: My first script is 1/2 done!!
Post by: Piller on April 08, 2023, 03:26:46 PM
Pleas be kind this is my first script but please be honest also. I am pretty stocked I got this far  :D

Goal is to have an archer sit in war mode. Plant a thorn every 3 min. (this works)
Have the archer auto attack other rabbits from other peoples thorns (this needs done)

Code: [Select]
;=================================================================
; Script Name: You can do it!
; Author: Piller
; Version: 1
; Shard OSI
; Revision Date: 4/8/2023
; Purpose: Plant a thorn and attack others rabbits
;=================================================================

;Let to do: Add attack any bunny in range


Main_Loop:
finditem GSF C_ , #backpackid
wait 5
set #lobjectid #findid
event macro 17
wait 5
event macro 23 0
wait 190s
goto Main_Loop

im am going to start reading on auto attack, I will update as I learn. If anyone wants to drop hits or help out that would be cool to.
Title: Re: My first script is 1/2 done!!
Post by: Crisis on April 09, 2023, 06:55:46 AM
I would get the id of the rabbits and you can use attack nearest, hope this helps a little. Keep it up, this is the best way to learn!
Title: Re: My first script is 1/2 done!!
Post by: Neo on April 09, 2023, 03:30:37 PM
Congrats! Keep it up!
Title: Re: My first script is 1/2 done!!
Post by: Piller on April 09, 2023, 03:31:34 PM
I was looking @ event macro 27 (attack nearest enemy) seeing while farming eggs there are no other enemy's around. I will get the id and start to play with that. I had to take a break I was getting frustrated on the 100 things i tried that didn't work. This does give me another direction to go, I will keep at it and post results.
TY TY TY
Title: Re: My first script is 1/2 done!!
Post by: Piller on April 09, 2023, 03:32:40 PM
Congrats! Keep it up!

Thanks mentor! Did you see my use of target self, cant believe that worked but it does.