End-To-End Macro: Taekwon Master

Moderator: Moderators

Message
Author
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

End-To-End Macro: Taekwon Master

#1 Post by sli »

This is the first in my series of end-to-end (100% automated grinding and job change) macros. However, this one is incomplete, but I wanted to go ahead and share my progress. Also, I'd like for someone to look through and make sure it's bug free as I literally learned how to write macros about... five minutes before writing this. So here you are.

Keep in mind it's also not perfect. I don't need anyone pointing out better grinding maps, the fact that it never equips new gear, etc.

Code: Select all

automacro lvl1 {
	job < 10
	class "Taekwon"
	call {
		do conf lockMap none
		do move 181 100 payon
		do talk @npc 181 104
		do talk resp 0
		do talk close
		do move pay_fild01
		do conf lockMap pay_fild01
	}
}

automacro lvl10 {
	job >= 10
	class "Taekwon"
	call {
		$target = $.joblvl + 1
		do conf lockMap none
		do move 155 140 payon
		do talk @npc 157 141
	}
}

automacro clsChange1 {
	job >= $target
	class "Taekwon"
	call {
		do conf lockMap none
		do move 155 140 payon
		do talk @npc 157 141
		pause
		do talk resp 0
		pause
		do talk resp 0
		pause
		do talk resp 2
		pause
		do talk resp 0
		do move pay_fild01
		do conf lockMap pay_fild01
	}
}

automacro clsChange2 {
	job == 50
	class "Taekwon"
	call {
		do conf lockMap none
		do move 210 100 payon
		do talk @npc 215 102
		pause
		do talk resp 0
		pause
		do talk resp 0
		do move 171 230 comodo
		do talk @npc 172 231
		do talk resp 0
		call tkmQuestItems
	}
}

automacro clsChange3 {
	class "Taekwon"
	inventory "Rough Wind" >= 1
	inventory "Great Nature" >= 1
	inventory "Mystic Frozen" >= 1
	inventory "Flame Heart" >= 1
	call {
		do conf lockMap none
		do move 171 230 comodo
	}
}

automacro lvl20 {
	base >= 20
	base < 30
	call {
		do move pay_dun00
		do conf lockMap pay_dun00
	}
}

automacro lvl30 {
	base >= 30
	base < 40
	call {
		do move pay_fild07
		do conf lockMap pay_fild07
	}
}

automacro lvl40 {
	base >= 40
	base < 50
	call {
		do move pay_dun01
		do conf lockMap pay_dun01
	}
}

automacro sgGrind {
	class "Star Gladiator"
	call {
		do move pay_dun01
		do conf lockMap pay_dun01
	}
}

#macro findRoughWind {
#	do move 
#}
cs : ee : realist

Kafka
Human
Human
Posts: 26
Joined: 15 Aug 2008, 08:54
Noob?: No

Re: End-To-End Macro: Taekwon Master

#2 Post by Kafka »

This is going to be pretty awesome. I mentioned it on IRC but I would throw in some conf changes for lockmaps so the bot doesn't roam like a motherfuck. From what I can tell there's nothing to stop your bot right now, moving to payon field and then heading off on his own accord to wherever he likes, and in the same respect when it moves to payon dungeon and field 07.

Also I don't really know but if the bot dies on the way to comodo would it try and repeat the command to move there? I suppose it would because it would just be running the conditions of the macro.
You're not going to try and tell me you think you can diddle your way out of a criminal charge with an adding machine!

Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: End-To-End Macro: Taekwon Master

#3 Post by Cozzie »

do conf lockmap <map name> instead? Or do you know that there is actually a built in config changer? The only thing macros need to do is just to do the job change.
Make Openkore Awesome. Join the team.

Kafka
Human
Human
Posts: 26
Joined: 15 Aug 2008, 08:54
Noob?: No

Re: End-To-End Macro: Taekwon Master

#4 Post by Kafka »

Oh hey, I was just putting some macros together for my thief, I think it might be worth throwing in the class condition in there too so it doesn't try and repeat the first job change quest when it hits level 10 again.

ie

Novice 1 - 10
Job Change Quest
Taekwon 1 - 10
Try Job Change Quest Again.

It might not do that I haven't tested it but just as a precaution it might be an idea.

Pseudocode
Noob
Noob
Posts: 7
Joined: 02 Aug 2008, 23:43
Noob?: Yes

Re: End-To-End Macro: Taekwon Master

#5 Post by Pseudocode »

The code is already in 85% running:

@Kafka precaution and idea is totally correct.
When the machine bot was died during the execution of macro, all of your automacro will be executed again until it meets the current range level of the character then continue.

p.s: make some validation to your code, its up to you what technique you will apply. You can do that big bro!!!

pepinows
Human
Human
Posts: 20
Joined: 15 Aug 2008, 12:39
Noob?: No
Location: Brazil
Contact:

Re: End-To-End Macro: Taekwon Master

#6 Post by pepinows »

do some check on your macros there's some fails :/

try putting some run-once(s) or just adding more conditions on some automacros

here's my tip ;D
\o> Take it easy! <o/
Be happy D:

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: End-To-End Macro: Taekwon Master

#7 Post by sli »

I never said that macro was anywhere near finished, I just threw what was done on here to be sure I have macro syntax correct.
cs : ee : realist

Kafka
Human
Human
Posts: 26
Joined: 15 Aug 2008, 08:54
Noob?: No

Re: End-To-End Macro: Taekwon Master

#8 Post by Kafka »

Aye bro, but I'm just saying you could throw in the class precaution too...
You're not going to try and tell me you think you can diddle your way out of a criminal charge with an adding machine!

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: End-To-End Macro: Taekwon Master

#9 Post by sli »

And I'm just saying that this isn't you.
Image
cs : ee : realist

Kafka
Human
Human
Posts: 26
Joined: 15 Aug 2008, 08:54
Noob?: No

Re: End-To-End Macro: Taekwon Master

#10 Post by Kafka »

Dude, that's me for sure. I'm Franz Kafka.
You're not going to try and tell me you think you can diddle your way out of a criminal charge with an adding machine!

Post Reply