Author Topic: need big help with explo macro  (Read 9226 times)

0 Members and 1 Guest are viewing this topic.

Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
need big help with explo macro
« on: May 18, 2015, 09:48:37 AM »
0
i play on a sever that doesnt allow injournal and has a alternating timer on pots betweeen 4 and 3 second.. i'm trying to macro a one button throw purple pot macro i have it so it throws on 4 second but it doesnt recognize the 3 second timer when it pops.. i've tried if not '4' , else if , end if, i cant find the right command to bypass the 4 timer when the 3 is present on screen.

if sysmsg '4' 'red'
  usetype 0xf0d
  pause 3050
  target! 'last'
else
  usetype 0xf0d
  pause 500
  target! 'last'
endif

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *****
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: need big help with explo macro
« Reply #1 on: May 18, 2015, 10:35:18 AM »
0
is the sysmsg '3' also red?


also is this what you want to do ?

if sysmsg '4' 'red'
  usetype 0xf0d
  pause 4050
  target! 'last'
endif
pause 50
if sysmsg '3' 'red'
  usetype 0xf0d
  pause 3050
  target! 'last'
endif
pause 50


Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: need big help with explo macro
« Reply #2 on: May 18, 2015, 10:40:08 AM »
0
yes both are red ibelieve show red on the screen


Post Merge: May 18, 2015, 11:08:55 AM
that one almost works but  i cant get the timers to work .. both are supposed to fire at 1.75 secs .. but they seems to be proportionately dependant on eachother?
« Last Edit: May 18, 2015, 11:08:55 AM by blargle »

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *****
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: need big help with explo macro
« Reply #3 on: May 18, 2015, 11:18:39 AM »
0
OK - I think I mis understood what you wanted

is this closer?

if sysmsg '4' 'red'
  usetype 0xf0d
  pause 1750
  target! 'last'
pause 2250
endif
if sysmsg '3' 'red'
  usetype 0xf0d
  pause 1750
  target! 'last'
pause 1250
endif

Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: need big help with explo macro
« Reply #4 on: May 18, 2015, 11:33:44 AM »
0
no perhaps i didnt explain properly u toss an explo potion
it either does this at random
4
3
2
1
 or
3
2
1

if u throw right after 2 (appro 1.75) you can hit your target while they are running).
trying to make a macro so it doesn't matter if you get 10 throws of 4secs or 4,3,4,3,4,3, it will always toss at after 2 sec ... for the appropriate sysmsg.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *****
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: need big help with explo macro
« Reply #5 on: May 18, 2015, 02:09:47 PM »
0
ahh so why not this

if sysmsg '4' 'red'
  usetype 0xf0d
  pause 2000
  target! 'last'
endif
if sysmsg '3' 'red'
  usetype 0xf0d
  pause 1000
  target! 'last'
endif

Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: need big help with explo macro
« Reply #6 on: May 18, 2015, 02:22:19 PM »
0
it almost works 3 kind of throw after 2 seconds but 4 throws after 3 seconds
it seems as if you change one pause the other is affected slightly..
or it needs something in it that tells it  if the first part is false to goto 2nd part
« Last Edit: May 18, 2015, 02:26:43 PM by blargle »

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *****
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: need big help with explo macro
« Reply #7 on: May 18, 2015, 03:44:55 PM »
0
Are you running this in a loop?

ok try this

if sysmsg '4' 'red'
  usetype 0xf0d
  pause 2000
  target! 'last'
break
endif
if sysmsg '3' 'red'
  usetype 0xf0d
  pause 1000
  target! 'last'
break
endif

Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: need big help with explo macro
« Reply #8 on: May 18, 2015, 03:54:26 PM »
0
no a loop its a hotkey .. that didnt work either. . still one seems close but the other hits me

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *****
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: need big help with explo macro
« Reply #9 on: May 18, 2015, 08:30:01 PM »
0
Try this one

if sysmsg '3' 'red'
  usetype 0xf0d
  pause 1000
  target! 'last'
stop
endif
if sysmsg '4' 'red'
  usetype 0xf0d
  pause 2000
  target! 'last'
stop
endif
« Last Edit: May 18, 2015, 08:36:03 PM by gimlet »

Offline blargleTopic starter

  • Restricted
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • blargle has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: need big help with explo macro
« Reply #10 on: May 19, 2015, 07:48:47 AM »
0
that one doesnt recognize pause at all

Post Merge: May 19, 2015, 11:53:22 AM
i feel as if we are  missing a whole string of commands telling or seperating the two.. if 4 doesnt exsist execute 3
« Last Edit: May 19, 2015, 11:53:22 AM by blargle »

Offline Vlek

  • Jr. Member
  • **
  • Posts: 35
  • Activity:
    0%
  • Reputation Power: 1
  • Vlek has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
    • Bloodclan Orcs
Re: need big help with explo macro
« Reply #11 on: November 19, 2015, 10:10:45 AM »
0
i play on a sever that doesnt allow injournal and has a alternating timer on pots betweeen 4 and 3 second..

Gimlet has no idea what he's talking about. Sysmsg is a command that displays the given string as a system message in the lower left-hand corner of one's screen. It's not a check that can be used instead of injournal. Honestly, if you can't use injournal, you're out of luck if you want it to throw the potion with less than a second to go. The best you can do is something like this:

Code: [Select]
//Stupid explo chucker by Vlek
//It's stupid because we can't use injournal to inform our script
//when to throw!
//
//We gotta check to see if we even have an explosion potion first
if @findtype 0xf0d 'any' 'backpack' 1 2
  useobject 'found'
  //You're going to have to play with this pause until you get it as close as possible on the 3 second one.
  //The four second one will have like a 1 second delay after being thrown. This is unfortunately unavoidable
  //Based on your statement that injournal messages are completely unusable.
  pause 2750
  //I don't know how far you can throw explosion potions off the top of my head,
  //but you need to check whether or not that person is even on screen (16) at the very least!
  if @inrange 'last' 16
    target! 'last'
  else
    //If it's the case we have no target, you may want to consider throwing this away from you
    //This is a random tile that's far enough away that it won't hurt. You can fudge the numbers
    //To your liking.
    targettileoffset 3 3 0
  endif
else
  sysmsg "You do not have any explosion potions!"
endif
« Last Edit: November 19, 2015, 11:09:59 AM by Vlek »

Tags: