Official ScriptUO EasyUO Scripts > Script Debug

My first script is 1/2 done!!

(1/1)

Piller:
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: ---;=================================================================
; 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
--- End code ---

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.

Crisis:
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!

Neo:
Congrats! Keep it up!

Piller:
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

Piller:

--- Quote from: Neo on April 09, 2023, 03:30:37 PM ---Congrats! Keep it up!

--- End quote ---

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

Navigation

[0] Message Index

Go to full version