Author Topic: help please with small script  (Read 11739 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
Re: help please with small script
« Reply #15 on: July 12, 2015, 04:49:26 AM »
0
Would this work with the mana check and 2 spells?
Code: [Select]
SUB attack
    attack_loop:

    finditem !_enemy G_
 if #findcnt > 0
  {
   If #MANA > 40
   event macro 15 50
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
   If #MANA < 40
  event macro 15 17
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
             GOTO attack_loop
    }
    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 #16 on: July 12, 2015, 07:07:32 PM »
0
i have the mana check on spells worked out

Code: [Select]
SET %target OE_XF_IE_LD_VE_BI_UB_HE_OE_CI_NG
    SET !_lowHits 55
    SET !_maxRange 10
    ; =====================================
    IGNOREITEM reset
    Ignoreitem #Charid


    enemyloop:
    FOR !_range 1 !_maxrange
    {
       FINDITEM %target G_ , !_range
       IF #FINDKIND <> -1
       {
         SET #LTARGETID #FINDID
         SET !_enemy #FINDID
         if #findCnt > 0 && #mana > 41
         GOSUB FS
         if #findCnt > 0 && #mana < 40
         GOSUB FB
       }
       WAIT 10
    }
    SET !_range 0
    goto enemyLoop
    ;================

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

   SUB FS
   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
    {
    RETURN
    ;==================
   
    SUB FB
   finditem !_enemy G_
   if #findcnt > 0
   {
   event macro 15 17
   set #ltargetkind 1
   set #ltargetid #findid
   target 3s
   event macro 22 0
   wait 5
  }
    FINDITEM !_enemy G_
    IF #FINDKIND = 1
    {
    RETURN



 back to messing round with corpse skin timer, thank you everyone for your input so far it has helped the nooblet scripter lol

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 #17 on: July 14, 2015, 10:14:31 AM »
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


Anyone know how I can implement this to my script, i can't get it to work, not sure why,  the post before this is the full script code I'm using

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: help please with small script
« Reply #18 on: July 14, 2015, 11:39:47 AM »
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


Anyone know how I can implement this to my script, i can't get it to work, not sure why,  the post before this is the full script code I'm using

Because of the nature of Corpse Skin you will never be able to fully  know how long it lasts because you have 1 unknown variable.  The resist spells of the enemy.  So you will have to go with the longest a corpse skin would last and just put that into your script as the delay rather than using a calculation to get it. 
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

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 #19 on: July 16, 2015, 07:31:23 AM »
0
Any suggestions I can try tonight?

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 #20 on: July 17, 2015, 06:01:11 PM »
0
here an idea for you

set %spellTimerCS #scnt


Code: [Select]
if  %spellTimerCS <= #scnt
     gosub CorpseSkin

sub CorpseSkin
    set #ltargetkind 1
    set #ltargetid %victim
    event macro 15 103 ; Corpse Skin
    target 3s
    event macro 22 0
    wait 20
    set  %spellTimerCS #scnt + 20
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 #21 on: July 19, 2015, 03:00:37 AM »
0
here an idea for you




Works awesome ghost, just what I was looking for, I changed it around a little bit, but all the key parts are there, thanks ghost
« Last Edit: July 19, 2015, 03:23:02 AM by Man7dowN »

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 #22 on: July 19, 2015, 04:28:03 AM »
0
Glad it work for you, It is a nice little build to learn.   did you see what you were missing. 
« Last Edit: July 19, 2015, 04:32:32 AM by The Ghost »

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 #23 on: July 19, 2015, 05:06:46 AM »
0
Glad it work for you, It is a nice little build to learn.   did you see what you were missing. 

I had the set timer wrong, then changed the sub a little on finding target, works great... 2 steps left, adding a mage cure and  greater than 2 wither sub

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 #24 on: July 19, 2015, 06:42:35 AM »
0
Will be nice to see the final product of this build.   Seen like a little help for mage. 

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 #25 on: July 19, 2015, 07:00:18 AM »
0
Will be nice to see the final product of this build.   Seen like a little help for mage. 

Ya it's for champ, helps with all the casting on long fights,  little more relax time

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 #26 on: July 19, 2015, 01:21:45 PM »
0
It just to kill the Boss. I see now.  Was wondering if that was during regular hunting.

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 #27 on: July 20, 2015, 02:35:25 AM »
0
It just to kill the Boss. I see now.  Was wondering if that was during regular hunting.

No, but it can be set up for regular hunting pretty easy

Tags: