Author Topic: help please with small script  (Read 11783 times)

0 Members and 1 Guest are viewing this topic.

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
help please with small script
« on: July 06, 2015, 06:18:10 AM »
0
Like to get some of you vet scripts help with a small mage attack/heal routine
I'm not the best scripter, usually I just piece allot of code together to get it to do what I want,  now I'm looking for something that will suit my needs better.
Looking to make a single target attack script for boss fights that take awhile,

Actions: set corpse skin on boss, then set a timer to recast corpse skin on boss when it runs out, then proceed to attack loop: explosion/flames strike combo and have a heal/cure check before each cast

Kinda feel bad for asking for help with this, but I'm sure I'll learn something along the way,
Thank you in advance if anyone chooses to help



« Last Edit: July 06, 2015, 11:10:44 AM by mininuke »

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: help please with small script
« Reply #1 on: July 06, 2015, 06:27:09 AM »
0
I think you might be able to find something like this already created however I'm a big fan of DIY!

Do you have something to post up that you've started already or any specific issues you're running into? That will give people a better chance to help you out.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #2 on: July 06, 2015, 07:02:55 AM »
0
I do have some chopped up stuff that works at the house, I'll post it tonight, I'm not sure how to do a corpse skin timer loop tho

Offline Ketchup

  • Full Member
  • ***
  • Posts: 138
  • Activity:
    0%
  • Reputation Power: 3
  • Ketchup has no influence.
  • Respect: +18
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #3 on: July 06, 2015, 07:47:27 AM »
0
I was interested in helping you out except in my head, the idea of working out how the boss was corpse skinned and setting up a timer for just that in the main script is way past my noobie scripting ability!

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #4 on: July 06, 2015, 08:33:59 AM »
0
If you are going to be a mage,  this build from TM have some nice option. 
http://www.scriptuo.com/index.php?topic=20.msg20#msg20

 Now you only need to get attack part done.


Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #5 on: July 06, 2015, 05:13:29 PM »
0
im currently using this for attacking, works well i left the authors for respect and because i didnt write it...  i would like to add a timed corspe skin loop, where once target is found, it casts corpse skin, the does an explosion / flamestrike combo


;=========================================
    ; Script Name: Raziel's Attack Script
    ; Author: Raziel, Tecmo
    ; Version: 1.20a
    ; Client Tested with: 5.0.1a
    ; EUO version tested with: 1.50.0060
    ; Shard OSI / FS: OSI and FS (Alexandria Tested Only)
    ; Revision Date: 2005-Nov-22
    ; Public Release: 2003-Aug-19
    ; Global Variables Used: None
    ; Purpose: Makes your warrior's hunting life all that much easier
    ; by Auto attacking preset creature when nearby.
    ;=========================================

    ;USER VARIABLES
    ;Set !_creature to the type of creatures you wish to auto attack

    SET !_creature OE;_XF_IE_LD_VE_BI_UB_HE_OE_CI_NG
    SET !_AutoMoveToTarget #false ;#TRUE or #FALSE
    SET !_lowHits 55
    SET !_maxRange 10
    ; =====================================
    IGNOREITEM reset

    enemyloop:
    FOR !_range 1 !_maxrange
    {
       FINDITEM !_creature G_ , !_range
       IF #FINDKIND <> -1
       {
         SET #LTARGETID #FINDID
         SET !_enemy #FINDID
         GOSUB attack
       }
       WAIT 10
    }
    SET !_range 0
    goto enemyLoop

    ; ================
    SUB attack
    attack_loop:

    finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 50
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
       IF #HITS > !_lowHits && !_AutoMoveToTarget = #TRUE && #FINDDIST > 1
          MOVE #FINDX #FINDY a
       WAIT 20
             GOTO attack_loop
    }
    RETURN
    ; ================

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #6 on: July 06, 2015, 05:32:11 PM »
0
Here some little stuff that might help you.   Have u think of those thing

find how long Corpse skin last

set %spellTimer #scnt2 + ( insert delay)

if ( %spellTimer < #scnt2 )
gosub CS

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #7 on: July 06, 2015, 06:24:27 PM »
0
Here some little stuff that might help you.   Have u think of those thing

find how long Corpse skin last

set %spellTimer #scnt2 + ( insert delay)

if ( %spellTimer < #scnt2 )
gosub CS


excellent info, ty sir i will work on that

Post Merge: July 06, 2015, 06:28:46 PM
im not understanding this formula tho

(caster's Spirit Speak - target's Resisting Spells) / 2.5 + 40 in seconds

is it SS minus total targets resists?  divided by 2.5 + 40
or

SS and targets total resists?
« Last Edit: July 06, 2015, 06:28:46 PM by mininuke »

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: help please with small script
« Reply #8 on: July 07, 2015, 03:00:56 AM »
0
For example - If you have 120 Spirit Speak and your target has 100 Resisting Spells:

(120 - 100)/2.5+40 = 48 seconds

If your target has 0 Resist it would be 88 seconds.

etc
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #9 on: July 07, 2015, 05:17:02 AM »
0
For example - If you have 120 Spirit Speak and your target has 100 Resisting Spells:

(120 - 100)/2.5+40 = 48 seconds

If your target has 0 Resist it would be 88 seconds.

etc


Ty for clearing that up, I was mixing up his actual resists with skill resists

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #10 on: July 07, 2015, 04:40:35 PM »
0
this is what i have,,, but i think im missing somthing here


SET !_creature OE;_XF_IE_LD_VE_BI_UB_HE_OE_CI_NG
    SET !_AutoMoveToTarget #false ;#TRUE or #FALSE
    SET !_lowHits 55
    SET !_maxRange 10
    ; =====================================
    IGNOREITEM reset

    enemyloop:
    FOR !_range 1 !_maxrange
    {
       FINDITEM !_creature G_ , !_range
       IF #FINDKIND <> -1
       {
         SET #LTARGETID #FINDID
         SET !_enemy #FINDID
         GOSUB attack
       }
       WAIT 10
    }
    SET !_range 0
    goto enemyLoop
    ;================
    set %spellTimer #scnt2 + (48s)
    if ( %spellTimer < #scnt2 )
    gosub CS
    ; ================
    SUB attack
    attack_loop:

    finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 50
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
       IF #HITS > !_lowHits && !_AutoMoveToTarget = #TRUE && #FINDDIST > 1
          MOVE #FINDX #FINDY a
       WAIT 20
             GOTO attack_loop
    }
    RETURN
    ; ================
SUB CS
finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 103
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
   }
   RETURN

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #11 on: July 07, 2015, 06:03:30 PM »
0
i tried to implement the spell timer,, it was a fail,,,
i think im missing somthing to activate it

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #12 on: July 07, 2015, 06:29:34 PM »
0
This is how it should look

Code: [Select]
;                                Set up part
; ------------------------------------------------------------------------------
SET !_creature OE;_XF_IE_LD_VE_BI_UB_HE_OE_CI_NG
    SET !_AutoMoveToTarget #false ;#TRUE or #FALSE
    SET !_lowHits 55
    SET !_maxRange 10
    set %spellTimer #scnt2 + 48000
    ; =====================================
    IGNOREITEM reset
; ------------------------------------------------------------------------------------------
 

;                  Main loop     <--  insert what you want to do here.
; ------------------------------------------------------------------------
   enemyloop:
    FOR !_range 1 !_maxrange
    {
       FINDITEM !_creature G_ , !_range
       IF #FINDKIND <> -1
       {
         SET #LTARGETID #FINDID
         SET !_enemy #FINDID
         GOSUB attack
       }
       WAIT 10
    }
    SET !_range 0
  if ( %spellTimer < #scnt2 )   
          {
          gosub CS
           }
    goto enemyLoop
 ; -----------------------------------------------------------------------------

   ;================

 
    ; ================
    SUB attack
    attack_loop:

    finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 50
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
       IF #HITS > !_lowHits && !_AutoMoveToTarget = #TRUE && #FINDDIST > 1
          MOVE #FINDX #FINDY a
       WAIT 20
             GOTO attack_loop
    }
    RETURN
    ; ================
SUB CS
finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 103
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
   }
   RETURN

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #13 on: July 08, 2015, 02:35:43 AM »
0
Thank you ghost, I'll work on it tonight, last night I worked on spell combo rotation, wich works awesome,  looks like I missed the set spell timer at the top, thank you again hopefully it works tonight

Offline Man7dowNTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Man7dowN has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: help please with small script
« Reply #14 on: July 12, 2015, 02:48:38 AM »
0
This is how it should look

Code: [Select]
;                                Set up part
; ------------------------------------------------------------------------------
SET !_creature OE;_XF_IE_LD_VE_BI_UB_HE_OE_CI_NG
    SET !_AutoMoveToTarget #false ;#TRUE or #FALSE
    SET !_lowHits 55
    SET !_maxRange 10
    set %spellTimer #scnt2 + 48000
    ; =====================================
    IGNOREITEM reset
; ------------------------------------------------------------------------------------------
 

;                  Main loop     <--  insert what you want to do here.
; ------------------------------------------------------------------------
   enemyloop:
    FOR !_range 1 !_maxrange
    {
       FINDITEM !_creature G_ , !_range
       IF #FINDKIND <> -1
       {
         SET #LTARGETID #FINDID
         SET !_enemy #FINDID
         GOSUB attack
       }
       WAIT 10
    }
    SET !_range 0
  if ( %spellTimer < #scnt2 )   
          {
          gosub CS
           }
    goto enemyLoop
 ; -----------------------------------------------------------------------------

   ;================

 
    ; ================
    SUB attack
    attack_loop:

    finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 50
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
       IF #HITS > !_lowHits && !_AutoMoveToTarget = #TRUE && #FINDDIST > 1
          MOVE #FINDX #FINDY a
       WAIT 20
             GOTO attack_loop
    }
    RETURN
    ; ================
SUB CS
finditem !_enemy G_
 if #findcnt > 0
  {
   event macro 15 103
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
   }
   RETURN



I tried this, couldn't get it to work, am I missing somthing?
I don't under stand why this is being so difficult

Find target
Cast corpse skin
Set 48s timer on corpse skin before next cast
Begin attack loop
Cast flam strike
If mana is below 40
Cast fireball
Return

That's all I'm trying to achieve any help appreciated

Tags: