Openkore.com

OpenKore Forums
It is currently 18 Nov 2018, 06:41

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 22 Jun 2018, 12:50 
Offline
Noob
Noob

Joined: 19 Jun 2018, 20:56
Posts: 11
I found the problem, but I don't know how to fix it hahaha
When I use the Openkore to attack a monster, all the kicks work. When I use the Ragnarok Client (Ragexe.exe - using the visual mode XKore 2) to click on a monster to attack, it doesn't...
The problem was me clicking on the monster through the client (manually).

So... do you know how to make the Openkore detect my client-attacks?


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 22 Jun 2018, 14:35 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 466
Location: Genting Highland, Malaysia
Based on your provided config, change this;

Code:
attackAuto


Change to 0 or 1 or 2.
I doubt it would work, so just use 2.

Here some tips to play with XKore semi/afk/auto

Code:
ai manual


Mastering the console command.
Then you can do stuff like in those movies; controlling stuff using keyboard only, no mouse.

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 22 Jun 2018, 20:20 
Offline
Noob
Noob

Joined: 19 Jun 2018, 20:56
Posts: 11
fadreus wrote:
Based on your provided config, change this;

Code:
attackAuto


Change to 0 or 1 or 2.
I doubt it would work, so just use 2.

Here some tips to play with XKore semi/afk/auto

Code:
ai manual


Mastering the console command.
Then you can do stuff like in those movies; controlling stuff using keyboard only, no mouse.


Yeah... the "manual mode" disables the attacks... And Automatic will just make my character attack random monsters and I won't be able to control it.
I tried to "force" the OpenKore to attack the monster I am already attacking by using "SimpleHookEvent packet_attack" from eventMacro. If I succeed in doing that, the "attack" will come from the OpenKore and it will trigger the "attackComboSlot". But since the packets are encrypted, isn't that easy... hahaha


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 22 Jun 2018, 21:19 
Offline
Noob
Noob

Joined: 19 Jun 2018, 20:56
Posts: 11
Well, got something working here. Isn't perfect because, if the first hit triggers a Stance, it takes about 1.5 seconds to start working. Otherwise, it's flaweless:

config.txt (mode Automatic - autoAttack 0)
Code:
attackComboSlot 413 {
   afterSkill Tornado Stance
   waitBeforeUse 0.18
   sp > 14
}

attackComboSlot 415 {
   afterSkill Heel Drop Stance
   waitBeforeUse 0.18
   sp > 14
}

attackComboSlot 417 {
   afterSkill Roundhouse Stance
   waitBeforeUse 0.18
   sp > 14
}

attackComboSlot 419 {
   afterSkill Counterkick Stance
   waitBeforeUse 0.18
   sp > 14
}


macro.txt (I wish this guy was faster... this is the cause of the 1.5sec delay, even with "macro_delay 0")
Code:
automacro Attack {
   console /[a-zA-Z]* You attacked [a-zA-Z]*/
   call {
      $x = monsterIndex("$.lastLogMsg")
      do a $x
   }
}

sub monsterIndex {
   my ($phrase) = @_;
   my @words = split /\(/, $phrase;
   my @words2 = split /\)/, @words[1];
   return @words2[0];
}

automacro kick_Turn {
   console "You used Roundhouse Stance on yourself (Level: 1)"
   call {
      do ss 417
   }
}

automacro kick_Down {
   console "You used Heel Drop Stance on yourself (Level: 1)"
   call {
      do ss 415
   }
}

automacro kick_Storm {
   console "You used Tornado Stance on yourself (Level: 1)"
   call {
      do ss 413
   }
}

automacro kick_Counter {
   console "You used Counterkick Stance on yourself (Level: 1)"
   call {
      do ss 419
   }
}


eventMacro.txt
Code:
automacro AttackTarget {
   SimpleHookEvent target_attack
   call {
      $x = monsterIndex("$.SimpleHookEventLastID")
      do a $x
   }
}

sub monsterIndex {
   my ($phrase) = @_;
   my @words = split /\(/, $phrase;
   my @words2 = split /\)/, @words[1];
   return @words2[0];
}

automacro Prepare_Whirlwind_Kick {
   SimpleHookEvent Prepare_Whirlwind_Kick
   CurrentSP >= 2
   call {
      do ss 413
   }
}

automacro Prepare_Axe_Kick {
   SimpleHookEvent Prepare_Axe_Kick
   CurrentSP >= 2
   call {
      do ss 415
   }
}

automacro Prepare_Round_Kick {
   SimpleHookEvent Prepare_Round_Kick
   CurrentSP >= 2
   call {
      do ss 417
   }
}

automacro Prepare_Counter_Kick {
   SimpleHookEvent Prepare_Counter_Kick
   CurrentSP >= 2
   call {
      do ss 419
   }
}


Main.pm (only if you use the eventMacros.txt)
Code:
#Search for this method
sub attack_string {
   my ($source, $target, $damage, $delay) = @_;
   assert(UNIVERSAL::isa($source, 'Actor')) if DEBUG;
   assert(UNIVERSAL::isa($target, 'Actor')) if DEBUG;

   #Add this block of code
   if($source->nameString eq "You")
   {
      Plugins::callHook("target_attack", {ID => $target});
   }
   #End of add

   return TF("%s %s %s (Dmg: %s) (Delay: %sms)\n",
      $source->nameString,
      $source->verb(T('attack'), T('attacks')),
      $target->nameString($source),
      $damage, $delay);
}


Last edited by tkmaster on 28 Jun 2018, 00:46, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 23 Jun 2018, 01:07 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 466
Location: Genting Highland, Malaysia
Maybe if you can sort out what really important for you, this can get a little bit better. ;)

Like:
Why you normal click-attack monster?
Why not auto attack?
mon_control not sufficient?
You can make macro to attack (a #) when the monster attack your or when you were attacking.

Image

Welp, i guess it's all up to you now.. 8-)
Good luck.

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 23 Jun 2018, 12:52 
Offline
Noob
Noob

Joined: 19 Jun 2018, 20:56
Posts: 11
The whole thing is because I want to play Star Gladiator "normally" (do MvP, PvP, Instances...). Love the class outfit, Shadow passive and Union... but since everyone is 3rd and this class became almost useless, I wanted to maximize his efficiency by activating all kicks.


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 23 Jun 2018, 20:40 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 466
Location: Genting Highland, Malaysia
Well then, there is a simple solution.
When you attacking "normally" with client, the console would show "you are now attacking" something with (#) numbers.
Simply switch (alt+tab) to openkore console and write "a #"; the monster index

Problem solved.
Just like what I did in the gif (if you notice, I write "a #")
:lol:

Hahahaha..

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 24 Jun 2018, 01:39 
Offline
Noob
Noob

Joined: 19 Jun 2018, 20:56
Posts: 11
haha yeah... but I rather not write that and let OpenKore do that for me with "automacro Attack". That's why I wrote that script. It simply do that for me, automatically. =D


Top
 Profile  
 
 Post subject: Re: Star Gladiator Auto-Kick not working after several tries
PostPosted: 24 Jun 2018, 02:48 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 466
Location: Genting Highland, Malaysia
Oh, didn't notice that macro...
Welp, have fun with ur SG.
I'll just wait for Star Emperor.
Bye bye kick.

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group