Teleport while casting...

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Thrice
Noob
Noob
Posts: 15
Joined: 24 Dec 2011, 13:05
Noob?: No

Teleport while casting...

#1 Post by Thrice »

I'm using Openkore SVN Revision 7840 and am currently botting with a mage.
There is a problem though... which makes it obvious to other players that I am using a third party tool.

Openkore uses teleport to avoid monsters while casting!

In config.txt I have:

Code: Select all

teleportAuto_useSkill 1
I have also tried playing with the timeouts.


Is it a bug in Openkore?
Am I missing something crucial?

Help is appreciated!
Thrice
Noob
Noob
Posts: 15
Joined: 24 Dec 2011, 13:05
Noob?: No

Re: Teleport while casting...

#2 Post by Thrice »

Solved the problem myself by editing Misc.pm.

The problem lies within the emergency mode of useTeleport - theres no timeout and it will teleport instantly.
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Teleport while casting...

#3 Post by SkylorD »

Openkore uses teleport to avoid monsters while casting!
Mon_control.txt,avoid while casting

http://openkore.com/index.php/Mon_control.txt
<teleport>
Avoid this monster by teleporting.

teleportAuto_useSkill <number>
0 - Use items (Fly Wing or Butterfly Wing).
1 - Use the Teleport skill normally (consume SP).
2 - Use the Teleport skill and don't consume SP if there are no players around to see.
Does not guaranteed to work, as it relies on a server's bug.
3 - Use the Teleport skill and never consume SP.
Does not guaranteed to work, as it relies on a server's bug.

Edit your mon_control.Example,if my bot are teleporting when monster "Monkey" is on screen,i change in mon_control.txt :
Monkey 1 1 1
to :
Monkey 1 0 1
Is this your doubt ?
Learn rules
stw
Noob
Noob
Posts: 9
Joined: 30 Nov 2011, 14:03
Noob?: No

Re: Teleport while casting...

#4 Post by stw »

You could try using the Teleport skill as intended, i.e. with the SP usage. You shouldn't have any problem with your SP as a mage class character anyway. So... Try setting teleportAuto_useSkill to 1?

It's just that the whole "Teleport without using SP" thingy simply works by sending "use Teleport Lvl1" -> Flywing effect instead of the normal "use Teleport" -> SP are being consumed and window pops up -> use Teleport Lvl1 sequence, thus skipping the part where you actually have to be able to cast something before teleporting.

However, casting Teleport that way should not be possible while you're already casting anything else. Kore should then try again until it's been interrupted by a monster's attack. I haven't tested it, though.
Hi.
EverythingIsAllright
Noob
Noob
Posts: 6
Joined: 30 Dec 2011, 07:04
Noob?: Yes

Re: Teleport while casting...

#5 Post by EverythingIsAllright »

I think your problem could have been solved by raising the autoteleport value for incoming damage and/or the teleport on deadly attack value hence I think Kore actually does not have a "teleport when attacked while casting" feature, what has triggered your teleporting was incoming damage overshooting the value, or the fact that the attack would have killed you while casting.

-> TeleportAuto maxDmgInLock raise
or
-> TeleportAuto deadly 0

this will result in having you killed when caught with a deadly attack while casting indeed.
Thrice
Noob
Noob
Posts: 15
Joined: 24 Dec 2011, 13:05
Noob?: No

Re: Teleport while casting...

#6 Post by Thrice »

Thx for your answers, but if you read post 2 you will see that I've already solved the problem ^^.

teleportAuto_deadly, teleportAuto_maxDmg etc. uses the emergency mode of teleport, meaning it will teleport without the skill regardless of the settings of teleportAuto_useSkill.

Check line 2628 - 2756 and the useTeleport function located in Misc.pm
stw
Noob
Noob
Posts: 9
Joined: 30 Nov 2011, 14:03
Noob?: No

Re: Teleport while casting...

#7 Post by stw »

Ah, my bad. I'm not even sure if that posting was there when I replied... Guess that's all due to the moderation required before any post to appear?

Anyway, I didn't know about that emergency mode. That would explain why Kore never actually "used" the Teleport skill when teleporting due to being hit, which is something I've been wondering about for a while now. Thanks for the insight!
Hi.
guytwo
Plain Yogurt
Plain Yogurt
Posts: 59
Joined: 26 Aug 2011, 04:45
Noob?: Yes

Re: Teleport while casting...

#8 Post by guytwo »

Related issue: Is there a way to teleport to avoid others even while my bot is attacking a monster? I want to avoid other players immediately at all costs, as I have been suspected by a few players.

Also, how do I make my bot use butterfly wings for auto-storage auto-sell? When I have teleport clip on, it keeps trying to use level 2 teleport, even though I don't have it. Then it walks itself back for auto-storage instead of using the butterfly wings I have in inventory.