Author Topic: Combat Info  (Read 5475 times)

0 Members and 1 Guest are viewing this topic.

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +304
  • Referrals: 1
    • View Profile
Combat Info
« on: February 01, 2010, 03:13:13 PM »
0
I am going to start working on some bots in the near future and I have some questions about how the information in the EUO "Combat Info" tab works. 

In particular, I want to be able to consistently pull an #enemyid and if possible #enemyhits.  It seems this information is not always populated and I am trying to figure out why so that I can have an idea what I can do with it.  When I fight two toons against each other, only the attacking toon gets the information populated. Is there a way to figure out what/who is attacking you?

Some more random thoughts:

I could use global variables as Cerv suggests in his Gbot post, but I wonder if it might be useful to use party or guild communication between bots.  Anyone work with this at all?
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

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: +861
  • Referrals: 11
    • View Profile
Re: Combat Info
« Reply #1 on: February 01, 2010, 03:17:41 PM »
0
#enemyID is a great idea, which unfortunately doesn't work well at all.

If you trying to see if you still have an enemy to attack, check out my Honor and Attack script. Basically you find the monster from the list and get it's specific ID, then keep looking for that ID, when it's not found delay for about 40 (2 seconds) to avoid the corpse thing where it finds a new ID when falling...

#enemyHits has always been fun. You could use that exevent msg thingy and put the % above it's head :)

Ok back to #enemyID... here's the problem. What is attacking you?

See if there's more then one monster around that has you targetted, #enemyID goes to the last one. That means you could die to a Mongbat attacking you because #enemyID see's a dragon on the other side of a wall. You can try resetting #enemyID but that doesn't work right either.... better to avoid it's use.

For Bots, you can obviously use a journal scan based Server/Client approach. TM's j-scanning sub would be awesome for it.
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: Combat Info
« Reply #2 on: February 01, 2010, 04:26:51 PM »
0
#enemyID is a great idea, which unfortunately doesn't work well at all.

If you trying to see if you still have an enemy to attack, check out my Honor and Attack script. Basically you find the monster from the list and get it's specific ID, then keep looking for that ID, when it's not found delay for about 40 (2 seconds) to avoid the corpse thing where it finds a new ID when falling...

#enemyHits has always been fun. You could use that exevent msg thingy and put the % above it's head :)

Ok back to #enemyID... here's the problem. What is attacking you?

See if there's more then one monster around that has you targetted, #enemyID goes to the last one. That means you could die to a Mongbat attacking you because #enemyID see's a dragon on the other side of a wall. You can try resetting #enemyID but that doesn't work right either.... better to avoid it's use.

For Bots, you can obviously use a journal scan based Server/Client approach. TM's j-scanning sub would be awesome for it.

event exmsg doesn't work for anything besides #charId.  EN and I were just talking about this in another thread. :)

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #3 on: February 01, 2010, 04:57:38 PM »
0
#enemyid was broken the last time I checked. It will cause you to flag on guildmates and pets and just about everything but what you want
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +304
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #4 on: February 01, 2010, 07:04:16 PM »
0
OKay, so if #EnemyID doesn't work, what are some other options?  Either work from a find routine that looks for specific enemies, or have it use information from a toon I am controlling.  It seems I can do that with #LtargetID and pass it either with a global, party or guild chat.  Is there any concensus on what is the best way to pass the target around?

I am thinking of putting together some bots to support a whammy and beat on spawn. I figure I can start with them working as a support team and work my way from there.
« Last Edit: February 02, 2010, 05:45:10 AM by Paulonius »
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #5 on: February 01, 2010, 07:37:19 PM »
0
All I do is have each toon using the same sub to just spam attacking the closest enemy type it can find (Working on the most dangerous and priority list), so long as they are all running the same exact code, each will attack the same target.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +304
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #6 on: February 02, 2010, 05:44:37 AM »
0
That makes sense. I suppose I could run it in a mode where they move in a pack hunting the same target set based on a search list, and another mode where I feed the pack targets. Maybe set up a toon to loot and use BoS. 
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #7 on: February 03, 2010, 11:45:56 AM »
0
Yup :)

1 Thing to Always Remember when it comes to movement.

2 Ways to get the location of what you are following. Finditem, and setting Global Variables.

FInditem Returns where your client thinks he is (Lag between your computer sending data to the server, and your other client dl'ing the data)

Setting Global Variables is MUCH more efficient. In wraith form I can run a straight line and never lose any guys (Terrain depending).

Best method is Pathfind too, just too many issues with move and getting around those tight corners.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #8 on: February 03, 2010, 11:56:39 AM »
0
Something along these lines. A very Simple Method, doesn't even use globals actually :)



Code: [Select]
set %Leader XXXXX
set %Team XXXX_XXXX_XXXX ; Including leader
while #true
{
Repeat
uoxl swap
until #charid in %Team
if #charid = %Leader
{
set %Followx #charposx
set %Followy #charposy
set %Followz #Chaposz
}
if #Charid <> %Leader
{
if #charposx <> %Followx || #Charposy <> %FOllowy
{
if A Notin #charstatus ; If you are casting or paralyzed don't want to be SPAMMING Event pathfind
Event pathind %Followx %Followy %Followz
}
}
}


And people act like the army is complicated :)

Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline PauloniusTopic starter

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +304
  • Referrals: 1
    • View Profile
Re: Combat Info
« Reply #9 on: February 03, 2010, 12:03:54 PM »
0
Nice and simple, just keeps the pack running along together.
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Tags: