Author Topic: crameeps - AutoKill Script  (Read 78807 times)

0 Members and 1 Guest are viewing this topic.

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
crameeps - AutoKill Script
« on: March 03, 2009, 02:44:29 PM »
0
WARNING: This script is not a "finished" script. It does work for what I use it for and I will be activly adding new features and supporting this script the best that I can. (And if I can't I hope for a little help from the masters).

What it does:

It searches for an enemy in range, if your too close the script "Atempts" to move to a safe distance. It then tells your pet to kill that enemy and starts poisoning/peacing it accordingly( if you have those turned on.) Once the enemy is dead the script moves to the corpse loots and loots only the gold. (Gold Farming) Once you start getting heavy the script calculates how much gold it should pick up so it doesn't put you overweight. once you are full it then finds a bag of sending in your pack (pack must be open) and sends the gold to the bank. Rince and repeat. If you do happen to get attacked. the script.. "atempts" to heal you and i plan to improve on the way it defends you though suggestions tips/help would be greatly appretiated on this subject. It doesn't realy defend well yet so I recomend only using it at a spot where you dont get randomly atacked by monsters, IE swoops, meers etc.

Features:

- Auto find/Attack enemys with pet
- Auto Poison's Enemy in a timeframe you define on the menu
- Auto Peace's Enemy in a timeframe you define on the menu
- Choose to attack or ignore Paragon spawns via menu
- Attempts to put a safe distance between you and the enemy before attacking.
- Attempts to heal you while you are taking damage ( Work in progress)
- Moves to corpses and loots gold from them when there are no enemy's present.
- Uses bag of sending to send gold to bank when you are full.
- Change casting timers via menu


Coming soon:
- Start/Exit buttons that work!
- Auto Disco
- Better support for Mages with pets (Earth elly's are popular on my FS)
- Better casting features for extra DPS. eg) Menu to choose what spell to cast for damage?
- Improve Healing methods when taking damage
- Add pet healing
- Feed pets
- Move into mele range to attack after pet takes aggro.
- Improve Targeting ( If you mess around without pausing the script you could end up poisoning yourself I guess. :) hasn't happend to me though.
- More I can't think of atm

To start, dismount, I usualy move to open area where i can see multiple spawns ( That dont attack me automaticaly). With no walls around to block movement too much. Target your pet when it asks and let her rip. If you find yourself in danger. I would pause the script fast.

Warning: PAUSE BUTTON WILL NOT PAUSE WHILE HEALING/ATACKING/Looting. It only checks the pause button during the mainloop at the moment. So please bear with me on that.

Thanks to Cerv's Pause button snippet there is a pause button.

EDIT:
** I need to add headers to this script when I get home and versions. ... no header = version 0.1 :)

3/4/09
EDIT: I've now added a sub that checks the health bar of your pet and heals it at a point you set in the script, IE if you set it at 80 the script will start healing your pet at 80% health until he is above 80% health. I will upload this later this evening after a little more testing.  NEW VERSION UPLOADED PLEASE REDOWNLOAD




There are 5 attachment(s) in this post. You must register and post an acceptable introduction to download
New Autokill.jpg
Swoops.jpg
TamersDelight - TEST.txt
TamersDelight.txt
wheedog.rar
« Last Edit: April 18, 2020, 09:16:14 AM by crameep »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: crameeps - Tamer/Pet Auto Kill
« Reply #1 on: March 03, 2009, 02:51:50 PM »
0
Cool, thanks for this.  You mentioned freeshard, but would there be anything preventing a player from using this on an OSI shard?  I can't tell from the autokill list what you were farming.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #2 on: March 03, 2009, 04:14:01 PM »
0
Swoops / Meers with a cu sidhe.I dont see why OSI and freeshard should differ, ill post ss of menu later, you can change enemy types on the fly. :) this is my first menu BTW. Oh i ran it trough the script checker in suo eariler. And it gave me an error about nested sub without return but i couldn't find the error, ill recheck it when i get home.
« Last Edit: March 03, 2009, 04:18:49 PM by crameep »

Offline mack.buter

  • Newbie
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 0
  • mack.buter has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #3 on: March 03, 2009, 06:09:39 PM »
0
I tried this out worked super from what i saw.  Farmed about 350k while nonchalantly paying attention, cu sidhe worked great was healing me while i was fighting the swoops as well as spam casting heal on myself untill he got aggro.  This is pretty awesome, and decently well thought out.  Look forward to the finished script!!

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #4 on: March 06, 2009, 02:53:06 AM »
0
Uploaded new version

- Beter atacking method, attempts to peace before sending pet. This should improve survivability.
- Better Looting, it will now move to new corpses after a kill instead of only when enemy is not around. ( Should i make this optional)?
- Pet Healing new variable in the setup of the file %petheal set this to the % of health you want your pet to be healed to/at. The health bar must remain where the script puts it and uncovered or this will not work.
- other tweaks / improvments I needn't mention.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #5 on: March 06, 2009, 07:09:33 AM »
0
I'm pretty sure I don't have this sound wheedog.wav  ;D

Looking through the script, looks structurally sound, well laid out... one thing:

*** Warning - GOTO findcorpse - Line 168 has no matching tag

I assume you meant GOSUB findcorpse there.

I may play with this a little later, give ya some feedback.

*Oh, one thing I like to do, and this is my personal preference... if I use a loop inside a sub, I like to name it with an underscore. It makes it stand out more.

Code: [Select]
sub findenemy
  set %status Searching
  gosub updatestatus
  menu get monsterbox
  set %monster #menures
findloop:
  finditem %monster G_12
  set %movex #findx + 5
  set %movey #findy - 5
  if #findKind = -1

Code: [Select]
sub findenemy
  set %status Searching
  gosub updatestatus
  menu get monsterbox
  set %monster #menures
_findenemyloop:
  finditem %monster G_12
  set %movex #findx + 5
  set %movey #findy - 5
  if #findKind = -1

But like I said, thats my preference for keeping the code straight in my limited b/w head.
« Last Edit: March 06, 2009, 07:16:23 AM by Cerveza »
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: crameeps - Tamer/Pet Auto Kill
« Reply #6 on: March 06, 2009, 11:02:25 AM »
0
I'm pretty sure I don't have this sound wheedog.wav  ;D


Ohh, someones gotta post that!  I'm hoping it's in a high-pitched Kentucky-moonshine powered yell!

Please read the ScriptUO site RULES
Come play RIFT with me!

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #7 on: March 06, 2009, 11:05:46 AM »
0
:) ill post that later :) little death warning.
Thanks for the feedback thus far as well, thats a great idea with loops inside of subs. :)
« Last Edit: March 06, 2009, 11:11:18 AM by crameep »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: crameeps - Tamer/Pet Auto Kill
« Reply #8 on: March 06, 2009, 11:14:09 AM »
0
Using SUO for your initial script development helps keep that straight too.  Sometimes there's just not enough contrast between variables and labels.  Cerveza's suggestion is a good one.  If you haven't used the Syntax Checker in SUO yet, you might want to give that a whirl.  It'll really help you find missing tags and misspelled items.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #9 on: March 06, 2009, 11:24:43 AM »
0
I have used it, just not in the last verision posted , i posted it from work ;/

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #10 on: March 07, 2009, 02:11:05 AM »
0
Theres the wave file, Enjoy.

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - Tamer/Pet Auto Kill
« Reply #11 on: March 14, 2009, 09:20:08 AM »
0
Hey, I'm working on adding your advanced filesystem script subs into this TrailMyx, any sugestions on the easiest way to go about this. My first thought is to make a sub to grab all the menu settings and store them into variables. Then store said variables using your filesystem script.

EDIT:

I'm playing around using the method I described above, but no files is actualy being saved period, I'm only trying 2 variables here, but it should be the general idea i suppose.

sub savesettings
gosub getsettings
gosub TM_FileSystem_CreateFileHandle NULL settings_handle
gosub TM_FileSystem_SaveVariable NULL local std settings_handle spoisontimer
gosub TM_FileSystem_SaveVariable NULL local std settings_handle loot  ; clear handle named 'handle1'
gosub TM_FileSystem_SaveFile NULL settings_handle tamersdelightsettings.txt ; save the file
return

am I correct in assuming  i leave the % off?

EDIT:

Got it working, script now officialy uses TM's filesystem subs :)
« Last Edit: March 14, 2009, 10:24:18 AM by crameep »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: crameeps - Tamer/Pet Auto Kill
« Reply #12 on: March 14, 2009, 12:46:16 PM »
0
Kewl beans.  Probably the nicest thing about these subs is that once you are done loading your variables back from the file, those variables are already loaded into memory for you; there's not subsequent step from that.

But glad you got it working!

BTW, love the wheedoggy!.  I didn't imaging it was from the Beverly Hillbillies.  Even better.
« Last Edit: March 14, 2009, 12:50:43 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Outkome

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 0
  • Outkome has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: crameeps - AutoKill Script
« Reply #13 on: March 28, 2009, 09:30:40 AM »
0
Thanks for posting this script. Been using it for the past hour no problems  :)

Offline crameepTopic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 0
  • crameep has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: crameeps - AutoKill Script
« Reply #14 on: March 28, 2009, 12:56:08 PM »
0
Thanks! glad to see someone else using it. I cant wait to get the new version working better, im going to try TM's spell subs in it to see if it helps on some issues i've been having.

Tags: