ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => UOMaddogs' Script Library => Topic started by: UOMaddog on August 28, 2009, 05:47:56 PM

Title: Maddog's Demon Killer (w/ Honor option)
Post by: UOMaddog on August 28, 2009, 05:47:56 PM
PURPOSE:
Used to kill Demons (or other user-defined monsters) with archery/throwing or melee skill with or without Honoring. Does not include healing!


INSTRUCTIONS:
- You must be using either a bow, throwing, or melee weapon to kill the demons(monsters)
- Script will ask if you wish to use honor or not
- This script does not heal your player. If using Honor, this is usually not an issue. You can run a separate healing script alongside this one. It should not interfere if you're not using honor


VERSION HISTORY:
Version 1.2 - UPDATED 05-02-2013 @ 4:30PM
- Fixed issue where script stopped after one iteration due to #clilogged look for 1 instead of 0
Version 1.1 - UPDATED 08-30-2009 @ 8:38PM
- Fixed issue with attempting to honor creature out of range
- Script will now pause if you're dead and resume within 2 seconds once you're rez'd
Version 1.0
- Initial script release
- Option for Honoring
- User may change %monster to creature type they want to kill, default is Demons
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: Bookwyrm on August 28, 2009, 05:53:10 PM
Ok... the avatar is just mean. :'(
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: UOMaddog on August 28, 2009, 06:01:52 PM
LoL I do have the good version that isn't quite so frustrating, but sadly it's NSFW so I won't post it without permission from TM or Cerv. I could however LINK to it if they allow me to!
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: onlyindreams on August 28, 2009, 09:00:23 PM
Ok... the avatar is just mean. :'(

Yes it is! I still stare and wait lol.... Maybe TM could start up a NSFW section, nothing too crazy though.
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: UOMaddog on August 28, 2009, 09:06:57 PM
LoL...Imagine logging in every day and that's in the top left corner of my screen next to the shoutbox (that's where your personal avatar shows up for you). And no, we're trying to keep this a semi-family-friendly site, so there will be no NSFW section. Now let's try to keep this thread related to Demon killing!! hehe
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: Toptwo on August 28, 2009, 09:50:31 PM
Demon killing hell.....lets talk avatars!!!!
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: Noobie on August 28, 2009, 09:53:10 PM
I think that TM and Toptwo are running a close race for the best avatars.
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: Cerveza on August 29, 2009, 04:10:17 AM
Honor only works out to 8 squares. You'll try to honor a LOT of Demons but you'll get the message and miss.
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: rana70 on August 29, 2009, 05:07:12 AM
Hi,

I agree with Cerveza and ... about the honor distance 8 is max.

What do you think about this:
stop the script when the char turns into a ghost ...
and not when you got logged out ... ?

cu
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: UOMaddog on August 29, 2009, 11:17:10 AM
Thanks for the input. I actually did have the 8 tile thing in the script but it got "lost in translation" when I made a new file with all the nice pretty Header/Instructions/VersionHistory. Stupid me thought I was consolidating code, when in fact I was brain sharting. I will update it this afternoon!
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: Cerveza on August 29, 2009, 11:37:35 AM
A nice little mainloop I use:

Code: [Select]
SUO:
repeat

; all the mainloop stuff goes here

until #CharGhost = YES
while #CharGhost = YES
  wait 0
GoTo SUO

Only one goto and it's only called if you die.
Title: Re: Maddog Demon Killer (w/ Honor option)
Post by: UOMaddog on August 29, 2009, 11:44:23 AM
Yea in standard scripts I like to use:

Code: [Select]
repeat
   repeat
      ;Insert main loop
   until ( #clilogged = 1 ) || (#charghost = YES )
   while #charghost = YES
      wait 0
until #clilogged = 1
;Halt OR Re-log script call

That way you handle both the ghost issue AND the client logging issue. I'm really not sure why I didn't use it in this one, possibly because it was late when I finally got around to posting all of these scripts....oh...and the boobs!

I really hate using Goto's simply because I feel they might be part of the memory leak issues that cause EUO to occassionally crash. I could be wrong, but just in my experience with normal coding, Goto's can cause all kinds of odd quirks, especially if called within Subs
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: roadrunner on May 02, 2013, 08:20:04 AM
Ok Maddog, i am currently playing a sampire almost fanatically and saw your header and had to try it. i went in & changed 'FD' (Demons) to 'ME' (Balrons) at very top, but i didn't change anything else. i click start and it asks if i want to use honor, i click yes, and it insta- honors the 1st balron. after that it goes quiet. does this script not 'loop' so i can walk  around the spawn area as it honors them as they spawn & i kill/ loot?  i would really love for it to be able to do that as i have to raise honor about once a week and balrons do it extremely quick & profitable :)
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: UOMaddog on May 02, 2013, 12:27:52 PM
Haven't look at this one in sooo long, but I realized I got the #clilogged variable wrong! On the following lines, #clilogged should be checking for ZERO not ONE!

Code: [Select]
 until ( #clilogged = 0 ) || ( #charghost = YES )
  while #charghost = YES
     wait 40
until #clilogged = 0
halt

I'll update the script and reupload it!
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: roadrunner on May 02, 2013, 01:57:31 PM
man, i thank you very much for the re-work and upcoming upload, but that script-speak lost me quick as a wink! LOL  if i knew exactly how to change that part, i'd give it a shot myself but i'd hate to wreck it.

i did change the 'halt' at end to 'return' and as soon as balron dies i get the 'wanna use honor?' gump. so that makes it a little easier than having to click play then yes, then kill balron. :)
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: roadrunner on May 02, 2013, 02:09:26 PM
 :)  after posting that last comment i saw you had already uploaded the new version.

score: ease of use: 10! works as posted: 10!

awesome job Maddog and please, keep up the great work!!
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: UOMaddog on May 03, 2013, 07:51:07 AM
Glad you like it! Just keep in mind it may not ALWAYS get the honor off due to range issues, but it should get it 90% of the time. I use this with my sampire thrower and a Demon slayer cyclone and it's rare that I even take damage (and if I do, it gets healed automatically).
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: roadrunner on May 03, 2013, 10:07:32 AM
yeah,  things like them 'hovering' and flying or being out of range aren't fault of the script. i've had zero problems w/ this script. coupled w/ the loot grabber, it's 'almost' an afk honor gainer/ gold farmer. :P
Title: Re: Maddog's Demon Killer (w/ Honor option)
Post by: ogre842 on November 08, 2017, 03:54:59 PM
I Dont Download?