Search found 7 matches

by Gnagna
17 Dec 2013, 15:45
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

Thanks man, i managed to make my macro work perfectly now :) The only true problem was indeed how to initialize the hook by doing Plugins::callHook('packet_taekwon', { monster => $monsterName } ); i did not find good explanations on this on the wiki, i only found before asking your help, the event h...
by Gnagna
16 Dec 2013, 11:07
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

OMG, it's not working from the beginning xD, i got fooled by the "Message" automatically appearing from the ServerType0" there was no \n so it was chaining the "Monster: the propername" but the propername did not come from the sub sub tkpackets { my (undef, $args) = @_; my $tkmission = $args->{monst...
by Gnagna
16 Dec 2013, 10:25
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

srry read the post again please, i just modified it at the same time u answered :(, i got one error because of the var name "1stmonster" i change it to "firstmonster" it's better, then i have no problem with the counter, i initialized it with "$counter = -1" then i log then i do "$counter++" so it's...
by Gnagna
16 Dec 2013, 10:06
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

i was thinking that the my meant it was local and not global as the variables seems to be global with the "macros.txt" for the log if counter 0 log else counter 0 Those lines are just some logs to see if i do enter the if or else statement I did some other macros with the: if (mycondition) { log bla...
by Gnagna
16 Dec 2013, 08:50
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

Thanks man :) I modified my macro/automacro, but i still get warnings ??? do you know why it's not working ? Here is the macro.txt file, i launch manually first the "macro tmc" on the console then it should loop alone until the mob name changed: sub tkpackets { my (undef, $args) = @_; my $tkmission ...
by Gnagna
16 Dec 2013, 06:02
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

Re: [Tk Mission]Macro creation help needed (interesting topic !)

Thanks for your answer, yes it is working, but i don't see how to use the information after that. The value $tkmission is only available in the "do eval" command, and i'm force to use the command just after hooking the "taekwon_packets_getmob" or else it is empty. here is what i'm trying to do: The ...
by Gnagna
11 Dec 2013, 08:08
Forum: Resolved Questions
Topic: [Tk Mission]Macro creation help needed (interesting topic !)
Replies: 12
Views: 11926

[Tk Mission]Macro creation help needed (interesting topic !)

Hy, I'm new to Perl and the macro writing, i read the faq on openkore wiki and searched many things in the forum and others and in the google code of openkore too. Here is my problem. I'm trying to write a macro in order to cast "Taekwon Mission" until i'm out of mana or the "monster" changed and ha...