Author Topic: Armor Ignore and Lightning Strike  (Read 4388 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • 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
Armor Ignore and Lightning Strike
« on: April 06, 2011, 07:18:59 AM »
0
The idea is to do AI's every 3 seconds and use Lightning Strike in between.

Here's what I have.... I *think* it'll work as is, but would like to hear some comments. I haven't tested these pixel subs, but on paper, they appear to be pretty cool.

Code: [Select]
display yesno Is Armor Ignore a Primary Weapon Ability?

if #dispRes = yes
  {
    gosub set_pixel 2 PrimaryWeapon 35 0
    set %pixel 2
    set %mana 30
    set %timer #sCnt
    set %delay 3
    set %eventMacro1 35
    set %eventMacro2 0
  }
else
  {
    gosub set_pixel 3 SecondaryWeapon 36 0
    set %pixel 3
    set %mana 30
    set %timer #sCnt
    set %delay 3
    set %eventMacro1 36
    set %eventMacro2 0
  }   

gosub set_pixel 1 LightningStrike 15 149

repeat
if #mana >= %mana && %timer > #sCnt
  gosub check_pixel %pixel f %eventMacro1 %eventMacro2 %timer %delay
gosub check_pixel %pixel f
if #result <> #true
  gosub check_pixel 1 f 15 149
until #false


; ***** sub check_pixel *****
; %1 - pixel number
; %2 - t/f true or false
; %3 - event macro 1
; %4 - event macro 2
; %5 - timer name
; %6 - timer value
; gosub check_pixel 1 f 35 0 %timer_PrimaryWeapon 3 ; primary weapon ability

sub check_pixel
cmppix %1 %2
if %0 > 2
  {
    event macro %3 %4
    if %0 < 5
      return #true
    wait 5
    set %5 ( #sCnt + %6 )
    return #true
  }
return #false

; ***** sub set_pixel *****
; %1 - pixel number
; %2 - name
; %3 - event macro 1
; %4 - event macro 2
; gosub set_pixel 1 LightningStrike 15 149 ; lightning strike
sub set_pixel
for %i 1 3
  event macro %2 %3
display ok Move mouse to your %4 Button.$You have 2 seconds
wait 2s
savePix #cursorX #cursorY %1
wait 5
display ok Do NOT move that %2 icon!
return
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.

Scrripty

  • Guest
Re: Armor Ignore and Lightning Strike
« Reply #1 on: April 06, 2011, 04:10:58 PM »
0
Scan your suit for lmc and plug it in.  You only need about 4 or 5 of those.  Mana required1/2/3/4/5.  One for 5, 10, 15, 20 mana... not really sure, been a while since I've messed with it, but there's only so many mana configs you need and they work for everything, including spells/chiv/necro/whatever...   

Code: [Select]
  set %manaRequired %manaCost - ( ( %manaCost * %userLmc) / 100 )

Tags: