disguiese event bot

Private server support - Only post connectivity issues in the subforum!

Moderator: Moderators

Message
Author
ewan123
Human
Human
Posts: 24
Joined: 26 Dec 2009, 10:36
Noob?: Yes

disguiese event bot

#1 Post by ewan123 »

Good day to all,just want to ask if its possible to have a bot that can recognize a npc that disguised as a monster?cuz in a private server there are events such as disguise event that in order to win you need to tell what monster the npc will turn into and unfortunately im not good with this event.Hope you can help me thanks!

rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: disguiese event bot

#2 Post by rocknroll »

perhaps yes, editing the source and a little bit line of macro :D
Sorry, my english is very bad !

ewan123
Human
Human
Posts: 24
Joined: 26 Dec 2009, 10:36
Noob?: Yes

Re: disguiese event bot

#3 Post by ewan123 »

sir rock can you give me some hints on making this bot?what code in macro will I use?and what do you mean by editing the source O_O.I'm totally noob about this macro -_- but anyway thanks for the replay.

rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: disguiese event bot

#4 Post by rocknroll »

ewan123 wrote:sir rock can you give me some hints on making this bot?what code in macro will I use?and what do you mean by editing the source O_O.I'm totally noob about this macro -_- but anyway thanks for the replay.
hmm hints??
maybe you should to know about source code for actor exist, and then little bit of logic to editing the source :D
when NPC turn into Monster, the kore trigger actor exist function, so the ID of NPC turn into ID Monster (disguise), and you'll get the ID of monster, to get the name of monster maybe you should use this variable $monsters_lut{$monster->{nameID}. don't forget to give condition about the range of ID monster, so the plugins/macro triggered when the ID in the range of ID monster, not in ID NPC/Player, and one more, fill the entire of monster name in monster.txt :)
Sorry, my english is very bad !

ewan123
Human
Human
Posts: 24
Joined: 26 Dec 2009, 10:36
Noob?: Yes

Re: disguiese event bot

#5 Post by ewan123 »

I got your point sir but how can I do that T_T.Perhaps I need to know how open kore is working.if your willing sir can you teach me how to make this possible? Do I need to edit my NPC.pm file?(in src folder > actor).Sorry for being such a noob.Thanks a lot for your kind replay and patience in teaching me /no1

EDITED: sir I have a question,in the current setting of openkore,does it recognized npc that turn into a monster? for example if a npc turn into a poring does it shows in the console that "npc1 turn into a poring" something like that?

rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: disguiese event bot

#6 Post by rocknroll »

hmm, i only change the function to showing on console, so i trigger it with macro (because i don't really know much about perl :p)

yes but in debug mode, something like "Unknown Actor Exists: #unknown1234 (12345)"
hahaha, i speak to much :D
almost all of them have I given to u :lol:
Sorry, my english is very bad !

ewan123
Human
Human
Posts: 24
Joined: 26 Dec 2009, 10:36
Noob?: Yes

Re: disguiese event bot

#7 Post by ewan123 »

@_@ I think my mind will blow out!T_T,sir I know that your giving me the right code to use but I dont know how to build it all up,can you explain to me how to use $monsters_lut{$monster->{nameID} in variables? cuz I dont know how to write a variable in a macro.I'm totally have 0 knowledge with macro.dont worry I'm a fast learner.Thanks!

rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: disguiese event bot

#8 Post by rocknroll »

something edited like this in macro :D

Code: Select all

automacro disguise {
............................. #your logic here :)
var .lastMatch1 =~ 1001..2125
call {
	$num = $.lastMatch1
	$monstername = @eval($::monsters_lut{$num})

	do c $monstername
	stop
	}
}
and also in your src file :)

sorry, i'm not someone who's smart to make it into plugins :p
Sorry, my english is very bad !

dracus_loki
Human
Human
Posts: 29
Joined: 13 Jul 2012, 06:32
Noob?: Yes

Re: disguiese event bot

#9 Post by dracus_loki »

Hi.. Rock roll ..ur techinique is good I'll have to learn a lot frm people like U ... But here's my contribution ... This is the way I'll play it


Autonacro pos {

Location mapname

Call {

Do ml ##this will display the name of the monster as the npc changes

##After this in not sure cause ill have to see the work..but U have to just make ur bot say the name
}
Timeout 2
}

rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: disguiese event bot

#10 Post by rocknroll »

if the ml function showing the monster (NPC) maybe it can, but in most private server more than one NPC form of monster, hmm perhaps it can be tricked with position of monster :lol:
Sorry, my english is very bad !

Post Reply