Author Topic: DOOM BONE CUTTER  (Read 19203 times)

0 Members and 2 Guests are viewing this topic.

Offline wagglerTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Activity:
    0%
  • Reputation Power: 0
  • waggler has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
DOOM BONE CUTTER
« on: October 10, 2008, 05:51:24 PM »
0
Code: [Select]
;==================================
; Script Name: Doom Bone Cutter
; Author: Guild writer
; Version: 1
; EUO version tested with: 1.5
; Shard OSI
; Revision Date: 2008-09-05
; Public Release: 2007-06-11
; Purpose: cuts Unholy Bones from the Dark Father in Doom places.
;==================================


;Drag your dagger and put #LLIFTEDID HERE ***
;==================================
set %dagger NYPUMRD
;==================================

;==== The Lower the # the slower you cut
set #lpc 5
;==== Beware of going to fast, it gets quite obvious

;DO NOT EDIT BELOW THIS POINT
set %bones MNF_QNF_PNF_KNF_JNF_LNF
ignoreitem reset
scan:
finditem %bones G_9
if #findkind = 1 2
set #ltargetid #findid
set #ltargetkind 1
event property #findid
if corpse in #property 2
  ignoreitem #findid
  goto scan
if bones in #property
  goto cut
while #charghost = yes
 pause
goto scan

cut:
while #targcurs = 1
 {
 goto cut
 }
set #lobjectid %dagger
event macro 17 0
wait 5
event macro 22 0
wait 7
goto scan
« Last Edit: October 20, 2008, 09:31:32 PM by TrailMyx »

Offline pwnage pimp

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 0
  • pwnage pimp has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #1 on: October 18, 2008, 05:16:22 PM »
0
Anyone else have problems with this script not finishing when it's in the middle of cutting a bone pile?

Every time i run it if the targcurs doesn't click the pile then it basically halts. It resumes if i press esc or target the pile myself

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #2 on: October 19, 2008, 10:07:54 AM »
0
I lowered the G distance
to finditem %bones G_4

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: DOOM BONE CUTTER
« Reply #3 on: October 19, 2008, 10:23:40 AM »
0
I lowered the G distance
to finditem %bones G_4

You can cut bones out to 15. I suspect the problem is with ignoring once they have been cut.

There's an unintrusive cutter on EUO that works perfectly.
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 Beertje

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 0
  • Beertje has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #4 on: October 25, 2008, 03:58:54 AM »
0
The problem I have with most cutters is that they recognize bones from a corpse as bones to cut. Is that the case with this cutter ?

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #5 on: October 25, 2008, 04:29:35 PM »
0
it shouldn't since it scans the property to make sure its not a corpse

Offline bernietrue

  • Newbie
  • *
  • Posts: 5
  • Activity:
    0%
  • Reputation Power: 0
  • bernietrue has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #6 on: January 05, 2009, 06:51:21 PM »
0
when i using this script,im healing my pet with razor macro,some bones dont get cut.any solutions?

Offline Djego

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • Djego has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #7 on: January 06, 2009, 05:42:03 AM »
0
when i using this script,im healing my pet with razor macro,some bones dont get cut.any solutions?

Yes, the target of the bandages gets in conflict with the target cursor of the dagger for cutting the bones ;) maybe writing a check in the script "if #targcurs = 1" or something like that to ensure both target cursors dont get in conflict

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: DOOM BONE CUTTER
« Reply #8 on: January 06, 2009, 07:51:45 AM »
0
As I mentioned before... there is a VERY GOOD non-intrusive bone cutter on EUO.

LINK

It already has a wait if the target cursor is active. Bones can be cut out to 15.

If you were to use a different one you need to include this in your main loop so you don't cut while the cursor is active...

while #targCurs = 1
wait 0

which will pause until the cursor is not active. You might want to use a #charStatus as well, so you don't cut while casting. You'd have to test it a bit to see if it's needed.
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 Boydon

  • ScriptUO Beta Tester
  • **
  • *
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +16
  • Referrals: 0
    • View Profile
Re: DOOM BONE CUTTER
« Reply #9 on: January 06, 2009, 08:32:26 AM »
0
That script is not that good.
It is not a good practice to goto out of a sub. :)
Member of the Stealth development team.

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: DOOM BONE CUTTER
« Reply #10 on: January 06, 2009, 10:11:14 AM »
0
That script is not that good.
It is not a good practice to goto out of a sub. :)

Don't like it? Don't use it.

Goto's are bad all around. He could have coded around it, but in this case it's clean enough. The GOTO in question is when the cursor is active (as in target). He simply has the script go back to the waiting loop.

A fix for this would be to replace those with a WHILE/WAIT 0.
Code: [Select]
scan:
if #targCurs = 1
 goto scan
would become
Code: [Select]
scan:
while #targCurs = 1
  wait 0

and
Code: [Select]
sub cut
if #targCurs = 1
 goto scan
becomes
Code: [Select]
sub cut
while #targCurs = 1
  wait 0

If I were doing a rewrite of this script I would even remove the scan: and goto loop, turn it into a REPEAT/UNTIL, change the IF NOT FOUND to a IF FOUND. I suppose if you don't post the code as your own, you could always change it around.
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: 13302
  • Activity:
    0.2%
  • 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: DOOM BONE CUTTER
« Reply #11 on: January 06, 2009, 11:13:15 AM »
0
It is not a good practice to goto out of a sub. :)

I agree!  I think Cheffe has a limit on the number of times you can do that however.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: