Star Gladiator Auto-Kick not working after several tries

International

Moderator: Moderators

Message
Author
tkmaster
Noob
Noob
Posts: 11
Joined: 19 Jun 2018, 20:56
Noob?: No

Re: Star Gladiator Auto-Kick not working after several tries

#11 Post by tkmaster »

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?

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Star Gladiator Auto-Kick not working after several tries

#12 Post by fadreus »

Based on your provided config, change this;

Code: Select all

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: Select all

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

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

tkmaster
Noob
Noob
Posts: 11
Joined: 19 Jun 2018, 20:56
Noob?: No

Re: Star Gladiator Auto-Kick not working after several tries

#13 Post by tkmaster »

fadreus wrote:Based on your provided config, change this;

Code: Select all

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: Select all

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

tkmaster
Noob
Noob
Posts: 11
Joined: 19 Jun 2018, 20:56
Noob?: No

Re: Star Gladiator Auto-Kick not working after several tries

#14 Post by tkmaster »

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: Select all

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: Select all

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: Select all

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: Select all

#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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Star Gladiator Auto-Kick not working after several tries

#15 Post by fadreus »

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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

tkmaster
Noob
Noob
Posts: 11
Joined: 19 Jun 2018, 20:56
Noob?: No

Re: Star Gladiator Auto-Kick not working after several tries

#16 Post by tkmaster »

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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Star Gladiator Auto-Kick not working after several tries

#17 Post by fadreus »

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..

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

tkmaster
Noob
Noob
Posts: 11
Joined: 19 Jun 2018, 20:56
Noob?: No

Re: Star Gladiator Auto-Kick not working after several tries

#18 Post by tkmaster »

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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Star Gladiator Auto-Kick not working after several tries

#19 Post by fadreus »

Oh, didn't notice that macro...
Welp, have fun with ur SG.
I'll just wait for Star Emperor.
Bye bye kick.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Post Reply