Openkore.com
http://forums.openkore.com/

tele when your char gets hit...
http://forums.openkore.com/viewtopic.php?f=28&t=211015
Page 1 of 1

Author:  SAOfan [ 28 Jun 2015, 22:28 ]
Post subject:  tele when your char gets hit...

so ive been researching on how to make a command activate when the char gets hit once i am trying to use this code:

doCommand c @jump {
hp - 1%
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
amuletType
aggressives
monsters
notMonsters
monstersCount
stopWhenHit 0
inLockOnly 0
notWhileSitting 0
notInTown 0
timeout
disabled 0
inInventory
inCart
inMap ordeal_1-2
manualAI 0
}

so here is where my problem comes in... there is no way to set an "on hit" condition here... anyone who can point me in the right direction with this would be immensely helpful...

Author:  holo01 [ 28 Jun 2015, 23:27 ]
Post subject:  Re: tele when your char gets hit...

try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10

Author:  SAOfan [ 28 Jun 2015, 23:48 ]
Post subject:  Re: tele when your char gets hit...

holo01 wrote:
try to set this, when it get hit more than 10 damage it will fly

teleportAuto_maxDmg 10


i think it will only work when you have flywing or teleportlvl1 im trying to use @jump command since its a private server... figured it will make it more natural on scripts if i use it instead of flywing/tele but im gonna try thanks...

Author:  SkylorD [ 17 Aug 2015, 12:32 ]
Post subject:  Re: tele when your char gets hit...

Inappropriated condition :

Quote:
hp - 1%


syntax :

hp (conditions) (value)

Read the macro plugin.
You can do something like :

http://www.openkore.com/index.php/Telep ... xDmgInLock

set this for 1. Then when some monster hits you with 1 dmg, you'll tele. :O

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/