Author Topic: How to share the same attack last ID or something like that???  (Read 3769 times)

0 Members and 1 Guest are viewing this topic.

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
How to share the same attack last ID or something like that???
« on: January 04, 2014, 11:19:38 AM »
0
Hello!

I'm wondering how to make two clients attack the same thing, but directly, how to make my slave toon attack the same thing my primary toon is attacking.  I know I could make it attack specific things, such as find ID xxx attack that ID.  But, I'd really like my slave to see that I attacked a specific mob, or grey or red toon, and do the same.  Mostly, the idea is to kill mobs twice as fast.

after I get this, then I'll tackle xhealing, dual recalling to locations, and a hot key to start and stop the script together.

My end game, is to be able to attack daemons or dragons at the same time, with out my slave deciding it wants to aggro a mob that hasn't targeted us first.

Is there an uncomplicated way to achieve this?

Cheers!

P.S. If you feel that giving me the "answer" is too easy, please point me in the right direction, so that I can try and figure it out.  I understand some things are scripters trade secrets, and I'm not trying to steal your ideas.

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: How to share the same attack last ID or something like that???
« Reply #1 on: January 04, 2014, 11:31:00 AM »
0
Global variable.



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: How to share the same attack last ID or something like that???
« Reply #2 on: January 04, 2014, 11:45:32 AM »
0
I have no idea what that is, but will spend this time to find out.  Thanks!!!!

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: How to share the same attack last ID or something like that???
« Reply #3 on: January 04, 2014, 11:45:46 AM »
0
Check out what Cerveza wrote up about the subject:

http://www.scriptuo.com/index.php?topic=1130.30
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: How to share the same attack last ID or something like that???
« Reply #4 on: January 04, 2014, 01:00:10 PM »
0
Stuck at work, but I think I have the idea roughly.

My primary would attack a mob, then find the ID of that last mob attacked and set that ID as a global variable named something like !current_mob.

then my secondary would:

set %current_mob !current_mob
finditem %current_mob
set #ltargetid #findid
event macro 27 0
set !mob_current #false    (to reset it to look for it again and attack it? or should I put that at the top of the Primaries script to reset everytime it goes through the loop again?

can I set a global ID as

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: How to share the same attack last ID or something like that???
« Reply #5 on: January 04, 2014, 01:17:44 PM »
0
Here is a snippet of what I use to assign global vars. (Which are then read by stealth and handled there.)

Code: [Select]
set *14 0
repeat
  onhotkey 1
    gosub SetTarget
until #false

sub SetTarget
 set #TargCurs 1
 targ:
 if #TargCurs = 1
   goto targ
   
 set *13 #LTargetID
return

That 14 lines of code is literally all I use EUO for anymore :>



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Tags: