Author Topic: My first script is 1/2 done!!  (Read 6811 times)

0 Members and 1 Guest are viewing this topic.

Offline PillerTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +65
  • Referrals: 1
    • View Profile
My first script is 1/2 done!!
« on: April 08, 2023, 03:26:46 PM »
+1
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.

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3084
  • Activity:
    2.6%
  • Reputation Power: 42
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +566
  • Referrals: 2
    • View Profile
Re: My first script is 1/2 done!!
« Reply #1 on: April 09, 2023, 06:55:46 AM »
+1
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!

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 823
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +351
  • Referrals: 4
    • View Profile
Re: My first script is 1/2 done!!
« Reply #2 on: April 09, 2023, 03:30:37 PM »
+1
Congrats! Keep it up!
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline PillerTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +65
  • Referrals: 1
    • View Profile
Re: My first script is 1/2 done!!
« Reply #3 on: April 09, 2023, 03:31:34 PM »
+1
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

Offline PillerTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • Piller has no influence.
  • Respect: +65
  • Referrals: 1
    • View Profile
Re: My first script is 1/2 done!!
« Reply #4 on: April 09, 2023, 03:32:40 PM »
-1
Congrats! Keep it up!

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

Tags: